News for hackers. Stuff that matters.
Re:Stop writing good code; Start writing good software. by alexobenauer on Saturday November 19, 2011 @12:44PM (#3255739)
Nice discussion. I agree whole-heartedly, when it comes to full systems and programs. As in the article, when it comes to a simple plug-in to a system however, rewriting an entirely new version of an API just for the plugin was simply unnecessary.
Re:Stop writing good code; Start writing good software. by hippich on Saturday November 19, 2011 @12:55PM (#3255772)
If your API is not flexible enough and require to write ad-hoc code - it is broken and require refactoring. I know this is not lines up with "customer want it now and do not care", but code do not magically become less broken because of it.
Re:Stop writing good code; Start writing good software. by alexobenauer on Saturday November 19, 2011 @12:58PM (#3255779)
API of objects, not public-facing API. The internal API objects had to be re-written in a new language.
Re:Stop writing good code; Start writing good software. by davesims on Saturday November 19, 2011 @12:46PM (#3255750)
Agreed, YAGNI is just as important as SRP. That's good design too. But hopefully if you do eventually need an API, your design was good enough to allow easy interface extraction, etc.
Re:Stop writing good code; Start writing good software. by alexobenauer on Saturday November 19, 2011 @12:59PM (#3255782)
Absolutely; that's a fantastic point.