3 ms·
> If a programmer can’t produce good code, they aren’t a good programmer. Who cares about good code ? good code doesn't mean anything, the only thing that is i
by polote 9y ago
> If a programmer can’t produce good code, they aren’t a good programmer.
Who cares about good code ? good code doesn't mean anything, the only thing that is important is working code.
If your program works but the code is not "good" people will still use it.
A good programmer is someone who is able to write code that works
- nnd 9y agoYou are not taking into account the cost of maintenance.
- dyarosla 9y agoSpoken like a fresh programmer
- flohrian 9y agoHm. documentation, readability, maintainability? in general you cannot even prove, whether a program does the right thing...
- falcolas 9y agoI care about good code. A caveat: I define good code as code I can come back to in a year and easily read and understand it. Sure, come code you write once and never have to touch again. But that's usually the exception; popular programs always have more feature requests and bugs and have to keep up with the changing input/output environment. If it's bad code it will fall behind and be forgotten, because it's just too hard to maintain.
- polote 9y agoGood code is only defined by you, you will always find "good" programmers telling you that your code is bad.
- rimliu 9y agoHave you heard about concept of code rigidity, fragility, immobility and viscosity? You may have a piece of code that works now. But if it is rigid changing anything will be hell and require touching almost every part of the code. This of course will eat up time. If it works but it is fragile, changing something in one place may break something else in very different place. If your code works but is immobile, you will have to rewrite it if there is similar need in another system, but your code is not easy to reuse. If your code works but has high viscosity future changes will be most likely done as the ugly hacks which won't help with any of the features listed above. (I've omitted three more characteristics, because they are more of the result going overboard trying to avoid these four). So to answer who cares about good code: anyone who will have to deal with it later.
- polote 9y ago> Have you heard about concept of code rigidity, fragility, immobility and viscosity? The programmers who don't respect these principles tend to not being able to produce a code that works, so I agree with you
- loup-vaillant 9y agoI have worked on code that was working, fragile, rigid, and viscous, all at the same time. Clearly someone didn't respect those principles yet still produced code that works.