BlueRaja - Danny Pflughoeft

less info
3,061 reputation
1322
bio website blueraja.com/blog
location
age
visits member for 3 years, 8 months
seen Sep 12 at 20:00

Oct
18
answered Is it acceptable to upload offensive content to GitHub?
Oct
9
awarded  Nice Answer
Sep
26
comment Developer failing developer interviews
I bet his attitude of being "better than" interview questions is coming out during the interview. I would equate that attitude to someone who doesn't believe their code can be improved; I think that's even more telling than whether he actually solved the problems.
Aug
28
comment What are CPU registers?
See also
Aug
6
comment How much time can I spend learning at work?
Possible duplicate of Do you spend your working hours on learning?
Jul
29
comment Does modular programming affect computation time?
Highly related: How fast are computers in everyday terms? Going out of your way to avoid a few function calls for "speed" is like going out of your way to save someone one minute total over the course of their entire life. In short: it's not even worth the time it takes to consider.
Jul
24
comment Why do old C-style method names continue being used in modern languages?
Old habits die hard
Jul
22
comment What is the advantage of assigning a function to a var?
stackoverflow.com/questions/336859
Jul
10
awarded  Nice Answer
Jul
9
comment Is there value denoting a key as “Primary”?
@Mason: There is still an advantage to using a separate auto-incrementing key in that case, for some databases; many databases use clustered primary indices either by default (SQL Server, Sybase) or always (MySQL with InnoDB or XtraDB), which keep the values stored in primary-index order. In that case, you'll want to always be inserting at the end of the table. Otherwise, your inserts will be scattered around, which will cause both inserts and selects (due to fragmentation) to be slower.
Jul
9
comment Is there value denoting a key as “Primary”?
"It is not about implementations such as MySQL which automatically perform clustered index voodoo behind the scenes on primary keys" - FYI that is actually a feature specific to InnoDB(/XtraDB), not MySQL in general.
Jul
9
comment Can compilers and interpreters have bugs, and what can we (as users) do to deal with them?
See Can compiler optimization introduce bugs?
Jul
3
comment Why do most programming languages only support returning a single value from a function?
...I never claimed that tuples couldn't be used for other things. But arguing that "Python does not support multiple return values, it supports tuples" is simply being extremely pointlessly pedantic. This is still a correct answer.
Jul
2
comment Why do most programming languages only support returning a single value from a function?
@Lego: I don't see a distinction - a tuple is by definition multiple values. What would you consider "multiple return values," if not this?
Jul
2
revised Why do most programming languages only support returning a single value from a function?
added 86 characters in body
Jul
2
answered Why do most programming languages only support returning a single value from a function?
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 suggested edit on How can I salvage my internship?