אנשים העסוקים בלהקיף את עצמם במוות בין מאות שנים
מחליפים פרחים בפסלי פלסטיק
דשא ביריעות ירוקות של ניילון
מרססים את ביתם ברעל
בונים רשתות חומות וגדרות בפני החיים
אנשים אילו מסיימים את חייהם בקבר בטון
עם תכריכי פלסטיק
ומצבה משיש מלאכותי
במקום לראות את היופי
של ציפור, חרק או פרח
להינות מהאווירה של עץ או דשא
לחוש באהבה של חיית מחמד
ולחיות מוקפים בכל זה
גם באמצע מערות הפלדה של העיר
הקטנים האלו
האהובים הללו
שסוחטים כל היום כל טיפה של כח
ועכשיו רוצים אותי
בדרישה כובלת במתיקותה
לישון איתם
עכשיו שהשמש שקעה
שהמקלחת הסתיימה
כשהכל נגמר
כשמתחיל הזמן האסור
הזמן של הגדולים
אני פשוט חייב
בכל מחיר
להישאר ער
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