3,231 reputation
21029
bio website
location Chicago, IL
age 26
visits member for 3 years, 3 months
seen 12 mins ago

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.
Oct
12
comment Does software rot refer primarily to performance, or to messy code?
Wikipedia lists 3 causes, 2 of which are not related to performance, Unused code and Rarely updated code...
Oct
10
comment Do we ethically have the right to use the MAC Address for verification purposes?
@JustinCave Don't forget about your programmers, too! We know how fragile MAC addresses in particular are, and being made to implement something like this is bound to cause a drop in morale.. Which could impact the rest of the project.
Oct
10
comment Do we ethically have the right to use the MAC Address for verification purposes?
My Android's MAC address is one thing on bootup, but if I toggle WiFi, it gets set to a different address (but always the same one). 'Tis odd, but makes me think that MAC addresses nowadays aren't as static as they're supposed to be.
Oct
10
comment Of what significance is the solution to the game of checkers in AI research?
@DavidHammen I think Go is still lands in the "can't be solved" zone for the normal 19x19 boards - there's simply too many possible board positions. But I'm not completely certain.
Oct
2
comment Is it possible for a good programmer to have never used version control?
"passing familiarity" (what I think you meant in the answer) implies they've used it at some point; I'm pointing out you can't even expect that.