Fun Stuff > CLIKC
A programming thread!
snalin:
Write some stuff. It's kinda hard to get started without a specific task, but you should write some stuff. Make sure you're using Java 7, by the way. And also grab an IDE as discussed at length up-thread - Eclipse is fine.
Java is... pretty close to Python when it comes to capabilities and how you think about the language, so you're pretty far ahead already. Python allows you to do everything as a script rather than a proper object oriented language, so I guess it depends on how you've been using it.
There's stuff like codingbat, but that gives problems that you could solve in the same way in any language - it doesn't really get into the java-specific stuff. Which is probably what you need.
Basically, you need to get on terms with what classes and objects are, and how they relate - this also means knowing static methods from non-static ones. Depending on how advanced the course is, you want to know how packages work, how private/default/protected/public access works (and maybe when to use them!), have a basic grip on what recursion is, know how interfaces works, how to implement interfaces, and finally how inheritance works.
If you want a texty overview, check out the docs at oracle. You could also look into getting the book for your CS course - that might have some proper exercises that allows you to work with the stuff I mentioned above.
Masterpiece:
The Java Docs are great if you want to know how a certain library in Java works.
snalin:
For introductory courses, you probably only need the Collections library and the Scanner class. If somebody tells you to use arrays and/or IOStreams, they're probably dumb and/or from the 80s.
(click to show/hide) :mrgreen:
danpaul88:
Anyone here done any work with Java EE? I'm not looking to get too deep into the guts of it, my plan is to use it as the backend for a website in preference to something like PHP or ASP.NET (which is limited to Windows servers, I'm aiming to make this code OS agnostic to some extent) whilst avoiding any dependency on Java on the client machine.
Links to useful resources to get started would be appreciated, if you happen to have any lying around... or if you'd like to suggest an alternative I've perhaps not considered that'd be great too. There's not a lot of heavy lifting required (it'll mostly be reading and writing JSON, doing database manipulation and some heavy number crunching, hence why I decided against node.js). I'll also be running some code independently so it can update states without any client requests occurring, ideally in the same process as the one listening for web requests.
I have used Java a fair bit in the past for command line applications so I have a decent understanding of the language itself, it's more the EE part of it I'm looking to learn more about. Intending to use NetBeans as an IDE since I understand it's EE support is far better than that offered in Eclipse.
snalin:
I have not touched EE, so I can't help you there. Though it doesn't really sound like you need it - JSON is just string parsing, and both database manipulation (JDBC) and number crunching is available in SE.
Other than that, EE is just a bunch of libraries that allows you to do advanced, heavy duty stuff. If you want big, multithreaded applications that talks with everything on the web and interfaces with a ton of things, EE is probably a given - but if you're doing low-key stuff, I dunno.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version