Puas yog Groovy tuag?
Puas yog Groovy tuag?

Video: Puas yog Groovy tuag?

Video: Puas yog Groovy tuag?
Video: 8/25/23 Txuj kev tuag puas yog txuj kev zoo 2024, Kaum ib hlis
Anonim

Tsis yog, Groovy tsis tuag! Groovy , cov lus qub qub rau JVM, muaj ntau yam kev txhim kho ntawm nws txoj hauv kev, xws li txhawb Java 9 modularity thiab Java 8 lambda muaj peev xwm. Apache Software Foundation tau tshaj tawm cov hauv qab no Groovy hloov kho tshiab hauv lub xyoo no: Versions 2.6 rau Java 7 thiab tom qab.

Ntawm no, Groovy puas tseem cuam tshuam?

Groovy yog tseem loj hlob Groovy yog tseem nquag tsim los ntawm ib pab pawg neeg pab txhawb - tom ntej 3.0. Thiab qhov kawg tab sis tsis tsawg kawg - Groovy yog tseem ib qho ntawm cov tsev qiv ntawv rub tawm tshaj plaws hauv Java ecosystem. Cédric Champeau tau hais qee lub sijhawm dhau los, qhov ntawd Groovy tau rub tawm 23M zaug hauv 3 lub hlis dhau los - wow!

Ib yam li ntawd, Scala puas yuav tuag? Tsis ntev dhau los, Scala tau pom tias yog qhov loj tom ntej hauv kev ua haujlwm, tab sis nws maj mam pib poob qhov chaw thiab tso tawm hauv 2016 nrog tsawg dua 1% ntawm cov neeg tsim khoom siv nws.

Tom qab ntawd, Groovy puas tsim nyog kawm?

Yog koj yuav mus kawm nws tam sim no thiab tsis txhob siv nws tag kis nws tej zaum tsis yog tsim nyog kawm nws . Groovy yog ib qho kev xaiv ntuj rau java programmer - yooj yim rau kawm thiab koj tseem tuaj yeem siv koj tag nrho cov kev paub java. Groovy yog ib hom lus dynamic, tom qab sim kawm txhua yam lus ua haujlwm (xws li Scala).

Lub ntsiab lus ntawm groovy yog dab tsi?

Groovy yog Java enhancer vim hais tias nws muab kev yooj yim dua thiab txawm qhia tshwj xeeb rau cov ntawv thov (cov uas twb tau tsim tuaj yeem txhim kho lossis lawv tuaj yeem tsim los ntawm kos). Groovy yog Java zoo li syntax, tab sis nrog qhov yooj yim ntawm ntau hom lus zoo li Python thiab Ruby.

Pom zoo: