17,118 reputation
33369
bio website contactandcoil.com
location Ontario, Canada
age 38
visits member for 4 years, 3 months
seen 16 hours ago

By day I'm a Professional Engineer, currently working as a .NET software developer. My CV.

I also wrote and maintain an open source extensible application framework called SoapBox Core, and an open source C# library for communicating with Insteon home automation devices called FluentDwelling.

You can follow me on twitter.


2d
awarded  Good Answer
Jan
28
revised Leaving intentional bugs in code for testers to find
added 203 characters in body
Jan
28
awarded  Nice Answer
Jan
28
answered Leaving intentional bugs in code for testers to find
Jan
28
revised What is the term for a 'decoy' feature or intentional bug?
Changed link (old link was 404'd) and blockquoted relevant definition
Jan
28
comment Leaving intentional bugs in code for testers to find
possible duplicate of What is the term for a 'decoy' feature or intentional bug?
Jan
27
comment GPLv3 + commercial license on the same project?
@FezVrasta - using a GPL'd piece of code would require you to make your entire project available under the GPL (that's why it's considered "viral").
Jan
3
comment When trying to find out if a number is even or odd: AND 1 or OR 0
I'm voting to cancel the down-vote because even though I originally thought this was a poor quality question as well, I now think there are enough nuances to make it an interesting exercise in thinking about the instruction set.
Jan
3
revised When trying to find out if a number is even or odd: AND 1 or OR 0
added 362 characters in body
Jan
3
comment When trying to find out if a number is even or odd: AND 1 or OR 0
@ratchetfreak - it's definitely a good way to make the next programmer to read your code really annoyed.
Jan
3
answered When trying to find out if a number is even or odd: AND 1 or OR 0
Jan
3
comment When trying to find out if a number is even or odd: AND 1 or OR 0
OR'ing any number with 0 will only give you the same number back, so I think your second tutorial may have been incorrect. Using AND with 1 is the normal path here, and if the result is 0, then it's even. If you wanted to go the OR path you'd have to OR with 1 and check if the result matches the original number, in which case it's odd, but that's a weird way to do it.
Jan
2
comment What are the caveats of implementing fundamental types (like int) as classes?
@amon - the value 7 is immutable, but the instance that is int a = 7; certainly is not immutable. A reference to a isn't a reference to the value 7 but rather a reference to a mutable variable. The question is talking about inheriting from int, not inheriting from 7. I admit that I might be completely misunderstanding something, but I'm afraid that your response to my initial comment isn't clearing anything up for me.
Jan
1
comment What are the caveats of implementing fundamental types (like int) as classes?
An int is hardly immutable in all languages.
Dec
31
awarded  Nice Answer
Dec
30
comment Confusion between F# and C#
Up-voting to cancel the down-vote. I think you're asking a good question here. I also suggest taking a look at Real-World Functional Programming With examples in F# and C# by Tomas Petricek with Jon Skeet. I learned a lot from it.
Dec
16
comment Is it better to use strings or int to reference enums outside the java part of the system?
@Neil - true but we're trying to play the odds here. I'm not familiar with Java enums, but in C#, I explicitly set the values for enums if the values need to have meaning outside the program (such as in a database) (e.g. Hearts = 1, Diamonds = 2, etc.). Since that's not the default way to use an enum, it should give a later editor pause. Plus a comment noting where else these are used is handy.
Dec
16
comment Is it better to use strings or int to reference enums outside the java part of the system?
Good points, but you're forgetting about the case where someone decides to change the name of one of the enum entities (HEARTS to Heart or something in your example) and suddenly everything breaks again.
Dec
16
awarded  Nice Answer
Nov
22
revised Unit of Work Concurrency, how is it handled
added 134 characters in body