Skip to main content
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
Results found
Search options answers only not deleted community wiki score>= 25
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 …
Community's user avatar
  • 1
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 …
Community's user avatar
  • 1
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 …
Doc Brown's user avatar
  • 214k
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 …
Colonel Thirty Two's user avatar
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 …
Doc Brown's user avatar
  • 214k
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 …
Christianidis Vasilis's user avatar
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 …
Pang's user avatar
  • 325
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 …
PeterJames's user avatar
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 …
PeterJames's user avatar
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 …
ZJR's user avatar
  • 6,341
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 …
Glorfindel's user avatar
  • 3,157
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 …
Qwertie's user avatar
  • 327
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 …
Michael Riley - AKA Gunny's user avatar
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 …
MyNameIsTrez's user avatar
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 …
steventrouble's user avatar

1
2 3 4 5
33
15 30 50 per page