597 reputation
211
bio website
location
age
visits member for 3 years, 4 months
seen Sep 16 at 18:10

Jul
10
comment Entry level engineer question regarding memory management
Let's see... If Integer is a class, it will be allocated on the heap. The local variable (on the stack most likely) will hold a reference to it. The reference will be passed to the object errorDictionary. If the runtime is doing reference counting (or such), then when there are no more references, it (the object) will be deallocated from the heap. Anything on the stack is automatically "deallocated" once the method exits. If it's a primitive, it will (most likely) end up on the stack.
Jul
10
comment Why is it called Just In Time?
@DanNeely Thanks, I didn't know that.
Jul
9
comment Why is it called Just In Time?
This term seems to have been coined in relation to Java byte code. What is peoples opinion on "scripting languages", those that are compiled at execution time? JIT, or something else?
Jun
22
comment When decomposing a large function, how can I avoid the complexity from the extra subfunctions?
I actually curious how using the FP methodology, you would handle a large-ish (big enough you won't pass it as parameters) core state. Like maybe an air traffic system where you'd have all the airplanes, weather, etc being shared. But you then have to process against that common state based on change and user events.
Jun
20
answered When decomposing a large function, how can I avoid the complexity from the extra subfunctions?
Jun
20
comment When decomposing a large function, how can I avoid the complexity from the extra subfunctions?
Bleh, none of the answers really deal with complex data... Repeating the Functional Programming Mantra doesn't really help the OP...
Jun
20
comment When decomposing a large function, how can I avoid the complexity from the extra subfunctions?
Wow! You've discovered modern procedural programming. At least use the built-in functions, makes a better point.
Jun
19
comment How to configure simple game AI setting with jtable
Can you add more info? Does player1 do all of those things to all other players? The same with the other players? Is it any combination of playerX - action - playerY? Can Player1 to X and Y to Player 2?
Jun
19
comment Visualizing a CUP grammar
last updated 2009?
Jun
19
comment Benefits of classic OOP over Go-like language
Flamebait: Isn't functional programming procedural programming with extra sugar?
Jun
19
comment Benefits of classic OOP over Go-like language
Scala's OOP is interesting in that you can have "native" objects without instances. I know I do quite a bit, so it's nice
Jun
11
comment How to manage a developer who has poor communication skills
@cjmUK What this answerer is pointing out is that lacking all of the information it's hard to make a determination. As an example, my wife used to work for someone who thought my wife was horrible, now my wife works with people and is considered a high performer. So is my wife the problem, or was the coworker the problem?
Jun
7
comment Why is the “kill” command called so?
What's also fun is that you can mv/rm a file which is open by another process. The other process still has a reference to the file contents. Different from other OS
Jun
7
comment Why is the “kill” command called so?
mv create a new inode(?) and moves the reference to the file contents from the old inode to the new one. Except when it's not on the same device. Then it copies the contents and removes the inode.
Jun
5
comment Is a project without license public domain?
So don't use non-licensed code, it could suddenly get a (pay me) license attached.
May
24
comment What is the name for a NON-self-calling function?
Functions and Recursive functions
May
23
comment Software Optimization vs. Hardware Optimization - what has the bigger impact?
While Moore's law continues to allow for more transistors per sq inch on, the ability to increase clock speed seems to be slowing. So this requires optimization of software. If you don't write it to support multicore you aren't going to see the hardware gains. So threading a program could provide significant improvement. But! if we are only talking tools, I don't believe most of those provide automatic threading, so I don't know that this counts....
May
23
comment Software Optimization vs. Hardware Optimization - what has the bigger impact?
Since he's talking about tools, often the tools are optimized to a specific platform. So in that case it's a combination of the two
May
11
answered How should I build the data structure for a dynamic, unlimited-size “maze”?
May
11
comment How should I build the data structure for a dynamic, unlimited-size “maze”?
I'm not convinced this idea would work.. But maybe I'm not reading it correctly. I would see that some room to room would be easy, but others would require looping thru the dictionary...