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