Jan 9The soft skills I learned about how to work with other programmersA definitive guide of how to be more human as a programmer — Table of contents Prologue Why tech people are so grumpy? How to criticize other’s code Don’t blame the people. Focus on the system. How documenting code improves the team How to guide others Asking for help Closing thoughts Prologue What does it mean to be “more human”? From the perspective of people outside the…Programming5 min read
Published in CodeX·Jan 8Level-based logging in Go with Uber ZapTake logging into another level — Table of Contents To log or not to log Go’s built-in logging package What is Level-Based Logging? Introducing “Uber Zap: Blazing fast, structured, leveled logging in Go.” Example Logging with Zap Summary To log or not to log The benefits of logging Most web servers in the tech industry adopt logging. Logging has some benefits when it comes to a web application. Logging…Golang5 min read
Published in CodeX·Jan 8How to persist and backup data of a PostgreSQL Docker containerNever lose your database information ever again! — Table of contents Introduction Persisting database information with a mounted volume Dumping and restoring database information Introduction Have you ever lost database information using a PostgreSQL docker container? We all know that we should never use a docker container to hold database data because when deleted, the data is gone with it, right? right???Docker4 min read
Sep 26, 2021A guide to become a software developer without a cs-degreeHow a self-taught programmer like myself got a job as a software developer. — There are numerous reasons why software development has grown in popularity. One major reason is that the salary is quite good in comparison to many other jobs. That factor alone motivates people to shift from their current jobs and pursue a career in software development. The problem is most of…Programming7 min read
Published in Nerd For Tech·Sep 20, 2021Writing unit tests in Golang Part3: Test suiteAs you may know, a program usually grows and evolves over time. And as time advances, you may add new features, some edge cases handling, fixing bugs, etc. It is inevitable to add more tests as well. …Golang3 min read
Published in Nerd For Tech·Sep 13, 2021Writing unit tests in Golang Part 2: MockingIf you haven’t read Part 1 of this series, please don’t forget to check it out. Writing unit tests in Golang Part 1: Introducing Testify Unit testing is a way of writing tests for the individual components (aka, the smallest part) of a program. The purpose…medium.com In software development, a program usually consists of many layers and functions which means multiple chunks of code have to be working together. Thus, it causes a lot of pain for programmers to create…Golang4 min read
Published in Nerd For Tech·Jun 27, 2021Writing unit tests in Golang Part 1: Introducing TestifyUnit testing is a way of writing tests for the individual components (aka, the smallest part) of a program. The purpose of it is to validate that any piece of code is always working as expected. Moreover, unit testing has a lot of advantages such as improving the quality of…Golang3 min read
Published in Nerd For Tech·May 3, 2021Flutter 2: Null Safety in a nutshellYour flutter app doesn’t sound Null Safety! Handling null values in programming is a tedious task. When a function is expecting an input but it turns out to be null, it causes a runtime error, and your program crashes.Programming6 min read
Apr 25, 2021Flutter Basics: The differences between Stateless Widget and Stateful WidgetWhat is a Widget in Flutter? This must be the very first topic that everybody who starts coding Flutter has come across. You may wonder what is a Widget? Well, I can summarize it for you. Widget is everything in Flutter. In detail, a Widget is an object which is configured to build the user interface…Programming5 min read
Apr 24, 2021Flutter Basics: ความแตกต่างระหว่าง Stateful Widget และ Stateless WidgetWidget คืออะไร ทุกคนที่เริ่มเขียน Flutter ส่วนใหญ่คงจะสงสัยว่า Widget คืออะไร ใช้งานยังไงและมีแบบไหนบ้าง ผมจะกล่าวโดยสรุปว่า Widget คือทุกสิ่งทุกอย่างใน Flutter ถ้าจะให้ลงรายละเอียดก็คือ Widget คือ Object ที่เราสามารถกำหนดค่าต่าง ๆ ให้กับมันได้ เราสามารถนำ Widget ไปสร้างเป็น UI ต่าง ๆ เช่น กล่องข้อความ, ปุ่มกด, ลิสต์รายการ, ฯลฯ หรือนำไปรับ User Input หรือ User Interaction ได้ด้วย จะเห็นได้ว่า Widget คือส่วนต่าง ๆ ที่ประกอบขึ้นเป็นแอพพลิเคชันนั่นเอง จึงไม่เวอร์เลยที่จะกล่าวได้ว่าทุกสิ่งทุกอย่างใน Flutter ก็คือ Widget นั่นเองครับ…Flutter3 min read