Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would say that much of my code starts out stupid and, hopefully, becomes better with refinement.


First do it, then do it right, then do it better.


The graphic design version of this is "Get it done, make it beautiful," but it works for code too.

I used to get hung up on things like doing a loop when a ternary operator would work. "Somebody is going to see this and be rude about it." But sometimes you write code how you're thinking about the problem at the time. And if you think of it as a loop, or a series of if statements, or whatever, do it that way.

If it makes you feel better, note it in a comment to revisit later. And if somebody is rude about it, so what. It's not theirs, it's yours.


Yeah! That's great, thank you! I will share this quote with a couple people with whom I've discussed this topic recently :)


The more popular quote ime is "make it work, make it right, make it fast" (1983!)

https://wiki.c2.com/?MakeItWorkMakeItRightMakeItFast


Or just ship it, always an option




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: