Reputation
727
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 10
Newest
 Commentator
Impact
~150k people reached

  • 0 posts edited
  • 0 helpful flags
  • 11 votes cast
Jun
13
comment Why do programs use call stacks, if nested function calls can be inlined?
Can someone apply some better tags to this? The only tag on the question, "functional-programming", is clearly not appropriate.
Jun
13
comment How Do News Websites E.g. Forbes / Zdnet Seamlessly Merge One Webpage into Another?
@KRyan it just modifies the offset param that skips a certain distance into the resultset. Since the default sort order seems to be "popular all time" the results are probably somewhat stable, but definitely not if you switch the sort order to "newest" and search for something popular.
Jun
13
comment How Do News Websites E.g. Forbes / Zdnet Seamlessly Merge One Webpage into Another?
@OllieFord that's what the history API stuff is for. history.pushState and history.replaceState let you change the URL in the address bar without navigating away from the current page. It's the more modern replacement of the older trick of changing the URL fragment (#something), with a big advantage being that the history API lets you push "real" URLs that the server can participate in generating, while the fragment thing has to be supported completely from the client side.
Jun
9
comment What is the “type” of data that pointers hold in the C language?
Addresses can be put into one-to-one correspondence with integers, but so can everything else on a computer :)
Apr
24
comment Explanation of how server-side programming languages are accessed
I don't think this does enough to mention the (by now very common) practice of simply having each application be its own webserver, most likely fronted by one or more HTTP proxies.
Feb
12
comment Difference between overhead of B frame and P frame
@JerryCoffin depends on the details of the format. You could imagine it to be super simple like MPEG-2. But in any case I'm hand-waving here :)
Feb
12
comment Difference between overhead of B frame and P frame
@Sara B-frames reference the past and the future. If the intermediate B-frame was a linear function of the past reference frame and the future reference frame, it could be essentially empty; it only has to code the difference between the interpolated frame and the real thing.
Dec
29
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@Doval Twig/Swig is an example of a logic-lite templating system that's been popular enough to be cloned into many languages; ZPT/TAL is an older one with more XML crud but the same goals. Both allow user functions for filtering and advanced conditionals, but no code in the host language is ever found in the template itself; it's more like registering a limited set of callbacks by name. The templating language itself is deliberately far from Turing-complete.
Dec
29
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@EricKing except for the part where templating systems that allow arbitrary code always lead, via path of least resistance, to bad design, horrible layering violation, and unmaintainability. Unfortunately, it seems to be a lesson that every community has to learn on its own.
Oct
21
comment Why are floating point numbers used often in Science/Engineering?
Floating point isn't "random precision", the errors for various operations are predictable and well-known, and the errors for an algorithm can be worked out. If they're low enough (and in particular if your backwards errors are smaller than the uncertanties in your input variables) then you can be certain that your results are good (or at least that any problems with them aren't caused by floating-point error).
Sep
5
comment In layman's terms, what is left recursion?
@Panzercrisis more or less. You really need to go look up the meanings of LL, LR, and recursive-descent parsers.
Jul
9
comment Why do some functional programming languages use a space for function application?
Nor are non-functional languages that unanimous in requiring parentheses; for a few examples, Smalltalk has object method: args, Objective C has [object method: args], and Ruby and Perl both allow omitting parentheses in function and method calls, only requiring them to resolve ambiguity.
Jan
9
comment Is this statement from Knuth's fundamental algorithms still applicable today?
It's not clear to me in what sense it was ever true — 10! is a mere few million. Too large for direct comprehension, but not particularly hard to compute with, even with pen and paper.
Oct
14
comment How do you address the gap on your resume after a self-funded sabbatical?
@ChrisF it could, but hiring is different in the programming world than in many other fields, and programmers' resumes have different expectations than other people's. So even though it might be a generic sort of question, it still has potential to draw programmer-specific answers.
Aug
7
comment How can this all fit into 64kb?
Of course there are several megabytes of system libraries without which this thing wouldn't be able draw a single polygon...
Nov
6
comment Is 4-5 years the “Midlife Crisis” for a programming career?
He wouldn't be wrong ;)