Ad

Showing posts with label learn to code. Show all posts
Showing posts with label learn to code. Show all posts

Wednesday, February 10, 2016

Codecademy Learn Java tutorial walkthrough 10: relational operators

Codecademy basics tutorials always cover relational operators for each programming language taught. Relational operators refer to the !=, >, ==, <= in (5!=3) or (5>3) or  (5==5)  or (5 <= 7). Each is a test to see if the left and right side of the relational operator has the said relation. For example, 5!=3 will evaluate to true because it is testing for whether it is true 5 doesn't equal to 3, and that is indeed the case, so the result is true. What about (5==3)? It tests if 5 equals to 3, and the answer is no so it evaluates to false. The result of a statement with a relational operator almost always only returns only true or false. Do you remember what's the name of the data type that can only be true or false? Yes a Boolean. A Boolean can either be true or false. Why are relational operators useful?

For example in the previous exercise, we used Modulo to see if z % 2 is zero, which means z is even. We can ask the program to do something only of z is even. Below so the pseudo code to do that (pseudo code is descriptive English words that explains what the code which is yet to be written is intended to do).

if ( (z % 2) ==0) print "z is even!"

This code reads first calculate z % 2, and if that is 0, print out a message saying z is even


See the screenshot above for one of the many solutions to this exercise. Remember Codecademy requires you to use two whole numbers. And don't forget to end the line with a semicolon, else you may get a confusing error.


Codecademy Learn Java tutorial walkthrough 9 Math:modulo %

Modulo has always been a difficult concept for beginners. Codecademy tutorials always cover Modulo operator (the percentage sign %) because it is extremely useful in math, programming and engineering in general. This is a step by step, detailed programming language agnostic guide to how to use and understand the modulo operator. 

First of all don't think too much about the name of the percentage symbol. Let's first understand the concept of modulo. 

It's very useful when determining whether number x is divisible by number y. Say 10 is divisible by 1, 2, 5, and 10. The result is always a whole number: 10, 5, 2, 1 respectively. When x is divisible by y, the result of x modulo y is always zero. 10 % 1 = 0, 10 % 2 = 0. When x is divisible by y, the result is always zero, because there's no remainder. 10 % 3 = 1. Because 3x3=9 plus the remainder 1 equals to 10. And in this case, x moduloes y is not zero, and hence x is not divisible by y. 

And now another commonly used case for the modulo operator: determining whether a number is even or odd. It's useful say Udacity has an online class full of students, and now wants to divide the students methodically into different groups. The sorting method will be different depends on whether the number of students is even or odd. We can calculate that using z % 2. Z is the number of students. example 10%2 =0 makes 10 even. 9%2 = 1, so 9 is not even.


In this exercise, I set int myNumber equal to 11%3, and the remainder will be 2 because 3 x3 is 9, 9 plus 2 is 11, see the illustrated traditional calculation 




Udacity launches new "class" feature Career Advisor Program forStudents who study programming online

Udacity new feature Career Advisory Program report, review, and offering walkthrough.Udacity announces new programming initiative - a career advisory service for online students seeking a job as a Front-End Web Developer, Full Stack Web Developer, iOS developer, android developer, and data analyst (basically all of its nano degree tracks. Think of this service as a derivative of the growth and expansion of Udacity nanodegree programs. With the hefty price tag of those programs, paying customers demand better job placements upon graduation). 

Services
What's Included
  • A direct connection to our hiring partners with your Udacity profile
  • Interview practice and resources
  • Expert review of your personal brand (resume, LinkedIn and GitHub profiles)
  • Training for cover letter writing and other important communications
  • A free resume review during your free trial

    The meat of the offering is really Udacity's hiring partners programs As usual, Udacity boasts premium partners like Google (which is always on the list, given the founder Sebastian T's Google background). However, the real effectiveness of these programs and their placement rates are largely unknown. There's no objective 3rd party report of such numbers. 

    It is reported by Udacity itself that its hiring partners include Google, 
    AT&T, Microsoft, and Priceline. These are not the sexiest of Silicon Valley tech companies. However, they do hire a very large number of developers. May be newly minted developers should consider these larger and less sexy companies after all. 




