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

Discovery code doesn't have to be bad code. My rule of abstractions is that I defer them until they are needed, even if I know that they will be needed in the next sprint or whatever. I'll do a much better job making a precise abstraction when faced with an existing solution and a new problem.

Even if discovery code were bad code; I'll take "bad" code 8 out 10 times if the competition is abstractions for abstractions' sake (which "good" code often is). Bad code is often simple and direct, and therefore simple to comprehend and fix. Fancy code is a game of jenga.

Also, requirements often change by the next sprint - so my well-laid plains would be moot either way.



>>Discovery code doesn't have to be bad code.

One of things that a lot of people are NOT used to- Always writing good code, no matter what you are writing it for.

A while back I was building a writing small snippets to fix a production issue. A colleague looked over my shoulder and said you don't have to do all that, just get it done for now.

He was quite surprised when he learned that is how I always wrote code. It feels like people have different coding styles for different situations. They do tend to have a mode where they are doing it for production, and they are quite slow at it.




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

Search: