1,493 reputation
515
bio website
location United Kingdom
age
visits member for 4 years, 3 months
seen 2 days ago

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.
Jul
15
comment Is it a good idea to “#define me (*this)”?
And people still wish to know way so many programmers felt the need to move to Java/C# to escape from the world of unmaintainable C++ cope.....
Jul
2
comment Is commented out code really always bad?
@TMN, most automatic coding style checkers will not be able to tell the difference
Jun
13
comment Fixing a spelling mistake in a method name
Also Consider if there are other code branches that will get merge issues from your rename....
May
16
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
What type of bugs are you produced, e.g. "simple coding errors", "not understanding spec", "not good ui formating", etc. The answer very much depends on the bug type.
Apr
29
comment What is the benefit of git's two-stage commit process (staging)?
@ReinHenrichs, yes and it is very common when the file contains the name of the database server and each dev has there own database.
Apr
28
comment CI runner on same server of GitLab?
@FezVrasta, the "offsite server" can be anyone that will sell you git hosting, it does not have to be a server you own. Also as it is over the internet doing a pull from it will be slow.
Apr
28
comment What is the benefit of git's two-stage commit process (staging)?
@ReinHenrichs, think about config files that need changing by each developer.