sirayla calisan talimatlar toplami.
calisma alani
Ruby
Ruby icin sifirdan pratik ogrenme yolu
once tanim
Ruby nedir
Ruby kesin talimatlar yazmak icindir. Burada onu Ruby icin sifirdan pratik ogrenme yolu olarak ogreniyorsun. Baslangic modeli: girdi adimlardan gecer ve cikti olur.
app.rbcalistir ruby app.rbaliskanlik Ruby icin kucuk bir parca ogren, minimal ornek yaz ve calistirdeger veridir. degisken bu veriyi tutan isimdir.
girdi alip sonuc ureten isimli kucuk is.
Ruby app.rb icindeki kodu calistirir.
ilk okunur kod
program ciktisi
entry point output syntax putsputs 42
cikti 42dil soyu
Ruby aile agaci
Ruby nereden gelir, hangi diller yakindir ve sonra ne ogrenilir.
en iyi alan Ruby icin sifirdan pratik ogrenme yolu
sifirdan
Soru bankasi
Once ara sonra calis
Bir asama sec veya bu dilin soru bankasinda ara ve alistirmaya gec.
Ruby soru 1
Ruby soru 1. deger yazdirma icin en uygun ifadeyi sec.
Ruby soru 2
Ruby soru 2. degeri adlandirma icin en uygun ifadeyi sec.
Ruby soru 3
Ruby soru 3. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
Ruby soru 4
Ruby soru 4. temel koleksiyon icin en uygun ifadeyi sec.
Ruby soru 5
Ruby soru 5. deger yazdirma icin en uygun ifadeyi sec.
Ruby soru 6
Ruby soru 6. degeri adlandirma icin en uygun ifadeyi sec.
Ruby soru 7
Ruby soru 7. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
Ruby soru 8
Ruby soru 8. temel koleksiyon icin en uygun ifadeyi sec.
Ruby soru 9
Ruby soru 9. deger yazdirma icin en uygun ifadeyi sec.
Ruby soru 10
Ruby soru 10. degeri adlandirma icin en uygun ifadeyi sec.
Ruby soru 11
Ruby soru 11. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
Ruby soru 12
Ruby soru 12. temel koleksiyon icin en uygun ifadeyi sec.
Ruby soru 13
Ruby soru 13. deger yazdirma icin en uygun ifadeyi sec.
Ruby soru 14
Ruby soru 14. degeri adlandirma icin en uygun ifadeyi sec.
Ruby soru 15
Ruby soru 15. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
Ruby soru 16
Ruby soru 16. temel koleksiyon icin en uygun ifadeyi sec.
Ruby soru 17
Ruby soru 17. deger yazdirma icin en uygun ifadeyi sec.
Ruby soru 18
Ruby soru 18. degeri adlandirma icin en uygun ifadeyi sec.
coktan secmeli
Ruby soru 1
Ruby soru 1. deger yazdirma icin en uygun ifadeyi sec.
puts 42
referans
app.rb kaliplari
ruby app.rbentry point output syntax puts
program ciktisi
puts 42
- Run the smallest file first
- Print one known value
- Check the output before adding more code
variables assignment types =
degerler ve isimler
total = 42 puts total
- Give values readable names
- Keep one idea per line while learning
- Trace the value before changing it
function collection Array
fonksiyonlar ve koleksiyonlar
def add(a, b) a + b end scores = [40, 2] puts scores.length
- Keep functions small
- Return useful values
- Use the common collection before reaching for frameworks