Ad

Saturday, January 30, 2016

Codecademy Learn Java tutorial walkthrough 6 white space

Java can ignore whitespace in code but whitespace and comment helps make the code more readable. Code is for computers to read but humans need to maintain it. Readable code, clean concise well annotated code, is an important developer best practice. During job interviews, good candidates are usually distinguished by their ability to solve the problem in a concise and well structured manner. 

This exercise required students to move
System.out.println(isFormatted); 
to a new line, specifically line 5.

This is a real scenario where another developer refers to the code by line number and gives specific instructions. Codecademy mimics the professional world well.

No comments:

Post a Comment

K mean clustering sklearn best practice - Udacity Machine Learning Nanodegree Unsupervised Learning

There are three key k means clustering parameters in sklearn that you will need to pay attention to: Number of centroids, aka center of c...