6,292 reputation
31633
bio website caffeinatedgeek.ca
location Manitoba
age 33
visits member for 3 years, 10 months
seen Jul 8 at 14:58

Consultant/Developer

Focused on .Net Web Development

Twitter: http://twitter.com/caffgeek


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.
Jun
13
comment How do you put a database online?
Or they will tell you what hostname to use. Just as many hosts have their databases on a different server.
Jun
12
comment Should I tell a departed coworker about their “sev 1” defect?
I wish I could shut off the brain when leaving.
Jun
12
comment Should I tell a departed coworker about their “sev 1” defect?
I don't think the NDA issue would be much concern if the person you are talking to wrote the code in the first place...the only thing you are disclosing that he didn't know before is that he made a mistake. However, I'd only ever bother telling a friend, not some random colleague I barely knew, or more likely hated.
Jun
5
comment Is unit testing development or testing?
@Rubio, what extra work? Just print out the result. If they are named well, it tells them what you are testing. The shouldn't need the actual code or description of how the method works. If they do, they can look it up themselves.