393 reputation
16
bio website
location Michigan
age
visits member for 3 years, 2 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.

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.
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
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
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.
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
comment Strictness in programming methods among Stack Overflow users
@Alf the selected answer is often not the one with the highest score.
Sep
12
comment Strictness in programming methods among Stack Overflow users
+1 for pointing out that down-votes cost the voter a point!
Aug
23
comment Is running an executable as a child process the same as linking a library?
@David Schwartz: linking is not like stapling a CD to a painting. It's more like writing a new story set in the Star Wars universe using all the same characters and plot elements like "the force" and light sabers. See my comment about #include.
Aug
22
comment Is running an executable as a child process the same as linking a library?
using the compiler directive "#include xxx.h" is equivalent to copy and paste a header file into the one that includes it. Your code is not even able to compile without that, and it's implementation is dependent on the things included. This argument is true of dynamic linking as well.
Aug
22
comment Avoid GPL violation by moving library out of process
@vartec: dynamic linking can involve the use of internal data structures and functions within your program. Basically if you have the "#include" a header file to build your code, it's a sign that it's not entirely independent. This could get murky if the header implements a standard (POSIX or OpenGL) interface. However for most cases, you'd be incorporating custom objects into the linked code. The OP solution of making a server IMHO gets around this.
Aug
22
comment Is running an executable as a child process the same as linking a library?
After linking, the executable is a derivative work (same as translating a book to another language). GPL requires all source code to derivative works be made available. This is not ambiguous. There is also more to linking that your stapling analogy suggests, but that doesn't matter unless we get into dynamic linking.
Aug
10
comment Importance of hobby projects
I would reword that slightly - use a new language to do your hobby project. Then the project is the motivation, not the learning.