BlueRaja - Danny Pflughoeft
Reputation
3,319
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
14 26
Impact
~206k people reached

2d
comment How to work with programmer with different preference of indentation width?
@AleksiTorhamo Of course there's a problem, the problem is that you have to remember to do it, which is a huge problem. Once you forget (and you will forget), the indentation looks like garbage. If the tooling did this for you, I'd agree that it'd be the best solution, but most (all?) major IDE's/text editors do not, which makes your solution non-viable. Developers have enough other crap to worry about, they shouldn't spend time thinking about which indentation character to use at any given moment.
2d
comment How to work with programmer with different preference of indentation width?
@Aleksi Torhamo: If you think alignment issues won't be a problem when using tabs, just take a look at any Github project which uses tabs - Github displays tabs using 8(!) character, and tab-based code never displays correctly.
Jul
18
comment What is the meaning of “doesn't compose”?
Your bullet points for "referential transparency" and "purity" are actually the two requirements for purity. The term "referential transparency" should be avoided because it is not well-defined.
Jul
13
awarded  Autobiographer
Jul
11
comment Should my (sequential) collection start at index 0 or index 1?
@BrianKnoblauch: No! That is one of reasons Basic was considered such a bad language - the language should pick an indexing scheme and stick to it, not make programmers cognitively have to deal with both!
Jul
5
comment Is it advisable to disable the Microsoft enforced coding standards in VC# 2010?
@Richard: Yes, C# does have formatting guidelines: msdn.microsoft.com/en-us/library/ff926074.aspx However, next-line braces are not explicitly mentioned (but similar issues like 'four-character indents' and 'tabs saved as spaces' are)
Jul
1
comment Is testable code better code?
See also The sacrifices we make to make code testable
Jun
17
comment Introducing a version control branching policy to a small team
@17of26: Actually, when using Git + Github-for-Enterprises (which has become an extremely common combination in large companies lately), branches are the standard mechanism for doing code reviews. Github has tons of features to make doing code reviews and their associated pull requests super-convenient.
Jun
16
comment Introducing a version control branching policy to a small team
"Keep in mind that the only real benefit to a branch is code isolation. That means you need a concrete reason to want to have the code isolated." - How about code review? I think that's a good reason, even with only two devs.
Jun
4
comment Clean Code comments vs class documentation
Even vacuous comments like Returns the id are helpful, because they still convey that "The author of this method didn't feel there were any pitfalls in using it that were worth mentioning", which is good to know. A lack of documentation comment might convey that, but it could also have been an oversight.
Jun
3
awarded  Quorum
May
29
comment Is the use of one-letter variables encouraged?
@Lilienthal: Code should be efficient-to-read, not efficient-to-write. Usually they are the same thing, but not always, as in this case.
May
29
comment Is the use of one-letter variables encouraged?
-1 Using 1-letter variables names is lazy programming. Sometimes it's okay to be lazy, but if you're getting up to k and l in loop indices, that's too far (you shouldn't have that many nested loops to begin with; extract them to functions). Personally, I never use more than one 1-letter variable per function, but I shoot for 0.
Apr
17
comment NoSQL within SQL Server
@MasonWheeler: He makes it sound like they are orders of magnitude slower, and wrote an entire article on how searching within strings work, completely ignoring the fact that any data lookup will go through an index file first (this is true in both relational and XML databases). So basically, everything in that article is irrelevant.
Mar
30
comment NoSQL within SQL Server
Joel Spolsky is known for having strong, controversial opinions. See FogBugz is written in a proprietary language; Dependency injection is too complicated (btw, this was the most controversial answer on Stackoverflow before being closed); XML databases are slow; etc.
Mar
20
awarded  Nice Answer
Mar
19
revised When is it a good idea to force garbage collection?
hehe
Mar
18
answered When is it a good idea to force garbage collection?
Mar
16
revised Do enums create brittle interfaces?
added 16 characters in body
Feb
27
awarded  Nice Answer