Reputation
998
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
11 19
Newest
 Nice Answer
Impact
~179k people reached

Aug
20
comment What did programmers do before variable scope, where everything is global?
It was either prayer or swear...
Jul
20
awarded  Nice Question
Jun
14
awarded  Good Answer
Jun
12
comment Should I use parentheses in logical statements even where not necessary?
@Kaz, i = i + 1 is valid syntax in (almost) every language that I know of. While many support i++, not all of them do (VB & Python being two that I know of that don't. So I usually write i = i + 1. Also, you never have to remember if it increments and then uses the value, or uses the value and then increments ;)
Mar
3
comment Best practices to avoid fake profiles?
clever! I like it. It would be tricky, but if you named this field username, and your actual username field something completely different, like robert, that would probably add an extra layer of tricky. Of course it doesn't stop someone who's simply automating the browser...
Dec
24
comment Should I fix small issues or let them go?
I like this idea. Of course it assumes that you work for a sensible company.
Dec
20
comment Is adhering to one assert per test foolish consistency in this case?
You should check out Assume. I just learned about it today.
Dec
20
accepted Is adhering to one assert per test foolish consistency in this case?
Dec
20
asked Is adhering to one assert per test foolish consistency in this case?
Dec
20
comment Does the “one assertion per test” rule apply for checking initial conditions?
TIL about the Assume function, and that's fantastic.
Nov
21
comment Is there an excuse for short variable names?
counter is a noun or an adjective. Count is a noun or a verb. Of course, I still wouldn't call something arrayCounter, I'd use personIndex or row or whatever described what I'm looking at.
Nov
17
comment Cost of maintenance depending on paradigms
You mean segments of unstructured programming scattered throughout your code? My young experience (having now 1.5 years of professional programming under my belt) echoes what I wrote. Any amount of deviation from <insert sensible paradigm here> will cause horrible maintenance issues. When I look back at my own code, I can tell you where I deviated because I really have to think and figure out why the heck I did something. When you have and adhere to good standards, code comprehension is as easy as it possibly can be.
Oct
12
comment How do you make people accept code review?
Our code is so horribly inconsistent it's embarrassing.
Oct
12
comment How important is positive feedback in code reviews?
I wish we did (real) code reviews at work. The few things I've done, I've found that approaching them as more of an educational opportunity helps.
Sep
27
awarded  Booster
Sep
23
awarded  Popular Question
Sep
22
awarded  Announcer
Sep
9
comment What are the drawbacks of Python?
I don't think that 42 (or is it 43?) keywords is a 'large' number. That also includes things like def, class and other non-function calls. Compare that with 100+ in most other popular languages. Also, consider the line from import this: Namespaces are one honking great idea -- let's do more of those!. I think you might misunderstand Python namespaces ;)
Sep
1
awarded  Yearling
Aug
27
comment Tabs versus spaces—what is the proper indentation character for everything, in every situation, ever?
@JordanReiter, Not so - with my example there is no visual difference to one coder. Copying 3-space code into a 4-space code immediately looks wrong without some type of whitespace visualization (and if there isn't, I suggest that programmer needs to start using a monospace font ;)