Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
9
Newest
 Organizer
Impact
~308 people reached

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.
Oct
27
comment What if a team member start listing aggressive deadlines and management is happy and programmers know they will work overtime?
Was 'user2567' Pierre? Otherwise I can't follow this discussion.
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
comment Proving Yourself
Cover letters (unless you mean emails?) are very old-school, I suspect used by <<5%. I know many excellent programmers your criteria would have excluded. The communication stuff you can determine from a quick phonescreen. I agree with the rest of your comments.
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
Jan
21
comment How much effort should you put into a junior developer?
Right. If the OP does not have a task suitable for an intern, and if the intern assigned is not interested or capable of doing it, this arrangement does not make sense.
Jan
21
revised How much effort should you put into a junior developer?
added 142 characters in body
Jan
21
answered How much effort should you put into a junior developer?
Oct
11
awarded  Quorum