Reputation
1,852
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 17
Newest
 Nice Answer
Impact
~156k people reached

Jul
31
comment Should a c# dev switch to VB.net when the team language base is mixed?
As a C# programmer I have worked on projects that use VB.NET. But more often than not the VB.NET programmers did not know what they were doing, did not have Comp Sci degrees and wrote methods with 100s of lines of code. Therefore I leaned to ignore any job advert that asked for VB.NET.
Jul
31
comment Coding guidelines for seamless merging
"Never put anything under source control that can be derived from something else - this means no binaries, no generated code, no build intermediates, etc." I disagree with this, on one product the build system CHECKED all such items were the same in the SCM as the output of the tool, this was great. It let us diff generated SQL between versions, but still make it impossible for anyone to hand edit it.
Jul
6
comment Bad practice - switch case to set environment
Remember that if you use a config file it needs to be controlled in source code control.... Any you may have to edit the config file many times a day when you setup new test machines. I still think a config file is best, but you may wish to first look for a file named based Environment before looking at the detaul config file.
Jun
22
comment What problem do algebraic data types solve?
Do you get a compiler error if you fail to update a match, or is it only at run time you find out?
Jun
17
comment Best practice boolean assignment
Variant 1 may be useful if you need to often set a breakpoint that depends on the value.
Jun
17
comment What's the point of implementing a Stack using two queues?
Anyone that can write this code and answer a few questions on their code clearly understands queue and stacks, hence a very good task to help students build the understanding.
Apr
15
comment How can I argue convincingly against duplicating database columns?
Be thankful that you are not trying to match together data that have come for paper based patent records and 20 odd different systems that are by the xray department etc.... A patient can be seeing a few consultants for unrelated reasons within a few weeks....
Apr
14
comment How can I argue convincingly against duplicating database columns?
Does the duplicated data every change once it is written to the database?
Jan
29
comment Leaving intentional bugs in code for testers to find
SQL injection is a good one to do this for, as you can just pick n sql statements at random to "break"
Jan
14
comment Is it always a best practice to write a function for anything that needs to repeat twice?
Also consider if you want "damp code" or "dry code" see stackoverflow.com/questions/6453235/…
Jan
10
comment Why would a program require a specific minimum number of CPU cores?
That is why good spinlocks downgrade to other lock types after a small time, and even better ones do so very quicker if past usages of the same lock have had to downgrade.
Dec
31
comment What is different between the internal design of Java and C++ that lets C++ have multiple inheritance?
That answer talks about the risks of the “foot gun" with multiple inheritance, it was also a real issue that at the time that no one know a good way to implement it with run time loading of classes.
Dec
30
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@Oded, what makes you thing that all clients will have Javascript? Also given that dates need to be formatted in emails and reports, is it not better to use the same code in all of the cases?
Nov
26
comment Should I accept empty collections in my methods that iterate over them?
Return "null" in most cases is worse then throwing a exception. However returning an empty collection is meaningful.
Nov
13
comment Why is the sudden increase in number of Git submitters on Debian popcon graph in 2010-01?
SVN was never a leading centralised VCS when it come to branching and merging. Hg and Git were the first open source VCS that cope well with branching and merging. I don't think centralised/distributed had that much to do with it.
Nov
2
comment Should a getter throw an exception if its object has invalid state?
@Rotem, normally a empty string is better then null, as it can be shown in a UI without getting errors.
Sep
30
comment Is creating subclasses for specific instances a bad practice?
Maybe there was some behavior that was expected to be added to the sub classes that never made it into the code base yet, or is about to be added some someone elses next checkin.
Sep
14
comment Why do some languages round to the nearest EVEN integer?
@ratchetfreak, so it was easy for a clark to do by hand in the days before computers
Aug
20
comment When is type testing OK?
@IanGoldby, I meant hidden in the sense that it can make the WPF or WinForms code harder to understand. I expect that for some web base UIs it would work very well.
Aug
19
comment When is type testing OK?
@IanGoldby, agreed at times it can be, however you are still doing "type testing", just hidden a bit.