Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
91
votes
Why did memory-managed languages like Java, Javascript, and C# retain the `new` keyword?
In short, you are right. The new keyword is superfluous in languages like Java and C#. Here are some insights from Bruce Eckel who was a member of C++ Standard Committee in 1990s and later published b …
34
votes
Is it a must for every programmer to learn regular expressions?
I would not be surprised if, for example, a games programmer or a programmer at the LHC never learned regular expressions. I might even give a games programmer a pass on not knowing SQL.
But, if you a …
127
votes
Accepted
A client wants us to screen work machines for pornography. Is it possible?
You can do this with 90% Headology, 10% software.
Firstly, quietly scan employees computers, build a database of files and sizes for each employee.
Then leak a memo that all PC's will be scanned for q …
2696
votes
Accepted
What technical details should a programmer of a web application consider before making the s...
The idea here is that most of us should already know most of what is on this list. But there just might be one or two items you haven't really looked into before, don't fully understand, or maybe nev …
83
votes
What is the benefit of not using Hungarian notation?
Hungarian notation is a naming anti-pattern in modern day programming environments and form of Tautology.
It uselessly repeats information with no benefit and additional maintenance overhead. What hap …
28
votes
Why do languages such as C and C++ not have garbage collection, while Java does?
Because, when using the power of C++, there is no need.
Herb Sutter: "I've haven't written delete in years."
see Writing modern C++ code: how C++ has evolved over the years 21:10
It may surprise ma …
159
votes
Accepted
What is the benefit of not using Hungarian notation?
Because its original intention (see http://www.joelonsoftware.com/articles/Wrong.html and http://fplanque.net/Blog/devblog/2005/05/11/hungarian_notation_on_steroids) has been misunderstood and it has …
148
votes
My boss decided to add a "person to blame" field to every bug report. How can I convince him...
The main argument I would use against it is to ask what problem he's trying to solve. There are almost certainly better ways of solving the same problem.
For one thing, is there really only ever one p …
35
votes
Do programmers need a good memory?
The syntax of a language is not as hard as you think to remember, if you use it daily. Eventually it becomes very easy. Remembering all the various library functions is much more difficult and I think …
95
votes
What is MVC, really?
MVC is mostly a buzzword.
It used to be considered a pattern, but its original 1979 definition has been dumbed down, passed on, misinterpreted, and taken out of the original context. It's been ill-red …
33
votes
How important is it to reduce the number of lines in code?
Taking the reviewers' advice literally won't do any good, because the obvious direct result is promoting terse one-liners (line length limit notwithstanding). I believe the lesson to be learnt here, t …
29
votes
Is premature optimization really the root of all evil?
I've often seen this quote used to justify obviously bad code or code that, while its performance has not been measured, could probably be made faster quite easily, without increasing code size or com …
33
votes
Should I fully parenthesize expressions or rely on precedence rules?
Yes
You should always use parentheses... you do not control the order of precedence... the developer of the compiler does. Here is a story that happened to me about non use of parentheses. This affect …
86
votes
Why Use !boolean_variable Over boolean_variable == false
In C and some similar languages, comparing boolean expressions for equality to false or true is a dangerous habit.
In C any scalar expression (numeric or pointer) can be used in a boolean context, for …
86
votes
Why isn't Java more widely used for game development?
Technical reasons:
Most of the best 3D game engines are written in C/C++. This is a big deal, since most game developers don't want to compromise on their 3D engine, but nor do they want to write one …