175 reputation
6
bio website N/A
location Arizona
age 24
visits member for 2 years
seen Mar 28 at 17:42

Most knowledgeable in:

  • Python
  • JavaScript
  • C/C++
  • JASS

Oct
28
answered What does the English word “for” exactly mean in “for” loops?
May
6
comment Spoiled by Python convenience- and productivity-wise, spoiled by C++ speed-wise. Now unhappy with both
Instead of looking for another language, have you first considered profiling your code for 'hot spots' and rewriting those spots in a C binding so as to improve the speed?
Aug
17
comment What are the benefits of prefixing function parameter names with p*?
@TikhonJelvis Not all languages support typedefs that are strongly enforced (e.g. C++ typdefs). For the languages that do support it, you are quite right.
Aug
17
comment What are the benefits of prefixing function parameter names with p*?
@WyattBarnett Systems Hungarian doesn't give a programmer any useful information with modern IDEs. Apps Hungarian can reduce headaches in code reviews when they are correctly enforced.
Aug
17
comment What are the benefits of prefixing function parameter names with p*?
Systems Hungarian Notation is a terrible practice that should be avoided. On the other hand, some Apps Hungarian Notation can be useful (such as for preventing unsafe user input from getting misused).
Aug
17
answered Should I take care of race conditions which almost certainly has no chance of occuring?
Aug
17
comment Should I take care of race conditions which almost certainly has no chance of occuring?
This too! Avoid having other programmers ponder about possible problems when reading your code, by doing what is necessary (even if it is 'unlikely' to fail).
Aug
17
comment Should I take care of race conditions which almost certainly has no chance of occuring?
I'm surprised no one has mentioned Murphy's Law.
Aug
13
answered Is it a better practice pre-initialize attributes in a class, or to add them along the way?
Aug
3
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
JIT has a positive effect on performance, not a negative, if you put it into context -- It's compiling byte code into machine code before running it. The results can also be cached, allowing it to run faster than equivalent byte-code that is interpreted.
Jul
26
awarded  Teacher
Jul
25
awarded  Citizen Patrol
Jul
24
awarded  Commentator
Jul
24
comment Are there any design patterns that are unnecessary in dynamic languages like Python?
@MartijnPieters I misinterpreted your comment as a response to his first post, my mistake. To continue the conversation, IIRC the len function on a string actually looks up a constant already cached on the object. On other objects, it calls a special method (__len__). It's more of an interface thing. :)
Jul
24
comment Are there any design patterns that are unnecessary in dynamic languages like Python?
@MartijnPieters How is len not an object?: >>> len <built-in function len>
Jul
23
answered Documentation degrading - how to deal with it?
Jul
18
comment What do you say in a code review when the other person built an over complicated solution?
A good rant to explain the situation to your colleage: "Why did you not KISS? YAGNI!"
Jun
13
comment Learn programming backwards, or “so I failed the FizzBuzz test. Now what?”
Agreed on most points, but why do you consider Java 'the worst language ever designed'? I'm not a big fan of Java, but this sounds very opinionated.
Jun
8
revised As a programmer how do I plan to learn new things in my spare time
re-order confusing item
Jun
8
suggested suggested edit on As a programmer how do I plan to learn new things in my spare time