r/learnjava • • Apr 27 '16

Starting programming Java

So I know 0% programming and would like to learn... (starting with java) Any clue where's the best starting place?

0 Upvotes

15 comments sorted by

View all comments

0

u/LemonCrispies Apr 27 '16

I think one of the best things you can do is to dive right into something like Javascript to learn how coding works. Java isn't much different and the biggest differences in my experience are that Java is Object Oriented.

Learning the logic behind how a computer reads code will give you a good jumping off point, I would suggest freecodecamp or codeacademy.

I also like the Head First books for when you're ready, there is a Java one and an Object Oriented one. I own them both and they're very well detailed.

3

u/desrtfx Apr 28 '16 edited Apr 28 '16

dive right into something like Javascript to learn how coding works. Java isn't much different

This is one of the wrongest statements that I've read about Java and JavaScript so far.

The languages are completely different and have nothing except the basic syntax (and the similar name) in common.

Advising someone who wants to learn Java to learn JavaScript first is like telling someone who wants to learn how to drive a car that they should learn how to ride a horse first.

Sorry, completely wrong and misleading advice. Had you said C#. it would have been acceptable, but JavaScript isn't.


freecodecamp or codeacademy.

Again, misleading.

  • Freecodecamp is for web development which has zero to do with Java and follows completely different programming paradigms

  • CodeCademy (there is no a after the e and before the c) is already a better option, but their Java course in particular is not useful to absolute beginners as it is neither verbose enough, nor does it provide enough content, nor does it teach how to develop on one's own desktop. The learning to program subreddits are full of people who have gone through the Codecademy Java trail and are completely lost when it comes to developing apps by themselves.


The only good advice here is Head First Books as they are commonly seen as high quality and really are decent books.

0

u/LemonCrispies Apr 28 '16

While you may have taken some time to put this response together I would have to tell you that you are completely off base by saying Java AND Javascript are completely different.

I'm talking about the basics of code which Javascript conveys very well. Variables, Loops, Logic Statements. The basics of coding. They're all there in Javascript stuff that's available on code academy and free code camp.

When somebody tells me they have 0% experience I assume they know nothing. So handing them a head first book and saying good luck is a bad idea because generally the books assume you know a little about coding.

I'm not saying MASTER Javascript. Nut taking a few free beginner courses is not going to hurt as it will get their feet wet in some kind of coding.

2

u/desrtfx Apr 28 '16

If you just talk about variables, loops, logic statements you can basically choose any C-like language or even Pascal. The very fundamentals are the same in all procedural and OO languages (functional languages work somewhat different).

For these fundamental concepts, Scratch is probably the best choice since it displays the code flow graphically as opposed to no visible code flow.

The main problem with mixing Java and JavaScript is that despite both being typed languages, Java has explicit typing while JavaScript has implicit typing. And this is where I completely am against using JavaScript as underlying knowledge for Java. In Java you as the programmer need to know your data type exactly, whilst in JavaScript you don't need to care - you just use var and you are good to go. Also, JavaScript handles objects (if you can call them so) completely different to Java.

I wouldn't even consider Python for the same reasons, despite being probably the language with currently the lowest entry barrier.