1MÃyzÅTable-driven tests in GoI used table-driven tests to refactor my code. I found this technique in Andrew Gerrand slide while he was talking at Testing Technique in…Jun 15, 20181Jun 15, 20181
1MÃyzÅPackage time in golangสวัสดีค่ะ วันก่อนได้ลองทำโจทย์เล็กๆ โจทย์คือถ้าเวลาอยู่ในช่วงหลังเที่ยงคืนถึงก่อนเที่ยงวันจะ say “Hello, Good morning”…Sep 20, 2016Sep 20, 2016
1MÃyzÅType String In GolangZero value ของ type นี้คือ empty string ประเภทข้อมูล string ใน Go สามารถประกาศได้สองแบบ ดังนี้Sep 12, 2016Sep 12, 2016
1MÃyzÅHow to check if there is a special character in string in GoLangขอบันทึกไว้อีก โจทย์นี้ได้ใช้บ่อยมากๆ เวลาที่ทำ api ให้คนอื่นเรียกมา ก็จะมีบางระบบที่ไม่ได้กรอง special charactor ออกก่อนจะบันทึกข้อมูล…Sep 7, 2016Sep 7, 2016
1MÃyzÅRefactor Duplicate Control Flow To Data Structure (JavaScript)ตัวอย่างโค้ดที่ยกมา เป็นโค้ดที่ต้องการเลือก Html Template โดยดูเงื่อนไขการเลือกจากค่าของ Group และ Status โดยการเรียกใช้ฟังก์ชัน…Sep 6, 20163Sep 6, 20163
1MÃyzÅมารู้จัก ${SPACE} ใน Robot Framework กันขอโน้ตไว้หน่อย วันนี้ในทีมเจอปัญหาจะเปรียบเทียบคำที่ได้มาจาก API กับคำที่ต้องการให้เป็น แต่ข้อมูลมันมี SPACE ติดกันสองตัว ทำให้ Robot…Sep 2, 2016Sep 2, 2016
1MÃyzÅFormat JSON ด้วยคำสั่งใน Mac OSXปกติในเวลาทำงานอยากจะดูข้อมูล Json สวยๆจะเข้าเว็บนี้เสมอ https://jsonformatter.curiousconcept.com/ เป็นเว็บที่เราวางก้อน JSON ลงไป…Sep 2, 2016Sep 2, 2016