393 reputation
15
bio website
location Michigan
age
visits member for 2 years, 11 months
seen Jul 22 at 15:02
An EE who writes software and accidentally became an expert in controlling 3-phase permanent magnet motors - where a breakthrough was inspired by my background in ray tracing.

Jun
19
answered What is the reason for using lowercase for the first word in a local variable (eg, employeeCount, firstName)
Nov
5
comment What triggered the popularity of lambda functions in modern mainstream programming languages?
+1 it's not just about anonymous functions. Closures are a much broader concept than just defining a temporary function inline.
Aug
4
awarded  Yearling
May
11
comment Should a web developer know how to do slicing?
I suspect Darknight should have said "should not need to know".
May
11
answered Why is Global State so Evil?
May
11
comment Why is Global State so Evil?
IFF one does use global variables then only one piece of code should modify it. The rest are free to read it. The issues of others changing it does not go away with encapsulation and access functions. Tis not what those constructs are for.
May
11
comment Why is Global State so Evil?
Your example where one piece of code writes a value and another consumes it is invalid. That is only a problem in multithreading and making the data non-global does not fix it - you need locking to fix it.
Mar
23
answered What's shell script's advantage over interpreted programming languages?
Mar
23
comment Why is verbosity bad for a programming language?
Even if your mind can ignore all the extra characters, your monitor can't and you'll be scrolling more often. Granted this is not the case with "End If" vs. "{" "
Mar
21
comment Are there any concrete examples of where a paralellizing compiler would provide a value-adding benefit?
While the compilers do vectorization, AFAIK they do not automatically insert parallel code constructs via OpenMP for example - you have to do that by hand, but it's fairly easy for people. So I consider that low hanging fruit for a tool that does not exist yet. Once implemented and shown to work for RT, it might find use in other applications where people don't realize there is an opportunity to make things parallel.
Mar
21
comment Are there any concrete examples of where a paralellizing compiler would provide a value-adding benefit?
My point was that RT is easy and already has reasonable solutions. I did mention that it could automatically be done for RT if the compiler did the appropriate analysis. Any solution must handle the easy stuff at a minimum and must go beyond that to be a worthy product.
Mar
20
answered Are there any concrete examples of where a paralellizing compiler would provide a value-adding benefit?
Feb
24
comment Should developers enter bugs into the bug tracking system?
I suspect your second point is often the reason. Didn't XP promote the idea of just fixing things that are found to be broken rather than going through a process? This is in effect a fast track for a lightweight bug. <sarcasm>besides regression testing will catch if the 'fix' broke something</sarcasm>
Feb
20
comment Contract-to-hire - determining rate?
To clarify, this answer does not provide an equality. It offers advice on how to bill salaried vs hourly-contract work. The implication is that contract work bills twice as much - hence the comment by @keithjgrant about the factor of 2. With that understanding, it is correct.
Feb
20
comment How do I explain a “Hello World” program for beginners?
+1 for bad language for beginners.
Feb
20
comment How do I explain a “Hello World” program for beginners?
I sat down one day to learn Java. The stuff you mention is exactly what stopped me within 30 minutes. Not that I didn't know OOP, but I don't want to be forced to use "all that stuff" for simple things. For something new I later learned Python - how refreshing.
Feb
20
comment Is micro-optimisation important when coding?
Is it possible that the "huge codebase" was actually old enough that the optimization helped at the time it was written?
Feb
14
comment Is micro-optimisation important when coding?
If the functions don't have side effects, they are equivalent and one is faster. If they do have side effects, one should not be writing the code like this in the first place. I would even say this is one that should be done out of habit - unless it actually changes behavior.
Sep
12
awarded  Commentator
Sep
12
comment Strictness in programming methods among Stack Overflow users
@Alf the selected answer is often not the one with the highest score.