1,102 reputation
522
bio website yourcodeisshowing.wordpress.c…
location Quebec City, Canada
age 37
visits member for 3 years, 11 months
seen Sep 23 at 14:00

Developer with 8 years experience. I work with J, C, C++, C#, SQLite, MySQL, VBA, and a bunch of other odds and ends.

On Twitter: @MPProg


Nov
6
comment Design pattern for an ASP.NET project using Entity Framework
I see this question which is very similar, but not the same: programmers.stackexchange.com/questions/163239/…
May
14
comment If a fluent coder disregards good practices, doesn't his fluency work against him?
@gnat The question being "What do you think of that?", my answer was what I thought. I'm still of the same opinion: fluency (thus being able to do quick solutions, hacks, etc) can lead to harmful code in the long run. You can't just be fluent in a language, you have to know how to organize code.
Feb
5
comment How can I deal with a team member who dislikes making comments in code?
@Saul, I've been there too. It's hard to change people. Keep at it. Another approach, after about 6 months, your old code doesn't even look familiar. It's become someone elses. Let him re-read some of his old stuff from a while ago. Or, you can use peer pressure: "I can understand everyone else's code at a glance." At some point, you (and he) have to understand that you're paid to create software. Time is precious. Optimize time developing by leaving no ambiguities.
Feb
5
comment How can I deal with a team member who dislikes making comments in code?
@Saul In that case, reply "I've read it and could not understand it all. I should not have to run it to know what it does."
Nov
28
comment Keeping an enum and a table in sync
Well yes, that's the idea. But if I set the ID's to one place an to others, I'm working off the assumption that they are both right. It's a loose link, no?
Nov
28
comment Keeping an enum and a table in sync
@suslik They are both pronounced the same. Synch and Sync.
Nov
28
comment Keeping an enum and a table in sync
It's not so much about new statuses (which would definitely warrant a modification of both database and program), but Id values.
Sep
26
comment What good reasons are there to capitalise SQL keywords?
Capitalizing SQL keywords I can understand. Most table declarations and queries I see capitalize EVERYTHING, table names and columns included.
May
18
comment Should the most recent date be named 'start' or 'end'?
There's also a case to be made for reading left to right. The order goes that way in more languages than the reverse. Both human and programming languages.
May
18
comment Should the most recent date be named 'start' or 'end'?
I agree with the desire to make something adequate and clear. I'm working with an old code base where any notion of "first" and "last" are labelled "a" and "z"... "Start" and "End" sound much more natural.
May
18
comment Should the most recent date be named 'start' or 'end'?
Simply "StartDate", "EndDate", and good documentation. There is a case to be made for documentation. A well made API has appropriate documentation. Furthermore, if you want to get cocky, throw an Exception if EndDate < StartDate, and document that too.
Feb
23
comment Examples of operator overloading, which make sense
@dan04 Very very good to know!
Feb
16
comment What is the most effective way to add functionality to unfamiliar, structurally unsound code?
You're actually more dead on with several valid approaches. All I have are pointers and tips...
Dec
25
comment What are the consequences of having unnecessary references and usings?
Cleaning using's is a built in feature of VS 2010 (I think 2008 too). And ReSharper can do the references too. But yeah, before I'd embark on any large scale cleanup, I'd look into using a tool to do this for me.
Dec
9
comment Why is it impossible to produce truly random numbers?
@Brian So what we need is a chaos API to fetch numbers from that!
Dec
9
comment Why is it impossible to produce truly random numbers?
Outside the computer, is any random number ever truly random? Throw a die, it's physics with just a lot of vectors.
Dec
9
comment Ordered enumeration: IEnumerable or Array (in C#)?
Damn, I'd totally forgotten my data structure class. Of course it doesn't affect later enumerations! I've covered myself in shame... :(
Dec
9
comment Ordered enumeration: IEnumerable or Array (in C#)?
I do have a great, shameful lack of knowledge of how the enumerable pattern works. I guess that's why I'm here asking this.
Dec
9
comment Ordered enumeration: IEnumerable or Array (in C#)?
1NF: "There's no top-to-bottom ordering to the rows." That's what's happening here, I think. There IS top-to-bottom ordering in logs, in lots of loose "collections". LINQ is designed to work on collections as if they were databases, but there can be top-to-bottom ordering, hence the contradiction I just saw.
Dec
9
comment Ordered enumeration: IEnumerable or Array (in C#)?
Even then, the order could be implicit. That's the main issue I'm having. I understand that the concept of LINQ is to emulate database functions, and as per 1NF, records are unordered. Unfortunately, the real world is rarely 1NF.