Reputation
1,155
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
  • 345 votes cast
Aug
28
comment What are CPU registers?
CPU level-1 cache is often made of the same type of silicon stuff as registers. It is not quite as fast because it needs extra lookups to associate cached addresses with cache locations. But registers and cache are definitely different places on the chips.
Apr
25
comment How to reject a code review that you believe is unnecessary?
@EuroMicelli: Really? You file an issue/ticket for every change? This amount of process leads to large extensions of estimate times. A test case should be sufficient. Or maybe I misunderstand and a ticket is just a quick entry of "bug on line 17: will fix"
Apr
25
comment How to reject a code review that you believe is unnecessary?
I agree with ZJR. By refusing to review code you are agreeing with it, in my view. If I refused to use code that hadn't been sufficiently reviewed nothing would get done. What am I going to do, hold busy people down and MAKE them look at it? That would be popular wouldn't it? So silence is assent.
Sep
7
comment What are the most known arbitrary precision arithmetic implementation approaches?
@keykeeper: BigDecimal is a BigInteger with an offset.
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
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.
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
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.
Feb
23
comment Should developers enter bugs into the bug tracking system?
@JoelFan: Flow is already interrupted. My flow would be more interrupted by knowing there was an unfixed bug.
Feb
23
comment Should developers enter bugs into the bug tracking system?
Mmm. Not every bug surely. Say you're reading though some code you just wrote and you find an off-by-one error in a nearby loop condition, say. Or a typo. It takes longer to write the bug than it does to just fix it, especially if the code is all still in development.