코드카데미를 이용한 온라인 프로그래밍 공부

코드카데미는 온라인 프로그래밍 공부 사이트다.

HTML/CSS, JavaScript, JQuery, PHP, Python, Ruby 등을 공부할 수 있다.

뿐만 아니라 API활용, 웹 페이지 레이아웃 제작도 배울 수 있다.

좀 바쁜게 지나가서 코드카데미를 이용해 백엔드를 공부하고 있다.

 

처음 백엔드할 때는 그렇게 싫었는데 스스로 하고 싶어서 하는 것이고,

뭔가 동기부여가 되다보니 (학습진도에 대한 표시, 강의 마지막에 주는 배지)

정말 재밌다. 학습한 내용을 잊어버리지 않기 위해 블로그에 조금씩 정리하고 있다.

지금은 원어 그대로 정리하고 있지만, 시간이 되면 조금씩 번역해서 올릴까 한다.

 

동시에 여러 언어를 같이 하다보니, 헷갈리는 부분이 없잖아 있긴하다.

else if, elsif, elif 같은 것이 그러하다.

 

업무에 크게 방해받지 않는 선에서 하루 30분 정도 공부하는 것이 좋을 것 같다.

코드카데미를 마치고 나면 책 한 권 정해서 제대로 공부해보려고 한다.

 

 

Python Syntax – Variables and Data Types

1. Welcome!

Python is an easy to learn programming language. You can use it to create web apps, games, even a search engine!

(파이썬은 배우기 쉬운 프로그래밍 언어입니다. 당신은 이것으로 웹  앱, 게임, 심지어 검색 엔진까지 만들수 있습니다.)

2. Variables

Creating web apps, games, and search engines all involve storing and working with different types of data. They do so using variables. A variable stores a piece of data, and gives it a specific name.

3. Booleans

A boolean is like a light switch. It can only have two values. Just like a light switch can only be on or off, a boolean can only be True or False.

4. You’ve Been Reassigned

 

출처 : http://www.codecademy.com Python 강의

Introduction to Ruby – Variables & Data Types

1. Overview & Sneak Peek

  • High-level, meaning reading and writing Ruby is really easy—it looks a lot like regular English!
  • Interpreted, meaning you don’t need a compiler to write and run Ruby. You can write it here at Codecademy or even on your own computer (many are shipped with the Ruby interpreter built in—we’ll get to the interpreter later in this lesson).
  • Object-oriented, meaning it allows users to manipulate data structures called objects in order to build and execute programs. We’ll learn more about objects later, but for now, all you need to know is everything in Ruby is an object.
  • Easy to use. Ruby was designed by Yukihiro Matsumoto (often just called “Matz”) in 1995. Matz set out to design a language that emphasized human needs over those of the computer, which is why Ruby is so easy to pick up.

2. Data Types: Numbers, Strings, Booleans

In Ruby, your information (or data) can come in different types. There are three data types in Ruby that we’re interested in right now: numbers, booleans (which can be true or false), and strings (words or phrases like"I'm learning Ruby!").

Never use quotation marks (‘ or “) with booleans, or Ruby will think you’re talking about a string (a word or phrase) instead of a value that can be true or false. It’s also important to remember that Ruby is case-sensitive (it cares about capitalization).

3. Variables

Declaring variables in Ruby is easy: you just write out a name like my_num, use = to assign it a value, and you’re done! If you need to change a variable, no sweat: just type it again and hit = to assign it a new value.

4. Math

Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)
Exponentiation (**)
Modulo (%)

5.’puts’ and ‘print’

The print command just takes whatever you give it and prints it to the screen. puts (for “put string”) is slightly different: it adds a new (blank) line after the thing you want it to print. You use them like this:

No parentheses or semicolons needed!

출처 : http://www.codecademy.com Ruby 강의