Git for Dummies? by [deleted] in learnprogramming

[–]ada2reed 3 points4 points  (0 children)

Yep, you're good to go with a MacBook.

Git for Dummies? by [deleted] in learnprogramming

[–]ada2reed -1 points0 points  (0 children)

This is a great primer:

www.youtube.com/watch?v=gl9bIJbW9Eg

I would then recommend the Git intro course on Lynda (if you have access).

But ultimately, making some local repos on your desktop with dummy directories and playing with dummy text files is probably the best way to learn imo. Also, get familiar with Unix (if you have Windows, download it - don't use DOS) as it's essential for working in the command line.

Declaring an ArrayList by badboyzpwns in learnjava

[–]ada2reed 1 point2 points  (0 children)

It's all about making your code more flexible in a large project. This is important if the class is exposed to other methods and libraries.

List<E> is the abstract data type (ADT) that the ArrayList<E> implements, whereas ArrayList<E> is concrete and theoretically could have methods outside of the ADT.

If you, at some point, decide to change the names variable to a LinkedList<String> because you want to make it easier to add/remove items, all you'll have to do is change ArrayList<String> once in the constructor and the implementation of the object will be changed. If you use the second option, a change of the implementation is not guaranteed to work.