5,390 reputation
22224
bio website
location
age
visits member for 3 years, 6 months
seen Nov 22 at 21:47

Oct
28
comment Are abstract classes / methods obsolete?
It indeed replace the need for abstract classes in various scenarios. More specifically, it remove the need of abstract classes to avoid code duplication.
Jun
2
awarded  Yearling
May
9
awarded  Great Answer
Jan
6
comment Why is closure important for JavaScript?
This is not the only use of closures. However, JS do not have namespace. As a result, closure are massively used in JS to emulate NS.
Jun
2
awarded  Yearling
Jan
16
comment Can branching ever be considered a bad practice?
It seems that the problem is much more general than branching. The way your team work seems disfunctionnal, and that disfunction make branching/merging difficult.
Jan
9
comment Is it not a good practice to handle runtime exceptions in the code?
@supercat you are right with C++ and allocation, but this is kind of OT. You example of the API returning null on getNextItem is great. This is an appropriate use of null. In fact, this is an implicit contract between the caller and the callee. If you plan to store the value instead of reading it, you'd better assert that the contract is respected, otherwise, you'll find out that a problem occur much later. If you plan to consume the data immediately, no need to add checks, you are right.
Oct
17
comment How to prevent code from leaking outside work?
@user1598390 I'm pretty sure every apple dev have access to sevral BSD distro and Mach kernel.
Oct
17
comment How to prevent code from leaking outside work?
@ScottWhitlock yes, money is very different, so your banking comparison don't make any sense. Money do not duplicate like code do. Obviously you can take security measures, but a level of trust is always required.
Oct
17
comment How to prevent code from leaking outside work?
I have nothing against separation a project in different parts. I have something against hiding the larger picture. This is making your devs blind on purpose. Do you think ANY dev that can choose his/her work will accept to play this stupid game ?
Oct
17
comment How to prevent code from leaking outside work?
If your boss don't make the difference between intellectual property and real property, then he is likely to be as competent in the business than he is technically. Is he pointy haired ?
Oct
17
comment How to prevent code from leaking outside work?
I wouldn't recommend the last one, because it would prevent any dev to do smart stuff. Any competent dev would runaway from such a situation. The conclusion is not hard to deduce.
Oct
16
comment Are long methods always bad?
@ConradFrix 200 lines is already a long routine according to most standards.
Oct
16
comment Are long methods always bad?
@ConradFrix yes.
Oct
16
awarded  Guru
Oct
15
awarded  Good Answer
Oct
15
comment Are long methods always bad?
@gnat I would have considered hacking the compiler or using some preprocessing tool here.
Oct
15
comment Are long methods always bad?
@da_b0uncer That is also a policy I follow. It is harder to read code than to write it, so extra effort when writing to make code more readable does pay back.
Oct
15
revised Are long methods always bad?
add relevant details from comments.
Oct
15
awarded  Nice Answer