Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
2
Newest
 Student
Impact
~314 people reached

  • 0 posts edited
  • 0 helpful flags
  • 10 votes cast
Nov
10
comment Using compound statements (“{” … “}” blocks) to enforce variable locality
@Joe have to disagree. It is not tagged OOP, and it begins with "C-like". The fact is that a question tagged [carnivors] that mentions dogs does not immediately excludes felines or make it a dog question. Also the word method does not appear on the question body, just function. So it does not mention methods.
Nov
10
comment Using compound statements (“{” … “}” blocks) to enforce variable locality
@Joe the discussion in this comment thread was drifting too much into OOP.
Nov
10
comment Using compound statements (“{” … “}” blocks) to enforce variable locality
@Joe isn't the question language-independent. OP only mentions "C-like", every language that can have anonymous code blocks defining variable scope falls under this question.
Nov
10
comment Two structs with the same members but different naming, is it a good idea?
It is even more important if the OP is making classes out of those structs, since the operations on cartesian and polar coordinates are different.
Feb
26
comment Is it premature optimization to add database indices?
@MathematicalOrchid should've been an answer. Could run for "smallest-straight-to-the-point" answer ever.
Feb
23
comment Caveats of using String.hashCode() on a switch on java < 1.7
@MichaelT isn't there a contract on the hashCode function documentation to always be that s[0]*31^(n-1) ... formula?
Jan
16
comment Is there any material difference between queries joined by WHERE clauses, and queries using an actual JOIN?
I'd like to point the conflicting signals of a work with "the Hard Way" in the title skipping a concept "because they are insanely confusing". But maybe just my concept of what "the hard way" should be is wrong. But again, maybe not.