Reputation
277
Top tag
Next privilege 300 Rep.
Create new tags
Badges
3 6
Newest
 Necromancer
Impact
~33k people reached

Jan
6
comment Licensing Ghostscript in a commercial product
Audacity does something similar concerning LAME, which it uses for encoding to mp3, if available, and advises where it can be downloaded from - audacityteam.org/help/faq_i18n?s=install&i=lame-mp3
Jan
6
comment How wrong is it to talk about C++ “methods” (versus “member functions”)?
@LightnessRacesinOrbit, you began with "For reference", and intrigued me, but didn't actually provide a reference (e.g. link to the discussion or a summary). In what way is the "method" term treated differently in Python?
Nov
4
comment Why is Math.Sqrt() a static function?
A related StackOverflow question concerning ruby (where most everything else other than math is an instance method): stackoverflow.com/questions/2844526/…
Oct
28
comment Two HTML elements with same id attribute: How bad is it really?
Thanks @Bart . You're absolutely right :) The standard says "Returns the first element within node’s descendants whose ID is elementId."
Oct
28
comment Two HTML elements with same id attribute: How bad is it really?
This answer would be somewhat better if it actually included, as a reference, a quote of the relevant part of the standard (or at least a section number).
Sep
12
awarded  Necromancer
Jul
22
answered What are the ways to avoid duplication of logic between domain classes and SQL queries?
Jul
8
comment What is the actual value of a consistent code style
off-topic: I saw this tagged as javascript but, knowing that bare tags aren't syntactically valid in js, this has now led me to a nice journey of discovering JSX. Should we tag this question as "jsx"/"react-jsx"? It's a tag used on stackoverfolow, but hasn't yet appeared here, and I don't have enough rep to create it.
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