3,254 reputation
21030
bio website
location Chicago, IL
age 26
visits member for 3 years, 4 months
seen 12 mins ago

Jun
16
awarded  Yearling
Jun
15
comment Has whitespace in identifiers ever been idiomatic?
@ErikReppen As far as I know, spaces are not valid as part of javascript identifiers...
Jun
14
comment Programming as fast as you can touch-type… How to get to that stage?
Have you done your 10,000 hours yet?
Jun
14
comment Programming as fast as you can touch-type… How to get to that stage?
@mike30 In comments, hitting "enter" is a submit. I made the same mistake quite often early on.
Jun
12
comment Will git whine if I create my projects in multiple directories?
To answer the small part of the question that seems clear - Version control 101: The VCS doesn't care at all what layout you use. It sees directories, text files, and binary files (sometimes with metadata like "executable" and so on).
Jun
12
comment Will git whine if I create my projects in multiple directories?
I think you need to clarify the question some more, then, because it seemed to me like you were asking about (for example) /Code/Python/project_1, /Code/Python/project_2, and /Code/Java/project_3 all existing in the repository checked out at /Code...
Jun
12
comment What are the downsides of mixing tabs and spaces?
@MichaelT I used to think that would be neat, but after thinking about it (and especially after trying the example applet), I find more annoying than anything else, and would still use spaces. This seems by far the most likely result...
Jun
12
comment Will git whine if I create my projects in multiple directories?
Why would you mix together unrelated projects in one repository? It sounds like a VCS version of the God object anti-pattern
Jun
7
comment How easy is it to hack JavaScript (in a browser)?
@alroc AFAIK, phone number isn't normally required - just, some sort of contact information, and I already provided my email address. Now that I think about it, the requirement was on the edit info page, not on the registration page - so I already had the account, already without a phone number, and "couldn't" make edits unless I added it.
Jun
7
comment How easy is it to hack JavaScript (in a browser)?
Once, when registering for a domain name, phone number was a required field, but that was only enforced in the javascript - not server side. So, I disabled it by redefining a function (using Firebug), and voilà! They don't have my phone number.
Jun
7
revised How easy is it to hack JavaScript (in a browser)?
deleted 1 characters in body
Jun
6
comment PHP, HTML, Javascript and writing good practices
@JamesAdam I was about to comment the same thing. It is a huge help with AJAX and DOM manipulation, but there's a number of cross-browser issues that it can't help at all, like CSS and some specific JS functions.
Jun
5
comment Unit Test OR Console Application
@nesh_s The question was to ask if i can use A or B to do this. It is not clear what "this" is in the question. Just about all of us thought you were talking about a repeatable process that would be run as-needed on production data during unit tests. I think you're asking which of two options you should be doing, when you should really be doing a bit of both. But we can't tell, because you're asking about whether your solution is a good one, without explaining the problem itself. Describe the goal, not a solution
Jun
5
comment Unit Test OR Console Application
@nesh_s This isn't a forum, it's a question/answer site (see the about page for more information). The question can also be reopened if it's updated. As for ambiguity/incompleteness, see my previous comment - you don't seem to be giving us all the information.
Jun
5
comment Unit Test OR Console Application
@nesh_s The question says nothing of a copy, and I completely missed it in the comments when posting my answer. Can you edit the "exact scenario" with the real exact scenario?
Jun
5
comment Should you reward based on overall project completeness or velocity?
@jhewlett It almost sounds like that may have already happened. Perhaps they really really like candy and popcorn boxes?
Jun
4
answered Unit Test OR Console Application
Jun
3
comment New “delay” keyword for JavaScript
@VanCoding That's exactly what setTimeout(function(){}, 0) does - it bumps the function passed in to the end of the queue. Moving the remainder of your code (the console.log("three"); in the question) isn't a big deal
Jun
3
comment Favoring Immutability in Database Design
For a single record, WHERE id = {} ORDER BY updTime DESC LIMIT 1 generally isn't too inefficient.
Jun
3
comment Favoring Immutability in Database Design
@Fosco Some systems are absolutely required to never delete data (including using UPDATE). Like doctor's medical records.