aofleejayOperator Overloading ในภาษา Dartวันก่อนผมได้ไปเจอโค้ดชุดนึง เกี่ยวกับการเช็ค latitude กับ longitude ว่ามันอยู่จุดเดียวกันไหม โค้ดคร่าว ๆ หน้าตาแบบนี้Nov 30, 2022Nov 30, 2022
aofleejayบันทึกเรื่องการเขียนเทสกับ Case Sensitiveบทเรียนจากการแก้ข้อความง่าย ๆ จาก Post เป็น POST แต่มันจะจบแค่นี้จริง ๆ ใช่ไหมนะ?Mar 2, 2020Mar 2, 2020
aofleejayถ้า Refactor Code ไปใช้ React Hooks ชุดทดสอบจะพังไหมนะ?หากเราจะ Refactor code (ปรับปรุงโค้ดโดยผลลัพธ์ของการทำงานยังคงเดิม) นั่นหมายความว่าเราสามารถใช้ชุดทดสอบเดิม…Feb 25, 2020Feb 25, 2020
aofleejayสร้าง React อิมเมจ ด้วย Multi-stage builds กันดีกว่าถ้าเราต้องมีการ build docker image หลาย ๆ step เราสามารถจัดการมันผ่าน Dockerfile เพียงไฟล์เดียวด้วย Docker multi-stage builds เลยJan 20, 2020Jan 20, 2020
aofleejayส่องข้อมูลใน Database ด้วย MongoDB CompassMongoDB Compass เป็น GUI สำหรับ MongoDB แต่ฟีจเจอร์นึงที่เจ๋งมาก ๆ เลยคือเราสามารถเอามาวิเคราะห์ Schema ของเราได้ด้วย บทความนี้จะพามาดูกันJan 6, 2020Jan 6, 2020
aofleejayสิ่งที่ได้เรียนรู้จากการใช้ Snapshot Testing ใน Jestบทความนี้เป็นบันทึกหลังจากได้ลองใช้ snapshot testing มาสักระยะหนึ่ง ได้เจอทั้งข้อดีและข้อเสีย ได้ลองแลกเปลี่ยนมุมมองกับหลาย ๆ คน…Sep 30, 20191Sep 30, 20191
aofleejayจัดระเบียบโค้ดให้สวยงามด้วย Prettierการจัดระเบียบโค้ดให้สวยงามเป็นเรื่องที่สำคัญ เพราะความอ่านง่ายถือเป็นหนึ่งในคุณสมบัติของโค้ดที่ดี แต่ถามว่าแบบไหนล่ะที่เรียกว่าอ่านง่าย ?Jul 2, 2019Jul 2, 2019
aofleejayทำเทมเพลตให้กับ Issue/Merge Request ใน GitLab กันหน่อยถ้าเราเป็นเจ้าของโปรเจค เวลามีคนเปิด issue หรือส่ง merge request มา เราอยากให้เขาเขียนรายละเอียดอะไรใส่ลงไปบ้างนะ ?Jul 1, 2019Jul 1, 2019
aofleejayเพิ่มความมุ้งมิ้งให้ Commit Message ด้วย Gitmoji กันโหน่ยมีใครเคยเจอโปรเจคใน GitHub มี commit message มุ้งมิ้ง ๆ แบบนี้บ้างไหมครับ ?Jun 27, 2019Jun 27, 2019
aofleejayมาลอง Data Driven Testing ใน Jest กันหน่อยถ้าชุดทดสอบทำงานแบบเดิม ต่างกันแค่ข้อมูลทดสอบ จะทำอย่างไรดี ?Jun 21, 2019Jun 21, 2019