BlueRaja - Danny Pflughoeft
Reputation
3,319
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
14 26
Impact
~207k people reached

Jul
2
comment Why do most programming languages only support returning a single value from a function?
...You could easily define a calling convention for returning multiple values from a function, in nearly the same way you can define a calling convention for passing multiple values to a function. This is not an answer. -1
Jun
27
comment Documenting mathematical logic in code
Not to toot my own horn, but here is one example: meta.stackexchange.com/a/49787/141513 The idea is to write it so that someone who looks at it can understand what it does, even if they don't understand the math behind it. Good function-/variable-names and a simple comment or two are usually enough to do that.
Jun
18
revised How can I salvage my internship?
That is what the edit summaries are for
Jun
18
suggested approved edit on How can I salvage my internship?
May
22
revised A programming language that allows you to define new limits for simple types
he took my suggestion, but completely broke his code in doing so....
May
22
suggested approved edit on A programming language that allows you to define new limits for simple types
May
21
comment A programming language that allows you to define new limits for simple types
Just FYI: public virtual int Min { get; private set; } is a nice trick that would shorten your code significantly
May
14
awarded  Cleanup
May
14
revised Did the developers of Java consciously abandon RAII?
rolled back to a previous revision
May
14
revised Did the developers of Java consciously abandon RAII?
added 37 characters in body
May
9
revised Did the developers of Java consciously abandon RAII?
added 20 characters in body
May
9
comment Why is there no 'finally' construct in C++?
See also Did the developers of Java conciously abandon RAII?
Apr
30
comment Where did the convention of naming command line arguments as 'argv' come from?
Representing a string of characters as a vector is way older than BCPL (see, for instance, any old book on the theory of computation). In fact, the concept is probably older than the word "string" (as a sequence of characters) itself..
Apr
12
awarded  Good Answer
Feb
4
comment Why does automated testing keep failing in my company?
Making code testable requires a lot of sacrifices, not because testing is a bad idea, but because the languages we use simply weren't designed for it. However, even with those sacrifices the benefits greatly outweigh the losses; I can't even count the number of times I've made a "simple" change, and a unit-test caught a bug that probably would have cost me hours of debugging. The company I used to work had a large codebase with > 95% test-coverage, and it worked well.
Jan
28
awarded  Nice Answer
Jan
26
comment Is Ken Thompson's compiler hack still a threat?
@supercat: You seem to be missing the point. You're saying that the hack Ken Thompson presented can be worked around. I am saying that the particular hack he chose doesn't matter; it was just an example, to demonstrate his larger point that you must always trust someone. That's why this question is somewhat meaningless - it completely misses the forest for the trees.
Jan
26
revised Is Ken Thompson's compiler hack still a threat?
added 60 characters in body
Jan
25
answered Is Ken Thompson's compiler hack still a threat?
Jan
20
awarded  Yearling