Reputation
3,577
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
3 12 33
Newest
 Good Answer
Impact
~235k people reached

Mar
31
comment Are There Any Flaws With This Git Branching Model?
@ReinHenrichs The "evil merges" that mmutz was describing have nothing to do with git bisect alone. It happens when feature A changes a function that feature B also uses. All tests will pass in both A and B prior to the merge, but after the merge tests can break due to incompatible changes between A and B - but git bisect can't partially apply one branch to another, so its only clue is that the merge commit is when the bug was introduced.
Mar
31
comment How can you provide a public writeable API and not get spammed?
Hint: All websites have a pseudo-API by way of GET and POST requests between the browser and web server, which can be scripted and therefore would be accessible by the bots you fear.
Mar
31
comment Ambiguous use of “Controller” in MVC
The intermediate layer is the later that deals with input, isn't it?
Mar
28
comment Any performance advantage in copying the session to a variable?
@Cymbals PHP uses copy-on-write, so $copiedSession = $_SESSION isn't actually a copy; they really are pointing at the same data structure until one of them changes - if Brandon is correct and it really is just an array. If it's a special object, I'm not so sure.
Mar
25
comment Keep a programming language backwards compatible vs. fixing its flaws
An aside, that blog post annoys me because he mixes non-issues (stuff that's only a problem if you're thinking with another programming language - like writing Python as though it's C) with actual problems in the language...
Mar
24
awarded  Popular Question
Mar
23
comment Negative test cases confusion
@user970696 In your comment here, "positive" is being used for "the test passes" and "negative" for "the test does not pass". It sounds like that book is not only using nonstandard terminology, but using the same nonstandard words for multiple things.
Mar
22
comment Python code style - blank lines in long list
@DemianBrecht Downvote is based on the first half. Your edit doesn't stand alone, and is meaningless without the comments (I didn't get what you were trying to explain with it until afterwards - I thought it was an addition to the first block of code) - I'll remove it if you clear up the answer.
Mar
22
comment Python code style - blank lines in long list
@DemianBrecht You're increasing complexity, decreasing readability, and gaining no additional flexibility (that couldn't be done more simply), all in the name of "being pythonic" - IMO, very bad advice.
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
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...