1,709 reputation
516
bio website
location United Kingdom
age
visits member for 4 years, 8 months
seen May 15 at 15:35

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.
Aug
19
comment Teaching programmer looking for a simple statically and weakly typed language
You can use Pascal instead of C++
Aug
19
comment When is type testing OK?
@svidgen, It would then not be as clear that employeeRepository.getEmployeeById(empId) is expected to return an manager
Aug
4
comment When is it appropriate to do calculations in front-end?
@LieRyan, agree, but then you need to use 2 different unit test systems so a reason to keep calcs out of the front end unless they is a clear benefit of having them in the front end.
Aug
4
comment When is it appropriate to do calculations in front-end?
Automated Unit Testing will be easier if all logic is in the back end. If 90% has to be the back end and 10% can be in the back-end, then I would put 100% in the back end.
Jul
21
comment Why use getters only as opposed to marking things final?
A lot depend on if you are in control of all code that uses your class, and if you know the all client code will be recompiled when you class is changed.
Jul
16
comment Is it a good idea to “#define me (*this)”?
@cup, But C/C++ gives the coder so much more power to redefine the language, at least in Java/C# when I see what looks like the “while” keyword, I know it is.