6,302 reputation
31834
bio website caffeinatedgeek.ca
location Manitoba
age 33
visits member for 4 years, 1 month
seen Sep 20 at 14:59

Consultant/Developer

Focused on .Net Web Development

Twitter: http://twitter.com/caffgeek


Jul
24
comment Pair Programming and ISO 27001
@JohnSibly, then the driver logs off, and lets the peer log on. If they go to the washroom, lock the machine if you don't trust your peers. However, no trust is a bigger issue that should be rectified.
Jul
24
answered Pair Programming and ISO 27001
Jul
23
comment Every SQL statement has to be reviewed by a DBA — common?
Well, we don't put SQL statements in the code. However, ALL code should be reviewed by appropriate knowledgeable individuals.
Jul
20
comment Strategy/algorithm to divide pot to chips
@missingo, interesting caveat. You'd have to use some iteration and adjust what denominations are available for each attempt of the algorithm. Then determine what is the ideal "stack" of chips to pay out.
Jul
20
comment Strategy/algorithm to divide pot to chips
@missingno, no casino would ever have a $20 and $25 dollar chip in the same game...
Jul
20
comment Strategy/algorithm to divide pot to chips
@MinimeDJ, you said you wanted "minimum number of denominations and chips", I gave you the way to get the minimum number of chips. To reduce denominations, you would need to look at any "small" stacks, and break it down to a smaller denomination that you already contain.
Jul
19
answered Strategy/algorithm to divide pot to chips
Jul
19
comment Strategy/algorithm to divide pot to chips
Is this homework, it sure seems like it.
Jul
18
comment How do you disarm a cowboy coder?
He shouldn't be able to pass the code off to "whomever he wants" to be reviewed. That's a flaw in the process.
Jul
16
comment What pattern to use for this 'constructor'? Decorator vs Factory?
You pass an array of all the Roles you want combined, it can be 0, 1, 2, 3, whatever.
Jul
16
comment What pattern to use for this 'constructor'? Decorator vs Factory?
Something like RoleCharacter(Role[] roles) and just loop through the array?
Jul
12
comment Alternative to XML / XSLT for artifact generation?
This is actually a good use of xml. All to often people overuse xml, but it's great at serializing a state of data. The upside of PDF however is that it's a little tougher to tamper with, and everything can be contained in one file.
Jul
12
comment visibility:hidden Vs visibility:collapse
Don't rely on W3Schools, the site has a lot of errors and inaccuracies. And despite the name has nothing to do with the W3C (see: w3fools.com).
Jul
11
comment Confusion of scope of a variable: Is Global Variable a solution?
"You should only make a variable global if you plan to use it everywhere throughout your program." And even that is a bad excuse. Just because it's used everywhere doesn't mean it should be global.
Jun
26
comment Why is it good to split a program into multiple classes?
Considering you're in grade 10, and have already been able to form an intelligent question, providing all the details necessary for good answers, providing context, and your relative experience, as well as background information into why you are asking the question; you are already more qualified than many people I currently work with...
Jun
19
comment Why does iPhone and iPad apps have a Free version and a full version, instead of “unlocking” it through in-app purchase?
+1 for "Having two apps in the app store gets you a little more exposure than just having one. Your apps can be listed in both the "free" and "paid" categories, and searches that find your app will often display both versions."
Jun
15
comment What is an “implementation plan”?
I like this answer. It's simple to create for most projects. What needs to be done to implement? How do we health check after implementation? And how do we undo the implementation if everything blows up!
Jun
14
comment Is it advisable to disable the Microsoft enforced coding standards in VC# 2010?
It also gives your brain a quicker way to recognize what language you are in, and aids context switching between languages.
Jun
14
comment Warn about 3rd party methods that are forbidden
Can you inherit the classes in their library, and add an override to the methods you don't want them to call that is marked as obsolete?
Jun
14
comment Should I tell a departed coworker about their “sev 1” defect?
@Yamikuronue, haha, nice. I have to remember that phrase.