PENDAHULUAN Pemrograman Ruby
Download
Report
Transcript PENDAHULUAN Pemrograman Ruby
PENDAHULUAN
Pemrograman Ruby
Merealisasikan S/W
Start
Desain
Algoritma & Flowchart
Menulis program
Test Kebenaran Program
Dokumentasi
Arsip
Programming is telling your computer how
to do something.
Large tasks must be broken up into smaller
tasks, which must be broken up into still
smaller tasks, down until you get to the
most basic tasks that you don’t have to
describe, the tasks your computer already
knows how to do. (These are really basic
things such as arithmetic or display-ing
some text on your screen.)
Memprogram
C
Java
Ruby
javascript
Bahasa Pemrograman
Matz's philosophy
(Yukihiro Matsumoto – the
creator of Ruby)
Ruby is designed to make
programmers happy
public class HelloWorld {
public static void main(String []args) {
System.out.println("Hello World");
} // close main
} // close class
#include <iostream>
#include <string>
using namespace std;
int main(){
cout << "Hello World" << endl;
return 0;
} // close main
puts ' Hello World'
Ruby program is short
A program is not built;
it is grown.
Avoid duplication
(DRY rule: Don’t Repeat
Yourself)
Tipe Data
Variabel
Flow Control :
Brancing
Looping
Array
Method/Fungsi
Learning check