|
 |
|
ประสบการณ์ความผิดผลาดเพราะความขึ้เกียจ แก้ไขโปรแกรมที่เควรเสร็จใน 5 นาที |
|
 |
|
|
 |
 |
|
มีเรื่องเล่าเพื่อเป็นประโยชน์ในการแก้ไขข้อผิดผลาดของโปรแกรม
เมื่อวานนี้ได้เขียนโปรแกรมง่ายๆ เพื่อเก็บ log error
Code (C#)
catch (Exception exp)
{
db.Execute("insert into errorlog (active, prog, message) value( CURRENT_TIMESTAMP, @0, @1)", "Product/AddCart", exp.Message);
return false;
}
ใช้เวลาช่วงกลางคืน 2 ชั่วโมงยังไม่เสร้จต้องนอนตืนเช้ามาทำ ไม่ถึง 5 นาทีแก้สำเร็๋จ
ช่วงกลางคืนหลังจากกลับมาจากธุระข้างนอก ด้วยความเพลียและขึ้เกียจเปิดแจ้ง error แก้นู่นแก้นี่ ไม่ได้ซักที่ จนง่วงถึงได้เลิก
(ตี 1) พอตืนมาตอนเช้าแก้ web.config เปิดแจ้ง error แปปเดียวเสร็จ
เรื่องนี้สอนให้รู้ว่า ถ้าร่างกายอ่อนเพลียและขึ้เีกียจ
จากงาน 5 นาทีควรจะเสร็จ ก็อาจจะกลายเป็น 2 ชั่วโมงยังไม่เสร็จ
Tag : .NET, Ms SQL Server 2012, Web (ASP.NET), C#, VS 2012 (.NET 4.x)

|
|
 |
 |
 |
 |
Date :
2017-10-09 09:24:52 |
By :
Chaidhanan |
View :
1020 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ความล้าซะสมครับ บวกกับความเพลีย เลยทำให้ร่างกายไม่พร้อมที่จะทำมัน แต่ก่อนนี้ผมเคยทำงานดึกๆ ได้งานน้อยมาก ลองเปลี่ยนวิธีนอนหัวค่ำและตื่นมาทำตอนตี 4-6 โมง ปริมาณงานจะได้เยอะกว่าครับ
|
 |
 |
 |
 |
Date :
2017-10-09 14:05:33 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|