Programming as Phylosophy. Part 2.
Saturday, 9. February 2008, 19:58:36
2. When you think you're programming...
And what it really is:
To be continued...
And what it really is:
- Tweaking the code to run innermost loops a little faster: this is preparing for competition in the market;
- Resolving border conditions, fencepost errors and race conditions: debugging
- Rearranging and structuring the code, merging duplicated parts, making functions shorter and clearer: preparing for better product maintenance
- Indenting code, providing comments: preparing for presentation
- Optimizing the code, rewriting parts of code: consequences of bad initial design
- Fighting with tools and frameworks, making workarounds, avoiding known bugs: debugging, testing
- Creating sophisticated constructs, such like "one-liners" in Perl: no point at all; overcomplicates further maintenance
- Writing the initial code from scratch: yes - this is a part of programming!
To be continued...








Vorlath # 20. March 2008, 12:33
Vladas # 22. March 2008, 20:19
Vorlath # 23. March 2008, 16:34
Vladas # 23. March 2008, 19:52
Sverre Johansen # 23. May 2008, 14:41
I think the 3rd one is a lot of fun. It's kinda like the 7th in reverse. Looking through and investigating your code, getting an overview so that you can make it even better, and more maintainable. I also believe in planning before you program (even though exploratory programming is also a lot of fun), but there will always be aspects that you don't catch before you are knee deep in your code.
Another term I recently discovered, and fell in love with, is Habitability. From Patterns of software:
I'm not sure about the first one though, but I guess it depends on the kind of project you are working on. Remember:
And the 4th is one of the reasons I fell in love with Python :)