Reputation
241
Top tag
Next privilege 250 Rep.
View close votes
Badges
2 6
Newest
 Commentator
Impact
~29k people reached

Jun
17
comment What's the point of implementing a Stack using two queues?
@Mehrdad, referring to a stack as a type of queue is not nonsensical, it uses the general definition given in Queueing Theory as any method used by a system with limited resources to prioritize access to those resources to elements waiting in line.
Feb
7
awarded  Commentator
Feb
7
comment What's the tradeoff for type inference?
@BenjaminHodgson, just a silly vocabulary nitpick - it bothered me seeing you write 'really "get"', when the right word in the context of Haskell is obviously "grok".
Jan
30
awarded  Yearling
Jan
29
answered Leaving intentional bugs in code for testers to find
Jan
14
comment Is it always a best practice to write a function for anything that needs to repeat twice?
Just a stupid nitpicking considering your loop - if there really need to be only a handful of hard-coded names to iterate over, and we don't expect them to change, I'd argue that it's a bit more legible to not use a list. for name in "Tom", "Mary": std_greeting(name)
Jan
14
comment Is it always a best practice to write a function for anything that needs to repeat twice?
+1 I think that this is the most significant consideration. No one refactors code expecting their change to be the last, so consider how your changes would affect future changes in the code.
Jan
8
comment Is there a conventional way to combine file path strings?
For what it's worth, in the unix world (and in urls), multiple forward slashes in the middle of a path are treated identically to a single one, so nothing bad would happen if you err on the side of more slashes. It's part of the Single Unix Specification; see this answer - unix.stackexchange.com/a/1919/21161
Jan
8
comment Does using == in JavaScript ever make sense?
@back2dos, I agree with your sentiment, but it indeed means that addition in javascript is not always commutative, which is a very important (albeit rarely noticed) thing to be aware of. Python, for instance, has an radd method that allows one to override such occurrences in your own classes and reimplement commutativity with other types where needed.
Dec
10
comment Historical precedent for why Prolog is less popular than SQL in Imperative Programming?
@53777A, I think that similar to what amon and DylanMeeus said about SQL, basic regexes are very approachable to beginners. You are probably thinking about regex use for parsing and validation, but often much more simple regex expressions are used in businesses to perform searches and matches in actual text. These can be quite "easy" to read and modify. The RegEx syntax is almost unique in the fact that it can be learned by parts on a "need-to-know" basis and thus has an extremely low barrier to entry.
Nov
12
comment Advantages of using pure JavaScript over JQuery
Thank you so much for the link to "vanilla js"!
Oct
6
awarded  Critic
Jun
12
awarded  Civic Duty
Jan
23
comment What is an example of a computationally impossible business problem?
I think I understand what the answer says - a computer with a fixed memory size of n bits (including all types of memory) running a non-halting program will eventually reach the a memory state it already occupied earlier. A monitor program is marking check-boxes for each of the possible 2^n memory states and thus (in worst case) will surely complete its test after the program in question has gone through these 2^n states. I agree with the sentiment that this is not infinite, but given a computer with n memory bits, you will never be able to test it on another similarly sized computer.
Jun
12
comment Why do people fork repositories on GitHub?
My additional 2 cents on the "Why not?" section: My habit is of always doing "git push" after I've finished working on a feature; it has that Q.E.D. satisfactory feeling for me (that I don't get when writing out the remote and branch name). So whenever there's even a slightest chance that I may want to do changes to the repo, I'd prefer to fork it, instead of later having to change the default "origin" repo.
Apr
17
answered Readable regular expressions without losing their power?
Feb
20
awarded  Supporter
Feb
10
awarded  Teacher
Feb
10
answered What triggered the popularity of lambda functions in modern mainstream programming languages?
Jan
30
awarded  Editor