3,313 reputation
21030
bio website
location Chicago, IL
age 26
visits member for 3 years, 7 months
seen 2 days ago

Mar
22
comment Python code style - blank lines in long list
+1, you should never make something more complex if it also makes it harder to understand for no real benefit.
Mar
22
comment Python code style - blank lines in long list
If it makes the code easier to understand, who cares about "pythonic"?
Mar
18
comment Do Flexibility and Inconsistency,Unsafety Overlap?
@Esailija If I had to guess, I think Pindexis is thinking of something where the function had 1 or 2 required arguments (which could be named), but the rest are variable. The function body was probably written to use arguments for all of them (which, IMO, is usually easier to read, since the named arguments would still show up in arguments IIRC)
Mar
16
awarded  Quorum
Mar
16
comment “I”, “We”, or Neither in code documentation
@LexFridman If the commit is tricky enough to require a "why" explanation, that belongs in a comment next to the tricky code, not disconnected in the commit message. Comments should be used for "why", not "what"
Mar
16
comment “I”, “We”, or Neither in code documentation
@Matt The fact that there is a commit implies "The code was written like this because <foo>" where <foo> is what should go in the commit message, without the extra wasted space.
Mar
16
comment “I”, “We”, or Neither in code documentation
Strongly related on English.SE: Why do programmers always use 'we' when really they mean 'me' or 'you'? (Which was, unfortunately, closed)
Mar
15
comment What's the right balance between code consistency and code improvement?
So how would the code quality ever improve, if everyone restricted themselves to the "bad" way?
Mar
15
comment How to rewrite from scratch a code for which I own the copyright so I can use it on my job without losing the rights to the first version?
@JamesBlack "little snippet" - some 5-line functions really are like that and can't be improved upon except by improving the language itself. I've come across the same in my own code on rare occasion.
Mar
12
comment How do I know if I have a good programming professor?
There are a handful of professors that become such because they enjoy it in their free time (contributing to open-source projects, for example) and don't want to be held down by a full time 9-5 job. I had one; he was a very good professor.
Mar
12
answered Why is Python recommended as an entry level programming language?
Mar
8
comment Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?
@jmoreno Check my edit...
Mar
8
revised Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?
added 1850 characters in body
Mar
8
comment Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?
@jmoreno Ah, the clarification paragraph seems to have been added while I was typing this answer, and I just missed it
Mar
8
revised Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?
Rewriting last paragraph, it was partially based on something that didn't make it to the final post
Mar
8
answered Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?
Mar
8
comment Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?
Actually, rereading your question, the answer I started typing up doesn't seem to quite match the question. Now I just think those people you're referencing are idiots/uninformed. (Simplification of code can create what appears to be what you describe between IDs and Classes, but searching based on data attributes is just weird...)
Mar
8
comment Why Have People Started Deeming it Necessary to Separate JS hooks from CSS hooks in HTML?
There isn't one. I think you're coming at this from the wrong angle...
Mar
6
comment How can robots beat CAPTCHAs?
@totymedli My first Google search: extremetech.com/computing/103283-breaking-and-fixing-captcha/2 (But I didn't downvote, as I think it's a good idea to have a good version of this question somewhere on the SE network; if someone transplanted and explained the automated ways, that would be great)
Mar
6
comment Is it true that a stricter coding style is always better?
@James Bad Hungarian Notation was, for a while, quite popular (and probably still is at some companies). However, it is also quite a bad style, which is definitely going to reduce morale - especially for programmers used to Good/Original Hungarian Notation.