Reputation
857
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 8 14
Impact
~20k people reached

  • 0 posts edited
  • 6 helpful flags
  • 192 votes cast
Sep
28
accepted Exception handling in Python - Am I doing this wrong (and why?)
Sep
27
comment Exception handling in Python - Am I doing this wrong (and why?)
@Winston: In the real code, user has to provide a file in which every line is in a certain format. If they're not, I'll get ValueErrors when parsing them.
Sep
27
revised Exception handling in Python - Am I doing this wrong (and why?)
added 6 characters in body
Sep
27
asked Exception handling in Python - Am I doing this wrong (and why?)
Sep
24
awarded  Notable Question
Sep
13
awarded  Good Question
Sep
13
awarded  Popular Question
Sep
13
awarded  Nice Question
Sep
12
accepted Should I create a class if my function is complex and has a lot of variables?
Sep
12
revised Should I create a class if my function is complex and has a lot of variables?
added 14 characters in body
Sep
12
revised Should I create a class if my function is complex and has a lot of variables?
added 40 characters in body
Sep
12
comment Should I create a class if my function is complex and has a lot of variables?
Thanks. And do you know anything in the standard library which sounds like what I have in the question?
Sep
12
comment Should I create a class if my function is complex and has a lot of variables?
Maybe it's about being clear about what I'm trying to do. Like, I don't see anything particulary wrong with using ordinary classes in place of enums in Java, but still there are things for which enums are more natural. So this question is really about whether there's a more natural approach to what I'm trying to do.
Sep
12
comment Should I create a class if my function is complex and has a lot of variables?
@Patrick Maupin - You're right. And I don't really know, that's the problem. It just feels like I'm using classes for a thing for which something else should be used, and there are a lot of things in Python I haven't explored yet so I thought maybe someone would suggest something more suitable.
Sep
12
asked Should I create a class if my function is complex and has a lot of variables?
Jul
7
awarded  Yearling
Feb
7
awarded  Popular Question
Jul
7
awarded  Yearling
Nov
20
comment Initializing a variable as undefined
In "Professional JavaScript for Web Developers", the author writes that you should never explicitly initialize to undefined.
Nov
7
comment Styling the HTML tag in a web document
I think he means "Should you use html as a selector (in your CSS file)?", not "Should you put style rules in your html file".