|
I'm having to do some flow control based upon exceptions that come back in Java and am wondering if there's anything that can do the following more cleanly:code:
code:
|
# ¿ Mar 3, 2008 03:12 |
|
|
# ¿ Apr 28, 2024 23:40 |
|
tef posted:A major problem with comments is that they frequently outlast the code they were written for. Code gets changed, and comments lag behind. Comments in the wild are often misleading, rather than helpful. Furthermore, deleting comments when they're outdated shouldn't be considered a faux pas when you're using version control - you can always get it back. Dead code and dead documentation should be pruned and weeded like your garden and lawn. It's healthy.
|
# ¿ Oct 24, 2012 14:41 |
|
There's got to be some middle ground between using something like rdtsc and hoping your rtc syscall call uses a hardware RTC in some manner. Last I remember when I looked at sub-microsecond benchmarking seriously (literally 10 years ago), the only way to get a fairly accurate picture of function calls was to use both highly instrumented userland software like from Rational software and to utilize a kernel that uses event-based clocking for its multi-process management like HP/UX. The inaccuracy of timers was pretty much inversely proportional to the length of the function run indicating probably overhead of timing being at the minimum constant and possibly even higher as the measurement interval gets shorter.
|
# ¿ Oct 31, 2012 00:46 |
|
Zhentar posted:"I'm getting an 'Out Of Memory' error, does that mean I need to upgrade my RAM? I thought I already had plenty!". The considerable majority of programmers, even among the good ones, have very little understanding of the systems behind making their high level language code work. Blinkz0rz posted:My question is, what are the best way to begin implementing development best practices in this environment? 1. superior performance / output (profilers caught that we were spending 30% of our time writing log files) 2. successful risk management (this test caught x, y, z before it went into production, knowing the build broke identified Bob breaks builds literally every commit) 3. easier manageability (one command to build something, stamp a release, and know it'll work = immense power and a sigh of relief for managers) You can't really implement change without the right culture for accepting it though. You don't want to be the dude at RIAA insisting that they have to work with digital media.
|
# ¿ Nov 4, 2012 03:37 |