3,236 reputation
21030
bio website
location Chicago, IL
age 26
visits member for 3 years, 3 months
seen 1 hour ago

Nov
13
comment Demonstrate bad code to client?
Given the content of so many bug reports, "it broke __ more places" does indeed seem like the best way to describe the domino effect...
Nov
12
comment Has the emerging generation of programmers got the wrong idea about design patterns?
I find your mention of lego bricks to be highly amusing due to Lego Mindstorms.‌​.
Nov
10
comment Android: Not able to experiment on own?
I have to agree with @cseder on this. Trying to get into Android without learning Java (by way of PhoneGap or similar) is - to extend his metaphor - like using a life jacket without knowing how to swim. You'll probably get something done, but not nearly as much as you could.
Nov
8
comment Why is Java version 1.X referred to as Java X?
@AndrzejBobak Google Chrome is worse, it's approaching 20 versions in 2 years
Nov
5
comment Why do browsers leak memory?
@mike However, even with full setup like that, I highly doubt RAII is a catch-all. It's easy to have memory leaks in garbage collected languages like Java, after all
Nov
3
comment What is Declarative UI?
@Telastyn The OP is asking the difference between declarative UI and <foo> UI (such as "imperative UI"), and if an alternative to declarative UI even exists.
Nov
1
comment Should comments say WHY the program is doing what it is doing? (opinion on a dictum by the inventor of Forth)
HOW is, on very rare occasions, necessary. Exactly once in the past year and a half, I had to do something rather obscure and ended up putting the url to a StackOverflow question in the comment, which explained HOW that code works (yay language edge cases) using several paragraphs with code examples...
Oct
31
comment Are flag variables an absolute evil?
@MainMa Apparently there's a 3rd: The version with 8 boolean arguments are what I thought of when I read "flags"...
Oct
30
comment Are nested classes under-rated?
@AaronAnodide That should be an answer about a good way to use nested classes. It's exactly how/why I use them, it helps to organize the code.
Oct
29
comment Diminishing Returns on Additional Developers
@jfrankcarr "They'll still need 9 months to get started. So will this project, for training the new developers"
Oct
26
comment Can a recursive function have iterations/loops?
Or even multiple calls without a loop, like traversing a plain binary tree, where you'd have 2 calls due to each node having 2 children.
Oct
24
comment Is this a decent use-case for goto in C?
@KevinCathcart Thanks for looking it up, I've replaced the link in the answer
Oct
24
revised Is this a decent use-case for goto in C?
Replaced dead link
Oct
24
comment MVC Can the model know ANYTHING about the view?
@AwDogsGo2Heaven Pretty much, yeah. suszterpatt's idea is also good, but if your model already has some sort of abstract unit available to it (like a chessboard having the tiles), I'd go with that
Oct
23
comment Generic rule parser for RPG board game rules - how to do it?
@burzum You are correct, that is what this site is currently about. Programmers.SE is in a 3 (or more) way tug-of-war on what it's supposed to be about, because of how the focus has changed since it was created...
Oct
23
comment MVC Can the model know ANYTHING about the view?
@AwDogsGo2Heaven Instead, have the model understand units of size. For example, a chessboard is X by Y squares in size. The view (controller? whatever.) can convert pixel size of 130x300 into "Hey, model, you have 10 squares by 23 squares available to you".
Oct
20
comment Is using dirname(__FILE__) a good practice?
Unless they were removed during script execution, but that's a side-case that means you're doing something wrong...
Oct
19
comment How to prevent code from leaking outside work?
@Kobi Emails work? Okay, then then there's a very good chance a zipped tarball of code in an email will also work... Especially if you changed the extension.
Oct
18
comment Why use other number bases when programming
@gerrit 0-prefixed numbers are generally octal (and is how you indicate octal in at least C). They show up all the time in *nix file permissions, since the 3 bits correspond exactly to read/write/execute
Oct
18
comment How do you pronounce the '…' operator
@VaibhavAgarwal It's an issue with StackExchange's automatic URL detection - if the URL ends in a ), then it doesn't work right. This is the real, correct link.