Friday, March 18, 2016

Udacity Class Intro to Java Programming walkthrough, review, rating and notes

Intro to Java Programming
(This document is a work in progress. Please excuse its appearance)
  • General comments:
    • Video has occasional interviews of young female coders, role models - cs students from Stanford
  • Lesson 1 - Introduction
    • Tidying Legos : 
      • Example: use lego swap, sorting, rearrangement as example of algorithm
    • Example: calculation of dinner bill and tip is a good example of an algorithm
    • Moving to the First Yellow-Blue Lego
      • Exercise: really helpful exercise writing pseudo code and understanding algorithm
    • Concept: Why is this not a correct algorithm? 01 description is ambiguous?  02 description contains steps that cannot be executed ? 03 procedure does not always terminate
Udacity Introduction to Java Programming
Move to the First Yellow-Blue
Example algorithm that does not terminate

  • Problem set 0:
    • Install BlueJ and look at folder files to find secret codes. Familiarize yourself with your programming environment
  • Objects
    • Concept - coders organize their code into objects
    • Concept - can use objects already written by other people, stand on the should of the giants
    • Concept - two important things to understand about objects: 01 what can an object do? 02 How to make the object do it?
    • Why is OOP so important?
      • Industry standard, job requirement to use object oriented programming
      • Concept - a person is a perfect analogy of an object (computer science): a person has attributes / properties like height weight, and he/she is can do all kinds of things. OOP is intuitive - it is aligned with the way we think 
    • Objects
      • Analogy - objects are like appliances in a big house. Each appliance such as a heater or the washer has some build-in functionalities 
      • Concept - Object = building block of a program, component with some desired functionality. You can ask objects to do work. 
      • Concept - You don't necessarily know how they do that - how they complete each task. 
      • Analogy - We don't know usually know the granular details how a heater works, as long as it heats water
      • Concept - it's important to understand WHAT an object can do, NOT necessarily HOW it does that
  • Lesson Title : Objects demo
    • Exercise: learn to use an existing project, and start a new instance of an object
    • Concept: It's important to not get hung up on how an object does its task exactly to the greatest details.  The amount of codes in each project can be overwhelming. It's important to follow instruction, and ignore the extra details. 
  • Lesson Title: Lesson 2 - Objects - Classes
    • Concept: in Java, class = objects with common behaviors. Example the day class, when you want to use objects in this class, look at its documentations. Example: the string class defines the common behavior of the string objects.
    • Concept: methods = actions that can be done by a class
    • Comments: this is a really good way to think about objects, for those who are new to OOP
  • Lesson Title: Lesson 2 - Drawing Pictures
    • Exercise: playing with interesting codes that can edit and modify pictures
    • Comment: this is a great exercise, showcasing a real-world application of Java, and how powerful it is for image manipulation
  • Lesson Title: Lesson 2 - Variable Names
    • Concept - Use variable to store a value that you need to retrieve later. Every variable has a name. Analogy: parking lot spot, parking structure label

  • Lesson 2 Objects An Exercise on Variable Names
    • Identify the variable names in variable declarations
  • Lesson 2 Objects Variables
    • Concept Variable Type: in Java writes the type before the variable name. Analogy: parking spot for a bike, versus for motorbikes versus for a car. In Java, we have to specify which type of data the variable holds. 
    • Concept Initial Value : when declaring a new variable, always best practice to specify an initial value. 
    • Concept data type double: a number that can have a decimal point. Ignore the curious name. 
    • Commonly seen types: string, double, int, and more
  • Lesson 2 Objects Comments
    • // double slash comments for humans to understand the code better
    • "Comments are for humans (human readers)"
  • Lesson 2 Objects Variable Declarations: The Fine Print
    • Exercises: spot mistakes in variable declaration statements


  1. Thanks for your informative post on Java application development. This open source platform assists software developers to create stunning mobile application with ease. Further, they can make use of this platform at free of cost.

    JAVA Training in Chennai|JAVA Course in Chennai|Best JAVA Training in Chennai


  2. This technical post helps me to improve my skills set, thanks for this wonder article I expect your upcoming blog, so keep sharing...
    PHP Training Institute in Chennai|PHP Training in Chennai

  3. This technical post helps me to improve my skills set, thanks for this wonder article I expect your upcoming blog, so keep sharing...
    web designing training in chennai|web design training course|web designing institute

  4. The strategy you have posted on this technology hepled me to get into the next level and had lot of informations in it.
    salesforce training in chennai | salesforce training institute in chennai

  5. I agree your thoughts, now a day’s huge demand for the certified java professionals in IT industry. Java gives more career opportunity for the fresher’s as well as experienced experts.
    JAVA Training in Chennai|JAVA Course in Chennai

  6. if you learn java you can easily switch your career in to Hadoop technology.
    Hadoop Training in Chennai|Big Data Training in Chennai

  7. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Hadoop Training Chennai | PHP Training in Chennai

  8. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai Java Training in Chennai

    Online Java Training Java Online Training | Java 8 online training | JavaEE Training in Chennai

  9. Ethical hacking describes hacking performed by a company or individual to help them to identify potential threats on a computer or network.
    Ethical hacking Course in Chennai | Ethical hacking Training in Chennai

  10. That is the reason umteen organizations and fill support to outsource impost refreshment programming.Hardback by years of get Softage has surpassed its rivals by giving somebody benefits in a moderate behavior.Java

  11. Nice blog. Thank you for sharing. The information you shared is very effective for learners I have got some important suggestions from it. erp software in chennai.

  12. Hi to every one, the contents present at this site are
    actually remarkable for people experience, well, keep up the good work fellows
    Web designing course in chennai

  13. Really an amazing post..! By reading your blog post i gained more information.
    Bulk SMS Chennai
    Internet Marketing Company Chennai


Host an HTML website on Github in 5 minutes HD

Tutorial how to set up web hosting, personal portfolio website on Github in 5 minutes. More content coming to this paid channel including in...