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

  • 0 posts edited
  • 0 helpful flags
  • 338 votes cast
Jan
26
comment When to use C over C++, and C++ over C?
@Mankarse: Since my experience in 2007 when I tried running a Linux system with 1 GB RAM and no swap, almost all desktop software fails in horrible awful ways when memory allocation fails anyway.
Jan
25
comment When to use C over C++, and C++ over C?
@DeadMG: You do have to know STL (rather, C++ Standard) implementation in some cases. Such as when debugging a multithreaded crash caused by std::string reference counting in earlier versions of GCC. These kinds of things would be very important in an OS kernel.
Jan
25
comment When to use C over C++, and C++ over C?
@Mankarse: If you compile with the options to disable exceptions, allocators either abort the program or merrily proceed to use a null pointer, depending on the library implementation.
Jan
24
comment What's the benefit of avoiding the use of a debugger?
@ZJR: Which is why assert is so great. Check your assumptions. Check them often.
Dec
5
comment Do computer glasses work?
@Lohoris: Production vs. reflection only matters for color reproduction. The total amount of light coming off the paper or an LCD screen can be the same amount. What then is the difference? There is no difference.
Dec
5
comment Do computer glasses work?
@Lohoris: Turning down the brightness is not a workaround, it is the correct way to set the monitor. Paper is bright too. The trick is that paper is always less bright than the surrounding room light.
Nov
29
comment Do computer glasses work?
@Lohoris: White backgrounds are bad only when combined with excessive brightness. Sadly, most people have their LCD set far too bright. I run my laptop screen at only 20% while indoors and my desktop monitor at 15%.
Oct
19
comment Is object pooling a deprecated technique?
And I would add that it is a good idea to avoid GC whenever the objects are long-lived enough that they've moved into the older generation.
Oct
10
comment Is garbage collection necessary?
Of course mistakes in a GC language still result in bugs, such as many Java programs which continue to consume memory until they crash, because of programmers that retain live references to unneeded objects.
Oct
6
comment Are operators just “special” methods?
sizeof could be a function if the language supported type arguments. sizeof(a) would cast a to a Type object, then the sizeof function would return x.bytes. For example. Of course you are right that this cannot be done in C.
Sep
30
comment Harmful temptations in programming
@Merlyn: If you find yourself writing an instruction simulator so that you can force a context switch in just the right places, then you've probably gone way too far in your concurrency testing. :)
Sep
30
comment Why don't all companies buy developers the best hardware?
You switched from laptops to desktops? I just don't understand some people. I'd much rather have the laptop. It goes to meetings with me where I have everything at my fingertips to answer questions and make quick notes. I can easily work at home without spending time configuring two work environments. It's also a free second monitor.
Sep
30
comment Should I bother to develop for JavaScript disabled?
Be sure to consider your target audience. If your target is tech-savvy, security conscious people a much larger majority of your readers will be running NoScript. If they are like me, when they hit a site through a search link and that site offers nothing useful without javascript, I immediately hit Back and look at the next site on the list.
Sep
7
comment Can the language make us stupid?
@MattDavey: "You can write FORTRAN in any language."
Aug
30
comment Are compilers used outside of development?
@Jan: Running Gentoo Daniel was using a compiler as an end user just as a Windows end-user is using a compiler when installing .NET software which is compiled from CIL to machine code during installation.
Aug
30
comment Are compilers used outside of development?
@IronMensan: It's also possible for a .NET compiler to have slipped onto an XBox at one time or another. I believe there is a .NET game development environment, and there are .NET language compilers that can be included as modules (often used for dynamic languages to implement eval), so...
Aug
22
comment Can software licensed under GNU General Public License v3 be sold by the original author?
Read it again. If you provide the source to them with the binary your obligations are met. GPL version 2, section 3 has the text "provided that you also do one of the following:" and options a, b and c. Option a is complete machine readable source code.
Aug
22
comment When would polling for events be better than using observer pattern?
@Jojo: You could, yes, but then you are putting policy that should belong in the display into the RPM counter. Perhaps the user occasionally wants to have a highly precise RPM display.
Aug
22
comment Does writing a programming blog reduce your learning speed, compared to reading other people's blogs only?
Yes. Completely true. You never see the gaps in your own knowledge until you try to pass it on.
Aug
22
comment Can software licensed under GNU General Public License v3 be sold by the original author?
The easiest way in my opinion is to just drop the source .zip or .tgz in the doc directory of the installation. Done and you have no further commitment, ever.