logoalt Hacker News

amw-zeroyesterday at 2:34 AM2 repliesview on HN

When you go to write a line of code, how do you decide what to write?


Replies

signa11yesterday at 5:07 AM

> When you go to write a line of code, how do you decide what to write?

depends ofcourse, what am i writing for ? a feature, a bugfix, refactor ... ?

show 1 reply
adverblyyesterday at 4:16 AM

Honestly? I usually look at the previous implementation and try to make some changes to fix an issue that I discovered during testing. Rarely an actual bug - usually we just changed our mind about what the intent should be.