Reputation
1,185
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
8 13
Newest
 Yearling
Impact
~56k people reached

  • 0 posts edited
  • 0 helpful flags
  • 349 votes cast
Sep
5
comment Best Method of function parameter validation
I agree with Glen. Try Java. It isn't bad, really. It may be quite a change from PHP, but better in almost every way.
Aug
27
comment Emacs/Vim/Vi - do they have a place in modern software development ecosystem?
@Oleksi: If you invested the same time in learning vim you can use it to edit any text file. With the IDE you can edit, oooh, C++ or C#. Or maybe Java. If you want to edit Ruby, Python, Haskell, Ocaml or Apache config files you are out of luck.
Aug
27
comment Emacs/Vim/Vi - do they have a place in modern software development ecosystem?
The IDEs are SOOOOO sophisticated that you can get lost in trying to figure out why the indentation settings are different in the editor window for resolving SVN conflicts than the window for editing C++ code. After five minutes you could have spent coding you finally figure out there's no way to do it an then spend extra time replacing tabs with spaces manually.
Aug
27
comment Emacs/Vim/Vi - do they have a place in modern software development ecosystem?
This is an excellent point. Your IDE may be good at one, maybe even two things. I have yet to meet the IDE that is worth configuring for every type of file I edit. When I take a quick whack at a PHP file I am not going to waste time configuring an IDE for PHP.
Jun
15
comment Setters or constructor for many variables?
@JarrodRoberson: Then it needs a GUI binding. Or it needs a HTML POST binding. Seriously, what would it use a constructor for?
Jun
14
answered Setters or constructor for many variables?
Jun
14
comment C# foreach improvements?
@FabricioAraujo: Surely C# for loops don't require a count. As far as I know they are just the same as C's for loops, which means you can use any boolean value to end the loop. Such as a check for the end of the enumeration when MoveNext returns false.
Jun
11
comment Is it ok to replace optimized code with readable code?
@DaveE: I think I agree more with the guy you work with than you. If I'm not allowed to fix stuff that is slow for absolutely no good reason I will go insane. If I see a line of C++ that repeatedly uses the + operator to assemble a string, or code that opens and reads /dev/urandom every time through the loop just because someone forgot to set a flag, then I fix it. By being fanatical about this I have managed to keep speeds up, when other people would have let it slide one microsecond at a time.
Jun
7
answered C++ and system exceptions
Jun
7
answered Logging errors caused by exceptions deep in the application
May
24
comment Dependency injection: How to sell it
So much agreement! I really really hate DI configuration files and the effect it has on tracking program flow. The entire thing turns into "spooky action at a distance" with no apparent connections between pieces. When it becomes easier to read code in a debugger than in source files, something is truly wrong.
May
22
comment Should we avoid object creation in Java?
"Free JVM heap memory doesn't give you anything just sitting there anyway." -- Not to your program, no. The rest of the system hates your program and wishes it would die so it can stop swapping.
May
4
comment Refactoring Switch Statements and is there any real use for Switch Statements at all?
And really, if you unrolled the factory and the dictionary and the lookup, it would turn out to be basically a switch statement: if array[hash(search)] then call array[hash(search)]. Although it would be runtime-extendable which compiled switches are not.
May
2
comment When to use C over C++, and C++ over C?
@sbi: Do programmers use threads? Yes. Do some versions of the libstdc++ implementation contain std::string reference counting bugs? Yes. Does std::auto_ptr call destructors of forward declared classes properly? It depends on the implementation. Do some programmers need to support C++ applications running on those platforms? Yes. Therefore, DeadMG's claim that a programmer does not need to know anything about the implementation is false, because no such thing as a perfect C++ library exists. Is the knowledge needed to find bugs in the implementation? No, it is needed to work around the bugs.
May
2
comment When to use C over C++, and C++ over C?
@sbi: I argued that in some cases you have to know the internals. What, are you just going to wait around sitting on your hands when your program has a serious bug, waiting for the library implementers to get around to your bug report in five or six weeks? Good luck with that.
Apr
18
answered Desktop GUI loading slow
Apr
13
comment When is Java a good choice for web development?
@ErikReppen: Definitely a talent thing. Java speed on a server is second only to C/C++. PHP or Rails just cannot compare. But Java's libraries and some of the tools make it too easy to lose all that speed doing uselessly complicated things.
Apr
9
comment Does anyone prefer proportional fonts?
@romkyns: Adopt an indent style that doesn't rely on lining up with other lines. Simple.
Mar
26
answered if/else statements or exceptions
Mar
21
awarded  Nice Answer