141 reputation
2
bio website
location
age
visits member for 4 years
seen 8 hours ago

Jul
11
answered Programming for future use of interfaces
Nov
18
comment Is it better to return NULL or empty values from functions/methods where the return value is not present?
Not only is it extra typing (not a big deal), but it affects readability. I personally find code with a bunch of null checks distracting.
Jul
13
comment Where should code refactoring and optimization fit within both an agile and waterfall process timeline?
I find this to be one of the most difficult issues to overcome as a programmer. Engineers have an innate desire to experiment, develop, and refine, but at the end of the day, you are getting paid for productivity. What good is a perfect product if you spend so much time and/or money that it's canceled due to overruns?
Jun
29
comment Best practice in setting return value (use else or?)
I tend to prefer this approach. I find that fewer returns makes it easier for me to follow the code. An exception is when I have to test an argument and wrap a lot of code in the if block if the argument is good, or simply return error if it's bad. In that case I'll probably test for the bad case up front and return right away. The good path follows with one less level of nesting to worry about.
Jun
23
awarded  Supporter
Apr
8
answered Is it bad that you don't program on your spare time while at uni?
Feb
14
awarded  Teacher