Salvar Fawkes ([info]salvar) wrote,
@ 2008-04-11 16:25:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: intimidated
Current music:Lollipop - Mika
Entry tags:c++, computers, german, java, programming

void stiftInAugeHineinstecken()
    Well, I'm learning Java in German now. This first class session was entirely in German, but it was mostly background stuff that I had already learned from C++. Polymorphism, overloading function names, etc. Although "final" was new.
    The strange thing is that I understood almost all of it. I guess it's mostly procedural, and I can just follow the code to see what it does, and a lot of the keywords are based off English. But even if she'll speak some English for me in the following sessions, the function names are always going to be in German, and the comments... not to mention the keyboards. :P This is going to be a new experience...



(Post a new comment)


[info]toumal
2008-04-11 10:12 pm UTC (link)
That's great! Feel free to bug me if you have questions, since Java is what I do for a living :)

(Reply to this)(Thread)


[info]salvar
2008-04-12 08:40 am UTC (link)
It's a neat language. And a good way for me to brush up on my C++ syntax, because it turns out that not touching it for a year makes one a bit rusty.
I'm wondering about classes, though. In C++ the header files are very clearly included, and all the functions have to have function prototypes at the top of the page (I forget how to put those in their own files), but in Java (or at least the Hamster simulator) all the necessary classes seem to just be there, without specific reference, even the ones that I wrote myself. Is Java just magical like that, or are they actually being #included behind the scenes?

(Reply to this)(Parent)(Thread)


[info]toumal
2008-04-12 08:47 pm UTC (link)
There are no header files. If you want to use a function somewhere else, make it public. Otherwise use "private". You then "import" the desired packages and classnames when you want to use them somewhere else.

And if you're programming with eclipse (www.eclipse.org), pressing Ctrl-Space will auto-complete classnames, functions, etc. automatically, while pressing Ctrl-Shift-o will get the right imports.

Don't worry though, it will take you a few years before you get a real feeling for object oriented programming. That's normal.

(Reply to this)(Parent)(Thread)


[info]salvar
2008-04-12 09:32 pm UTC (link)
Hmph. Yeah, I guess the classes are being imported behind the scenes, then. Is there a directory for class files, or should they stay in the same folder, or do you import the full path to the file?

Oh, I've got no problems with OOP. It's dealing with file I/O that I can't get the hang of. Or GUIs...
...
Poor Germans. All the cool acronyms are in English. :P It's really hard to translate foreign acronyms and other shortenings, I've found...

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…