This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!

Guillermo Ishi

Ranch Hand
+ Follow
since Jul 28, 2014
Guillermo likes ...
C++ Linux Python
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
76
Received in last 30 days
0
Total given
8
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Guillermo Ishi

The title says it all. It's really against the spirit of what your grand poobah ostensibly wanted to create. At least 25% of my most recent posts are gone.
3 years ago
Nearly all of my career has been in embedded as well. OO didn't come up very much and it was mostly straight C and assembly. And lots and lots of electronics. It still love that most but it's not as practical as work as it once was. Although it may come back someday in "the internet of things".

The main thing is to not get discouraged. My only good quality is I will not quit, no matter what! Except if I lose interest, and then it's justified. You are probably the same way on your projects and you have to think of the ocajp as a project like that. I actually had to take it three times before I passed. The first time I just thought I would pass because I could write Java programs. I got 40% and I think the test was considerably easier then than it is now. So in figuring out WTH happened, I discovered this site and through it Entuware. I got 40% on the first Enthuware test. Then lots of studying later I took ocajp a second time but the style of the questions was now different from before, plus the test conditions were terrible, and I ended up failing by some tiny amount, 3 points, 1 point, I don't remember. I was so determined that I would have spent my last nickel and everything I could make selling pencils to take it until I passed it. I don't know how beneficial the certification is, but I wasn't going to let it get me. Leitner mode in Enthuware was really helpful to me. I had all the questions in the last two columns at one point. I think by the time you have done that, you'll be in a position to get 80+ on the Last Day Test. Very simple. The books don't cover the material in the same way, and I think it's good to use Enthuware itself as study material (in Leitner mode). If you have a question that extends from some test question then write some code to answer that. Most important, forbid yourself from making oversight mistakes on the tests. Change the way you think, or whatever it takes to do that.
You can get a truly random number by reading milliseconds from a timer or clock register that rolls over, if it's read at random times such as a person coming up and interacting with the program.
3 years ago
^Right. Personally, not only did I review them to the point where I understood them completely, but real often I would copy/paste part of the explanation at the bottom into a text file that I kept and before I took the next test I would run through that text file. It would probably be even better to write that by hand in a notebook.
In C there's a funtion called getchar() that everybody uses for that purpose. It waits for a key. scanner.nextline() might be the same in Java.

So in your loop that produces the output, decide how many lines you want to display. Modulus divide the loop counter by that number every iteration. Every time the result is 0 call the function that waits for a key.
3 years ago
I typed "missed a question" but I meant I missed multiple questions per test that way. Maybe a dozen to start. Plus professionally I never unravel hairballs mentally I just step through it with a debugger, so I had to learn to not lose my place stepping through those mentally.
It sounds like you are trying to steal something I own

I had to learn to take the test before I could do anything. In reviewing the mock results I would always find I missed a question that I knew the answer to because of how the question was presented. So I decided I just wasn't going to miss anymore questions I knew the answer to. I eventually passed the actual exam with 100%. Not really, but I did pass it.
A good alternative intro other than books would be a free course on edx, udacity, or coursera. There are more courses using Python though. After you have the language down at that level, then you need to tailor the trail to things that the test consists of and also practice testing itself. At that point use Enthuware according to its instructions and one or more of the study books. I used K & B for ocajp7.
Can mine be orange?
3 years ago

Campbell Ritchie wrote:that behaviour is exactly in line with the stipulations of the Java® Language Specification.


I know! But rationalize it how you will, the i++ comes before the print i, so it should print 1.
3 years ago
How you doin', man?
3 years ago

Paul Clapham wrote:
And those exams are packed full of horrible code examples which are supposed to test your knowledge of Java. Those books should have a big disclaimer.


Good point. I think everybody has that in the back of their mind, though. Years ago I a ran across a "why I hate Java" page chocked full of idiosyncratic examples like the above.
I don't think you would run across something like the above in ocajp7 but I can't swear to it because I was dozing off and out of my mind when I took it. The ocajp8 has a reputation for being a little trickier so it might, I took the beta version of it and I think it was trickier.
3 years ago

Roel De Nijs wrote:If you really want some fun, you definitely have to look at this thread. It's all about the quirkiness of the i = i++; statement


You must keep some kind of index to threads. You always have the previous one or better one at hand.
3 years ago