Reputation
1,459
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 10
Newest
 Yearling
Impact
~157k people reached

  • 0 posts edited
  • 0 helpful flags
  • 13 votes cast
Dec
7
awarded  Yearling
Nov
30
answered Putting a password in a REST API call
Nov
25
revised Is there anything that can be done with recursion that can't be done with loops?
added 2 characters in body
Nov
24
awarded  Nice Answer
Nov
24
comment Is there anything that can be done with recursion that can't be done with loops?
@gerrit and with a narrower, it does avoid it. Ultimately it comes down to the edges of just what we do or do not apply this useful label we use for certain code to.
Nov
23
revised Is there anything that can be done with recursion that can't be done with loops?
added 181 characters in body
Nov
23
comment Is there anything that can be done with recursion that can't be done with loops?
@Yakk why I say "Most of the time". The example in my answer does similarly go from something that will quickly blow a stack to something that will work correctly. The "most of the time" of course depends on just how often one writes recursively at all, but considering that the question is between the choice of iterative and recursive I'm assuming a language were both are commonly done, rather than a functional language where one makes very heavy use of recursion and then depend upon tail-call elimination to make it work. In languages where one can iterate, one generally will for large loops.
Nov
23
revised Is there anything that can be done with recursion that can't be done with loops?
added 1 character in body
Nov
23
revised Is there anything that can be done with recursion that can't be done with loops?
added 3 characters in body
Nov
23
comment Is there anything that can be done with recursion that can't be done with loops?
Most of the time if you do get a stack overflow on recursion, you would have had a hang on the iterative version. At least the former throws with a stack trace.
Nov
23
answered Is there anything that can be done with recursion that can't be done with loops?
Oct
8
answered Iterator pattern - why is it important to not expose the internal representation?
Oct
8
comment Does C# 6.0's new null-conditional operator go against the Law of Demeter?
It's easier to notice something isn't right in A?.B?.C?.D?.E?.F because there's less that can be wrong; either we should be trying to get F via that path, or we shouldn't, while the longer form could have errors within it as well as the error of it not being the correct thing to do.
Oct
8
revised Does C# 6.0's new null-conditional operator go against the Law of Demeter?
edited body
Oct
8
answered Does C# 6.0's new null-conditional operator go against the Law of Demeter?
Oct
1
comment Which language is a BIOS written in?
@Tonny normally a jitter rather than an interpreter, which is an important distinction because it's possible to pre-jit it all to native as long as certain dynamic techniques aren't used. As such it would be just about theoretically possible to write a BIOS in .NET languages or Java, if one did both that and made sure all runtime-support needed was available. I imagine the efforts of doing that would more than dwarf any convenience found though.
Jun
29
answered How do I design a subclass whose method contradicts its superclass?
Jun
19
revised How can I write unit tests that simplify feature implementation?
added 286 characters in body
Jun
19
comment How can I write unit tests that simplify feature implementation?
That second way isn't unit testing at all, because it's not testing a unit. It's idea testing. Idea-testing ("hey, if I try this, will it work") can be very useful, but it's testing an idea, not a unit or any other produced software.
Jun
19
answered How can I write unit tests that simplify feature implementation?