Tagged Questions
41
votes
17answers
3k views
How would you know if you've written readable and easily maintainable code?
How would one know if the code he created is easily maintainable and readable? Of course in your point of view (the one who written the code) your code is readable and maintainable, but we should be ...
2
votes
3answers
169 views
Should a method do one thing and be good at it?
"Extract Till You Drop" is someting I've read in Uncle Bob's blog, meaning that a method should do one thing alone be good at it.
What is that one thing? When should you stop extracting methods?
...
2
votes
4answers
142 views
What is considered best practice for printing usage / help (--help)?
When writing tools for the CLI of UNIX, how should I make the program print out help and/or usage?
I usually use fprintf(stderr, "help text here");, but there are several issues with that.
First, ...
1
vote
5answers
102 views
Automatic sorting of class/module members and its possible impact on productivity and code quality
Recently I saw some possibilities of some IDEs (via plugins) to sort members of their classes/modules based on some criteria, sou you could have everything sorted automaticaly no matter where you ...
41
votes
12answers
2k views
Are there problems with using Reflection?
I don't know why, but I always feel like I am "cheating" when I use reflection - maybe it is because of the performance hit I know I am taking.
Part of me says, if it is part of the language you are ...
14
votes
16answers
946 views
Do Programmers sometimes intentionally over complicate code?
It seems alot of times on stackoverflow, that people (programmers especially) tend to over complicate a solution to a problem to where the solution is vastly much more complicated then the original ...
20
votes
8answers
733 views
Is there such a thing as having too many private functions/methods?
I understand the importance of well documented code. But I also understand the importance of self-documenting code. The easier it is to visually read a particular function, the faster we can move on ...
19
votes
17answers
1k views
What is the hardest bug to find?
If possible write how to avoid this kind of bug (besides testing, of course, please write a specific technique)