Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
9
Newest
 Organizer
Impact
~313 people reached

Oct
29
comment Why is the minus sign, '-', generally not overloaded in the same way as the plus sign?
It would support your case further if you noted that Python's 'xy' * 3 == 'xyxyxy' syntax has been around for about a decade, without objections.
Oct
29
comment Why is the minus sign, '-', generally not overloaded in the same way as the plus sign?
"For strings, concatenating is pretty much the only sensible one I've ever come across". Then do you disagree with Python's 'xy' * 3 == 'xyxyxy'?
Oct
29
comment Why is the minus sign, '-', generally not overloaded in the same way as the plus sign?
To avoid the unwarranted waves of abuse you're getting, string a-b can be perfectly well-defined: it means trim one trailing b from a, only if b is the rightmost string in a (otherwise a unchanged).
Oct
29
comment Why is the minus sign, '-', generally not overloaded in the same way as the plus sign?
What should a - b be here? It should be simply a, since there was no trailing b to be trimmed from a. Simple. (Somewhat analogously, what should 5 + False be? 5)
Sep
16
revised Is a memory of all possible permutations of a kilobyte block and pointers possible?
improve title+tags
Sep
15
suggested approved edit on Is a memory of all possible permutations of a kilobyte block and pointers possible?
Jun
15
comment Why do programs use call stacks, if nested function calls can be inlined?
@DavorĊ½dralo: I think that's wrong, but I already invited you all to edit/revert it yourselves, not complain at me. The OP originally asked "Why do we use call stacks (at all)?" and provided two toy examples of functions that can trivially be inlined, like as if all functions are like that. And OP tagged it functional-programming. But many functions are either a) non-trivial b) have recursion c) call other functions, possibly unpredictably or recursively or d) (outside functional programing) have state. The OP seems to be mixing several different things. Go ahead and edit the question.
Jun
14
comment Why do programs use call stacks, if nested function calls can be inlined?
@Pranab: the original title wording did not correspond to what was being asked. The OP's example only gave two toy examples which could trivially be inlined, they did not ask the full generality of "Can we always eliminate function calls? and assuming yes, would we still need call stacks?" And the original tags were wrong and mismatched the question; I improved them. If you can improve the title, go ahead. I give up
Jun
13
awarded  Organizer
Jun
13
revised Why do programs use call stacks, if nested function calls can be inlined?
better title+tags
Jun
13
suggested approved edit on Why do programs use call stacks, if nested function calls can be inlined?
Jan
5
comment Should I spend time preventing piracy of my app?
akton's second point is brilliant: remove almost all motivation for pirating your app by releasing a free/reduced version of the app. Much better than patents, lawsuits in non-US jurisdictions etc.
Sep
30
awarded  Explainer
Oct
27
comment I no longer want to be a developer
Your first link to your post is stale.
May
19
comment What legal considerations do I need to have when programming?
If you reasked this question in the more narrow context of 'considerations for FERPA/SarbOx/Dodd-Frank compliance', I'd like to see it stay open and get quality answers.
May
19
comment What makes OOP “good”?
'Good' in which context? It's great in a wide variety of contexts, and bad in some specific contexts, where e.g. Domain-Specific Languages are better. @Dokkat: solving the problem is only 15% of software. Doing that in a way that is legible, maintainable, debuggable, extensible, portable to future coders is a bigger (more expensive) issue. That's why OO has value. Sure, you could code it in PL/1 instead. That would be inferior for all these reasons.
Mar
3
comment How to write a very basic compiler
@marco-fiset, on the contrary, I think it's an outstanding answer that does tell the OP how to do a very basic compiler, while pointing out the traps to avoid and defining more advanced phases.
Jan
21
comment How do you tackle really bizarre errors that keep you puzzled for more than 10 hours?
Actually, no. Thinking too hard along the same tracks is just about the worst possible thing you can do. 'Challenge, enumerate, revisit and test each of your assumptions, in a systematic way' is the solution here; people are discussing different tactics of achieving that.
Jan
21
revised How much effort should you put into a junior developer?
added 39 characters in body
Jan
21
revised How much effort should you put into a junior developer?
added 59 characters in body