Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: A question regarding learning Java  (Read 6159 times)

Stargrasper

  • Bay Watcher
    • View Profile
Re: A question regarding learning Java
« Reply #15 on: September 14, 2011, 10:11:14 am »

My rule of thumb when tutoring programming:

Imagine you're looking at the code six months from now.  Can you figure out what it does in less than five seconds?  If not, make it more explicit or add (or improve existing) comments.

Compound expressions are an invaluable tool, I completely agree.  They're easier to read and they ever so slightly speed up the program.  More importantly for the beginner is that they're harder to debug because more steps are occurring on one line.  They're also an intermediate skill as far as I'm concerned.  At this level, he's not doing anything complex enough for it to matter.  He still doesn't appear to understand the fundamentals.  I promise I'll teach the more complex concepts when he appears ready for them.

And Virex, good advice.  You explained some things I either missed or didn't explain as well as I probably should have.
Logged

AllThingsLive

  • Bay Watcher
  • Damn, I'm a sexy bitch!
    • View Profile
Re: A question regarding learning Java
« Reply #16 on: September 17, 2011, 07:08:47 pm »

Thank you so much StarGrasper!
I understand casts completely now, and I got a good grasp of overwriting. As for wrapping/unwrapping, I'm not too interested in that now, but later on I will likely be back in Life Advice asking for information on it or something else.
By the way, I'm sorry for not responding earlier, school has been kicking my butt lately.
Logged
If you haven't already, you MUST listen to the Joe Rogan Experience : http://itunes.apple.com/us/podcast/the-joe-rogan-experience/id360084272

Stargrasper

  • Bay Watcher
    • View Profile
Re: A question regarding learning Java
« Reply #17 on: September 18, 2011, 09:08:36 am »

I'm glad I can be of help.  I encourage you to come back if you have any further questions.

And don't forget to thank Virax.  His help is just as good as mine.  There's a lot of programmers here that can advise you, and the only thing I particularly have on them is teaching experience.  Don't forget to pay attention to them, too.
Logged

eerr

  • Bay Watcher
    • View Profile
Re: A question regarding learning Java
« Reply #18 on: September 18, 2011, 06:00:12 pm »

I wish I could read the hearts and minds of men.

Then I could explain things so well.
Logged
Pages: 1 [2]