Top Ten of Programming Advice to NOT follow

Top Ten of Programming Advice to NOT follow ​ของคุณ​ Chryler

คร่าวๆ​มีดังนี้
10 ​คำ​แนะนำ​ที่​โปรแกรมเมอร์ไม่ควรทำ​ตาม​!!
10) Don't use exceptions
9) Use unsigned integers for values that can only be positive
8) Design classes parallel to their physical counterparts
7) Make sure your team shares a common coding standard
6) Write lots of comments
5) Use accessors or properties rather than public fields
4) Use the singleton pattern for variables that you KNOW you should have only one instance of
3) Be tolerant with input and strict with output
2) Code all the corner cases immediately, cause otherwise you'll never go back and fix things
1) Design first, then code

Comments

This comment has been removed by the author.
เพิ่งรู้ว่า Blogger ไม่มี Edit ลบได้อย่างเดียว -*- เห็นด้วยบางข้อแฮะ แต่บางข้อก็ยังทำอยู่ ส่วนตัวอย่างข้อ 1 นี้ไม่ค่อยเห็นด้วยเลย ส่วนตัวแล้วชอบออกแบบคร่าวๆก่อนแล้วค่อยเขียน คิดก่อนทำดีกว่าทำก่อนคิด หรือว่าคนเขียนเค้ามองไปที่โครงการใหญ่ๆ ?