Udacity's career support is still limited. It seems to lean towards sending students out in into the internet to fend for themselves. Often you will find Udacity career service refer to external resources. Some of them are quite good, such as pramp, but keep in mind, within Udacity the opportunity is limited. 

Saturday, February 6, 2016

TheCodePlayer video castes line by line coding walkthroughs learn to code resource

TheCodePlayer is a video tutorial site where professional developers offer line by line video walkthroughs of their code for a UI element or a feature. They will go over their thought process and refractor on the fly. This can be a good resource for learning to code.

http://thecodeplayer.com

The Eighth Network acquired TheCodePlayer and added a small membership fee along with new content and stock photos, themes and graphic assets.

Here's their announcement:

Change the site over to a $5/month membership (or $100 one-time lifetime fee) site where 100% of your dollars go back into resources for it's members. Your membership would include:
  • New code walk-thoughs every single day
  • Thousands of downloadable code snippets
  • Thousands of license-free stock photos available no where else
  • Thousands of license-free graphics and icons available no where else
  • Website themes for Wordpress, Drupal and other CMS as well as HTML5
  • Curated E-books with research on topics like SEO, website growth, monetizing guides and more
  • In-depth research on usability, case studies, A/B testing and premium content
  • Access to job postings and freelance work
  • A technology podcast with interviews from some of the best programmers in the world
  • No ads, no spam, ever.
  • Probably more, but that's it for now.

Silicon vanity.com is not affiliated with TheCodePlayer. We write blog post about resources that beginners and professional developers can use to learn programming languages. TheCodePlayer stood out as one of the first sites to offer step-by-step walkthrough.


Friday, February 5, 2016

Udacity Intro to Java Programming course lesson review and rating

Udacity offers intro to Java programming for free as a prerequisite for many of its classes, tracks and nano degrees such as Android Developer. It is a quick overview of the language, but it is not an in-depth introduction to the language. This course is mostly useful for begin or Udacity not so much for anyone else who is seriously getting started with Java.

The first few lessons are long but could have been much shorter. The setup and configuration for BlueJ and the algorithm introduction can be useful. Because of its video format, going through this course is quite time-consuming. As usual, Udacity's exercise is a well designed, real world of exercises, and some of them are quite tricky.

The class has an astounding 281K students.

Udacity intro to Java programming walk-through syllabus learn to code resource

Why is this walkthrough useful? you can preview the curriculum.It's accessible even when internet connection is poor. It's a text-based way to learn java if you don't like video instructions.

udacity intro to java programming Syllabus https://www.udacity.com/wiki/cs046
What is programming? : An useful explanation using analogies.
Java (section title) : why learn java because it is a very popular language, mostly simple, safe - will give students helpful and obvious errors. Useful for web, image processing even android development.
Hello, World (section title): write first java program. the line that is System.out.println is the most important line.other parts are setting up the program forthis line

Downloading Blue J (Section title): instructions for installing java and Blue J on windows and mac quiz 0:find the first Contributor to blueJ

Download the course code (lesson title): link to zip file. Assignment is to look for a secret code in one of the text files.



Hello, Udacity! (less on title):create a project in blue J with the help of starter code.Modify the println code Hit the compile button. Right click the orange boxthat represents the project.Select main () method in dropdown and run it.

Create a test project : create a new project or open the test project in lesson 1 code provided by Udacity. Right click and select edit in the dropdown to use the main )method.If creating a new project, need to create a new class, open to edit, delete extra code

Hello World Two lines (lesson title): assignment use two
System.out.println()
to print out Hello on a line andworld on another.Udacity will show you how.

Text and Numbers (lesson title): 
System.out.println(3+4+5);
versus
System.out.println("3+4+5");
There is a quiz. Basically Java will do arithmic on numbers (will add the numbers up in this case) but will display text as it is,word for word.In Java and many languages text is known as a string and is surrounded by a pair of quotes

Our First Program (lesson title): It's possible to twig a program without understanding every detail. Breaks down the System.out.println("Hello, world!"); into object, method and a string. 

print and println (lesson title): difference between ps that print moves the cursor to the end of the printed result, println() move the cursor to one line below the result. It is tricky. 



React UI, UI UX, Reactstrap React Bootstrap

React UI MATERIAL  Install yarn add @material-ui/icons Reactstrap FORMS. Controlled Forms. Uncontrolled Forms.  Columns, grid