15,592 reputation
3175
bio website demianbrecht.github.com
location
age 37
visits member for 3 years, 7 months
seen 14 hours ago

I've been spending over the last decade of my life building games.

I have a deeply seeded love of Python and the open source community as a whole.

Me elsewhere:


Jul
24
comment Opposite term of indent
@RobvanderVeer: This conversation moved on nearly two years ago ;)
Mar
22
comment Python code style - blank lines in long list
@Izkata: Code should be self-documenting. In grouping them, it's more obvious from a code standpoint. You can also reorder trivially now (not that you'd need to in this particular context) based on reference rather than cut/pasting blocks of code. /Also/, if the accelerator list becomes long, segregating them /absolutely/ increases readability.
Mar
22
comment Python code style - blank lines in long list
@Izkata: How, exactly, is segregating various accelerators into logical groups increasing readability and increasing complexity?! Sure, using chain rather than simple concat is more complex, but I've stated reasons for doing so above (preferring + when called for).
Mar
22
comment Python code style - blank lines in long list
See my update. I wasn't thinking overly clearly when I originally answered.
Mar
22
comment Python code style - blank lines in long list
Would love to know the reason for the downvote :P
Mar
22
comment Python code style - blank lines in long list
No reason in particular as they achieve the same result. Using chain, you could do something like accelerators = [accel_file, accel_project, ...] and then feed it into chain(*accelerators). But yes, if you're not doing something like that, then simple concat using + would be the way to go (I was working with chain when I wrote the above ;))
Mar
22
comment Python code style - blank lines in long list
@ChrisKrycho: See edit. Really, it's just personal preference, but this makes the intention of each portion of your list easier to grok. It's /clear/ what is intended to go where (and therefore increases readability).
Mar
22
comment Python code style - blank lines in long list
@ChrisKrycho: Ah, in my un-caffeinated state, I didn't see fully what was going on. Rather than using a class, I'd still set a local reference to each logical block and then chain them to create the list being fed into AcceleratorTable.
Mar
19
comment Can PHP and Javascript do backend together?
node can run a pure tcp server just as easily as a web server. for all we know, the OP was interested in using a services architecture where the PHP portion simply communicated with a service backend written in node. in that case, you wouldn't need two web servers. also, unless i'm mistaken, i'm not aware of a node-based php interpreter.
Oct
11
comment Black Hat Hackers vs Programmers?
@MattRidge: Absolutely. However, my intent with sharing the link (other than it's one of my favorite nostalgic readings) was to suggest that you should accept black hat hackers as a way of life because it's never going to go away. I'm also not quite sure how standing on shoulders of giants is a bad thing.. We are all doing that.. Programmers and hackers alike.
Oct
11
comment Black Hat Hackers vs Programmers?
To point 4: mithral.com/~beberg/manifesto.html. Not much more needs to be said ;)
Oct
10
comment Multithreading synchronization interview question: Find n words given m threads
@RobertHarvey: Sometimes people ask the wrong questions. The OP has a poor mindset to tackle technical interviews and this answer was an attempt to help put him/her on the right track.
Oct
9
comment What are graphs in laymen's terms
I'd actually extend that example to note that all entities described in your example could be depicted as vertices in a graph (city, plane, magazine, map, etc), the map itself just being a single vertex.
Aug
30
comment Python Coding standards vs. productivity
@MarkBooth: You can't please everyone. I agree that if it's simply imposed from above it's more difficult to get buy in from other members, but it's still not a "huge waste of time". In having the standards in place, the code should be much more consistent and therefore you would run into less diversity in code throughout a project, which increases readability. But yeah.. Throwing away tests due to standards would lead me to believe that there were bigger problems under the hood.
Aug
29
comment Python Coding standards vs. productivity
@Job: I'd definitely downvote your comment if I could.. Sure, there are points in the question that are indicative of poor leadership, but that doesn't make them "idiots". Introducing standards is always a good thing. I also hardly see how finding a tool that will check coding style automatically even comes close to being a solution when dealing with the overhead of refactoring legacy code.
Aug
16
comment Function declaration as var instead of function
@shabunc: The name doesn't matter. What matters is the value in the callstack. As an example, [NAMESPACE]_[fn name] is the convention used by Mozilla. The name itself doesn't matter as long as your convention is consistent throughout your project.
Aug
16
comment Function declaration as var instead of function
@shabunc: What about it? It's listed in the last paragraph of my answer.
Aug
15
comment Order of learning sort algorithms
Learn bogosort before all others ;)
Aug
15
comment Is There Any Benefit To Participating On Sites Like TopCoder And Or GoogleCode?
Is there a difference between this answer and mine?.. Just sayin' :)
Aug
14
comment Function declaration as var instead of function
@Austin: Perhaps you read it at w3schools? ;)