CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2783|Reply: 13

Mari belajar Ruby dan Ruby On Rails

[Copy link]
Post time 31-12-2008 12:07 AM | Show all posts |Read mode
Apapun mari belajar Ruby dulu
http://poignantguide.net/ruby/


Install ruby dalam Windows atau Linux dan start main intepreter

Contoh set variable dalam Ruby
kereta = 'bmw'
model = "5 series 530i"

Contoh set constant
Kereta = 'bmw'
KENDERAAN = 'bmw'
KENDERAAN_TERMAHAL = 'ferrari'

Contoh setkan array
kereta = [bmw,proton,toyota]

contoh iterate array

kereta.each do | k |
  print k
end

nama_saya = " temenggung jugah"
10.times  { print nama_saya}
16.times  { print nama_saya.upcase }
16.times  { print nama_saya.upcase.reverse }
Reply

Use magic Report


ADVERTISEMENT


Post time 31-12-2008 12:28 AM | Show all posts
apakah nie....buat aku jd blurr....sory...
Reply

Use magic Report

 Author| Post time 31-12-2008 12:34 AM | Show all posts
Ruby Programming

Bahasa untuk system programming dan juga web programming

Google Ruby
Reply

Use magic Report

Post time 31-12-2008 01:25 AM | Show all posts
bes nye. tp tapaham lagi.
Reply

Use magic Report

Post time 31-12-2008 03:32 AM | Show all posts
o mcm java n c++ skit2...huhuhuhu
Reply

Use magic Report

 Author| Post time 31-12-2008 09:05 AM | Show all posts
Apa kata kita mula belajar @ http://poignantguide.net/ruby/

FOllow aja apa yg dia ajar

contoh class dalam ruby

require 'endertromb'
class MindReader
   def initialize
     @minds = Endertromb::scan_for_sentience
   end
   def read
     @minds.collect do |mind|
        mind.read
     end
   end
end
Reply

Use magic Report

Follow Us
Post time 31-12-2008 10:09 AM | Show all posts

Reply #6 bmw_e34's post

apa asas yg perlu ada utk guna ruby ni?


ni aku jumpa editor ruby (dan lelain) dari komodo (masa baca pc magazine) : http://www.activestate.com/Products/komodo_ide/komodo_edit.mhtml
Reply

Use magic Report

 Author| Post time 31-12-2008 10:34 AM | Show all posts
kalau dalam windows, just download ruby for windows

Download binary from http://ruby-lang.org/en/downloads/

Nih kalau nak buat ruby - windows programming
http://rubyonwindows.blogspot.com/
Reply

Use magic Report


ADVERTISEMENT


Post time 31-12-2008 10:36 AM | Show all posts
errrrrrrrrrrrrrrrrrr kenapa ko ajar gitu.. macam ko nak ajar orang baru nak kenal windows tu, apa itu registry dan macam mana nak edit ko tau

K pun baru belajar je Ruby n RoR ni.. balajar sendiri sambil bertanya kepada lect je guna YM

so, ada jugak yang guna RoR dalam ni ek   -- thanks to RM coz bagi tau
Reply

Use magic Report

 Author| Post time 31-12-2008 10:37 AM | Show all posts
Asas unuk belajar ruby
ada background Java atau C++
takder background pun boleh tapi kena laa rajin baca tutorial


ruby adalah main language

kalau nak develop website, baik guna Ruby On Rails

http://www.rubyonrails.org
Reply

Use magic Report

Post time 31-12-2008 10:46 AM | Show all posts

Reply #10 bmw_e34's post

ko ni musti master dalam RoR kan
Reply

Use magic Report

 Author| Post time 31-12-2008 12:53 PM | Show all posts
taklaa master, cuma nak pelbagaikan skills, asyik guna PHP/PERL aja..so skrg nak layan RoR.

http://mamakspot.my/ror.pdf ( buku ror 2nd edition, kena guna Instal Rails version 1.3 baru boleh layan )

Instant Rails 1.3 download di sini http://files.rubyforge.vm.bytema ... ntRails-1.3-win.zip
Reply

Use magic Report

Post time 31-12-2008 01:09 PM | Show all posts

Balas #12 bmw_e34\ catat

ooo gems aku 1.3.1

now baru nak blajar je tak hebat
Reply

Use magic Report

 Author| Post time 31-12-2008 03:52 PM | Show all posts
boleh laa belajar sama sama

saya ada blog @ http://easyrails.blogspot.com
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

9-1-2025 08:43 PM GMT+8 , Processed in 0.415198 second(s), 26 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list