עכשיו שהשמש שקעה
שהמקלחת הסתיימה
כשהכל נגמר
כשמתחיל הזמן האסור
הזמן של הגדולים
אני פשוט חייב
בכל מחיר
להישאר ער
We are programmers, and we get paid to write code. And we all faced the situation when we get in someone else’s code (could be mine from a few hours ago, I am evolving you know) and see code that hurts my eye.
So when should I fix it?
Here are the 10 commandments:
if it works and this is an area you don’t need to touch. Don’t touch it.
if touching it is a long and hard refactor, think long and hard before jumping into it.
if the change is not covered by tests you already plan on doing. Consider the test workload addition. Automatic tests coverage is great, if you are certain it cover the necesary scenarios.
If you are already in the code, and the added workload is ok, then go and refactor like crazy.
בעבוטות דקים נשלבים החיים
משיחה
מבעיה
ממאמץ
ניסיון משותף
ויכוח
מריבה
בדיחה שחוקה
ורגע של כעס
ושל הנאה
בנייה משותפת
וכשלון או הצלחה יחד
מחברים אותנו
אחד לשני
בעולם של גרויים
כל כך קל לברוח
להתעלם
לשכוח
להתמקד ברדיו בזמן שמדברים
להתעניין בחדשות במקום בנאמר
למצוא תירוץ מוצלח
או להמציא אחד מתקבל על הדעת
להשמיט פרטים לא נוחים
מבלי משים
Get in touch with me at: lee [plus] blog [at] elenbaas [dot] org [dot] il