Biniman Idugboe wrote:I do not understand the description at all. I will very much appreciate it if somebody can simplify it. What exactly does the fork( ) method do?
Cristian Gabriel wrote:I have a question about how I should learn, or to be more precise..in which order should I learn those concepts.
- Focus on coding, more complex problems in order to familiarize myself with Java and those little tricks from every language?(and then the other choices?)
- Focus on GUI?
- Continue playing with Android Studio(I simply love it) and build more complex apps since this means more Java code?
- all of these?
Deja Quavern wrote:The teacher says that is almost expected to have a stackoverflow with a fixed pivot array. What is meant by that and how one is supposed to write performance tests in that case?
Brett Gross wrote:I'm trying to create an object array bugRacing, from an abstract class, Bug. But it keeps saying the constructor is undefined.
Gayathri Gayu wrote:Sorry its my mistake. I haven't posted the entire code.
Tim Holloway wrote:Now THERE'S one I haven't heard of in a long time! Actually, I don't know about reading as such, but they're good for implementing FIFO caches. Push one in, the one before it (the oldest one in the ring) pops out. And around they go!
Tim Holloway wrote:You can make any of the Collections classes thread-safe, if I'm not mistaken by adding a qualification to your definition.
Junilu Lacar wrote:What really matters when you're refactoring is that software is easy to work with.
Junilu Lacar wrote:You just say "Is the lamp on or is it off?" That should be what informs your API design to make it more natural and intuitive.
Junilu Lacar wrote:I agree, an enum with ON/OFF values should not be called Lamp.
salvin francis wrote:Hmm... I still think it should not be called Lamp
Junilu Lacar wrote:Absolutely. Those other examples you gave don't translate naturally to true/false. However, ON/OFF, YES/NO, CHECKED/UNCHECKED, SELECTED/UNSELECTED, these translate naturally to true/false...
Junilu Lacar wrote:My final vote would still go to a boolean lit variable in a Lamp class.
Well on that basis, Liutauras's Lamp enum is the best of all.
Junilu Lacar wrote:I would argue that in this case, there is no need for that kind of flexibility. Again, that makes me think that we're on the edge of falling into the speculative design trap.