Reputation
11,358
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 40 64
Impact
~410k people reached

1d
awarded  Great Question
2d
comment How do I make this functional DSL written in an imperative language more efficient?
Do you have conditionals?
Jun
29
comment How do I make this functional DSL written in an imperative language more efficient?
In the example you've given, you could "recompile" it down to a constant, but I'm guessing you've got parts of the system you aren't showing us?
Jun
29
comment How do I make this functional DSL written in an imperative language more efficient?
Are you concerned about optimizing just the run time, or are you also concerned about "compile" time?
Jun
25
comment How to avoid calling String.Replace() in a loop?
@Alexus, yes it'll end up being basically the same algorithm. The reason I'd consider this is just because it doesn't require you to manually write the logic he's describing.
Jun
25
comment How to avoid calling String.Replace() in a loop?
@Alexus, if by that you mean calling .Replace() repeatedly on a StringBuilder, then no. Calling Replace() repeatedly will scan the string multiple times, whereas this will only scan the string once.
Jun
25
answered How to avoid calling String.Replace() in a loop?
Jun
24
comment Is the git “Golden Rule of Rebasing” so essential?
what if I merge someone else's feature branch into my own?
Jun
17
comment Why python function programming functions are not collection methods?
@ALXGTV, none of that is likely to be relevant in python.
Jun
11
comment In git, how to do versioning for a dozen libraries all worked at in parallel
If you insist on having multiple repositories see: stackoverflow.com/questions/816619/…
Jun
11
comment In git, how to do versioning for a dozen libraries all worked at in parallel
I think you should probably not have multiple repositories. See this question: programmers.stackexchange.com/questions/161293/…. As long as you are frequently doing work cross repository, the split is working against you.
Jun
6
comment Is this the correct way to use Bower
Are you using a build tool like grunt/gulp/etc, or other tools like a concatenor/minifier?
May
23
answered Can relational database tables always be topologically sorted by their FK reference relation?
May
9
comment Are mocks in unit tests dangerous in dynamic languages?
It bothers me because those don't mitigate the dynamic typing in javascript, you are mitigating other broken parts of javascript. It just doesn't seem relevant to the question.
May
9
comment Are mocks in unit tests dangerous in dynamic languages?
@RobertHarvey, I've come across people who insist that every single thing outside of the class you are actually testing has to be mocked or your a bad person. That's what I had in mind there.
May
9
comment Are mocks in unit tests dangerous in dynamic languages?
I assume you are talking about: blogs.msdn.com/b/ericlippert/archive/2012/10/15/…, Lippert talks about "weak typing" being an imprecise concept. That is not the same thing as dynamic typing. My concern is that the question asks about dynamic typing, and you end up talking about type coercion in javascript which is a different issue. I.e. many dynamic languages don't do type coercion in that way.
May
9
answered Are mocks in unit tests dangerous in dynamic languages?
Apr
26
comment What is the maximum number of steps to find a bug using bisecting?
Related: cstheory.stackexchange.com/questions/8923/… cs.stackexchange.com/questions/22451/…
Apr
23
comment Why python function programming functions are not collection methods?
@Giorgio, you're missing the point. The point is that I can use map,reduce,filter on anything that defines __iter__ if I can only use them on objects that have also decided to specifically add these methods I've lost a great deal of the power of duck typing.
Apr
23
comment Why python function programming functions are not collection methods?
@Giorgio, no they don't. They all just call __iter__ to iterate over the element and implement there particular operation on top of that. They don't have to reimplement their logic for every possible collection.