Reputation
223
Top tag
Next privilege 250 Rep.
View close votes
Badges
2 11
Impact
~10k people reached

Jul
29
comment At what point do immutable classes become a burden?
I see what you're saying, I just envision a problem with this because it doesn't lead a developer to "fall into the pit of success." The fact that it uses static variables means that if a Builder is reused, there is real risk of the thing happening that I mentioned. Someone might be building a lot of objects and decide that since most of the properties are the same, to simply reuse the Builder, and in fact, let's make it a global singleton that is dependency-injected! Whoops. Major bugs introduced. So I think this pattern of mixed instantiated vs. static is bad.
Jul
24
comment At what point do immutable classes become a burden?
I think that your builder being static is not correct. Another thread could change the static name or static value after you set those, but before you call newObject.
Jul
17
comment Why do C# developers newline opening brackets?
Please provide references for "... scientific studies showing that the brace on its own line ... ". Without at least two references (otherwise it would be study, not studies), it's just shooting randomly into the air.
Jan
15
awarded  Popular Question
Sep
24
awarded  Autobiographer
Aug
5
suggested rejected edit on Should you ever use private on fields and methods in C#?
Jun
17
comment Why do we need to put N before strings in Microsoft SQL Server?
N means National, as in "National Varying Character", see Equivalent ANSI SQL Data Types.
Jun
16
awarded  Notable Question
May
30
comment How can I work out how many IP addresses there are in a given range?
You're completely right!
May
29
revised How can I work out how many IP addresses there are in a given range?
added 13 characters in body
May
29
revised How can I work out how many IP addresses there are in a given range?
added 13 characters in body
May
29
answered How can I work out how many IP addresses there are in a given range?
May
29
comment How can I work out how many IP addresses there are in a given range?
I agree that the subnets determine how many truly usable IP addresses are in the range, however for the OP's purposes that's mostly irrelevant. Instead, he's trying to give an order of magnitude for how many raw IP addresses there are, for which the occasional broadcast and network address don't need to be removed.
Nov
11
awarded  Popular Question
Jul
19
awarded  Yearling
Jun
24
revised Is it possible to rewrite every line of an open source project in a slightly different way, and use it in a closed source project?
changed "here" to correct citation
Jun
24
suggested approved edit on Is it possible to rewrite every line of an open source project in a slightly different way, and use it in a closed source project?
Jun
20
comment Why is prefixing column names considered bad practice?
Underscores (compared to PascalCase) are one extra keystroke on a key far from the home row with the weakest finger. That's why I hate them. As for prefixes, how about the database I worked with where every foreign key had to be prefixed with frnkey?
Jun
20
comment Why is prefixing column names considered bad practice?
Definitely the first one... :)
May
30
comment What is the best retort to “premature optimization is the root of all evil”
@Peter I wondered about a root myself, which communicates the thought less ambiguously, though in my mind using the has nearly identical meaning in the same sentence.