Computers, Programming
Yuav ua li cas yog "Ruby" (Ruby)? Cov programming lus "Ruby"
Thaum lub caij, muaj ntau ntau yam programming lus, txhua tus uas muaj nws tus kheej cov yam ntxwv thiab tej kev cai. Qhov tsab xov xwm tsom rau ib tug ntawm lawv.
Lub keeb kwm ntawm lub Ruby hom lus
Ruby raws li ib tug programming lus muaj tau nyob ib ncig ntawm ib tug ntev heev lub sij hawm. Ua hauj lwm rau tus thawj tsab ntawm no tsis tshua nrov lus hnub no hnub rov qab mus rau 1993 thiab cov thawj nom version yog los ntawm 1995. Lub creator ntawm cov lus, Yukihiro Matsumoto, yog ib tug neeg txhawb programming txij thaum lub hnub ntawm tus menyuam kawm ntawv lub cev, tab sis lub tswv yim ntawm kev tsim lawv tus kheej ntsuas nws tshwm sim ntau npaum li cas tom qab ntawd. Yog li ntawd yog dab tsi thiaj li zoo kawg li hais txog qhov no programming lus uas niaj hnub no nws occupies ib tug uas txoj hauj lwm nyob rau hauv lub ntiaj teb no nyob ntev ntawm software txoj kev loj hlob?
Ruby philosophy
Thaum tsim lawv cov offspring, Matsumoto, raws li ib tug mob siab kiv cua thiab txhawb kwv-taw qhia kom paub programming, nws tau tsim ib tug tej yam philosophy rau programmers uas xav mus kawm lawv yam lus. Yog li ntawd, Ruby hom lus programming uas tsim tau rau kev tsim tej yam yooj yim, thiab nyob rau tib lub sij hawm kom nkag siab daim ntaub ntawv. Ruby qhia ntau txog yog tsis nyob rau cov kev ceev ntawm qhov kev pab cuam, thiab lub simplicity thiab readability ntawm code.
Lub ntsiab yam ntxwv ntawm cov lus
Yuav ua li cas yog "Ruby" raws li ib tug programming lus? Qhov no yog feem ntau ib tug kwv-taw qhia kom paub hom lus. Yog tsis muaj txheej thaum ub hom - tag nrho cov lug thiab units ntawm cov ntaub ntawv yog khoom (nyob rau hauv sib piv rau tib lub Java hom lus, nws muaj ib tug txheej thaum ub cov ntaub ntawv lug). Txhua muaj nuj nqi nyob rau hauv lub "Ruby" yog ib txoj kev. Muaj ntau ntawm cov yam ntxwv thiab muaj peev xwm nkag tau rau creators los ntawm lwm programming lus, ces peb yuav xyuam xim hais tias Ruby (lus) sib txuas ntxiv ntawm qhov zoo tshaj plaws los ntawm ib tug ntau yam ntawm lwm yam lus thiab technologies.
lus paradigms
Teb rau ib lo lus nug txog dab tsi yog qhov "Ruby" raws li ib tug multi-paradigm lus, koj yuav tau mam li nco dheev pom nws tus kheej nyob rau hauv lub tshav kub ntawm kev tsis sib haum. Tom qab tag nrho, cov lus no tso cai rau koj mus siv ib yam ntawm cov programming paradigms Attendance kev vam meej: ib tug txheej txheem style ntawm programming, kwv-taw qhia kom paub thiab haumxeeb mus kom ze. Cov tsim tawm yog kev ywj siab xaiv rau lawv tus kheej lub tswv yim uas yog los ze zog mus rau nws, thiab nws cov cuab yeej ntawm qhov no yuav tsis tau txwv txiav los yog weaker. Cov programming lus "Ruby" tsuas xav kom qhov kev xaiv no.
Yog vim li cas rau lub chaw
nrov coj
Yog hais tias peb tham txog nrov coj uas muaj nyob rau hauv kev ua lag luam niaj hnub no, cov lawv sawv tawm ntsia. Muaj coob tus neeg, thaum nug txog dab tsi yog qhov "Ruby", intuitively hais RubyOnRails. Cov teeb no ntawm software Cheebtsam ua ib tug kev lag luam txheem cov developers. Nws lossi tswj, tsim thiab complemented los ntawm lub zej zog ntawm programmers, thaum uas seem free. Qhov no lub moj khaum qhia txog cov web daim ntawv thov Cheebtsam raws li ib feem ntawm lub MVC qauv (Model-View-maub), tab sis kuj muaj npaj txhij-ua koom ua ke nrog rau daim ntawv thov neeg rau zaub mov thiab ib qho interface mus saib tau cov database. Cov 3 lub Cheebtsam, nyob rau hauv qhov tseeb, cia ib tug li ob peb teev los sau ntawv thiab khiav ib tug yooj yim blog nyob rau hauv Internet los yog ib tug private web page.
Qhov tseem ceeb ntawm kev sau ntawv ntsuam xyuas
Ib qho tseem ceeb ib feem ntawm lub ecosystem ntawm lub Ruby hom lus, thiab nws cov web-based qhov chaw yog freymovrki cov tsev qiv ntawv thiab sau ntawv ntsuam xyuas. RubyOnRails philosophy qhia BDD (cwj pwm coj-tsav txoj kev loj hlob), uas txhais tau tias cov thawj programmer tsim ib tug sib lawv liag ntawm kev ntsuam xyuas uas qhia txog cov kev tsim tus cwj pwm ntawm qhov kev pab cuam, thiab ces tsim lub code uas yuav tsum tau mus dhau cov kev xeem. Unofficial txheem nyob rau hauv cov cheeb tsam no yog RSpec - qhov no moj khaum tso cai rau koj sau kev kuaj mob mus rau to taub, txawm rau inexperienced cov neeg siv kom tsim.
Ruby Gems
Tsaug uas tau piav nyob rau hauv kom meej cov qauv uas yuav tsum tau ua raws li nrog tag nrho cov pob thiab cov tsev qiv ntawv nyob rau hauv Ruby, txoj kev loj hlob ntawm add-ons yog tsis yooj yim. Yog li ntawd, cov qhov thiaj li hu ua gems (los ntawm cov lus Askiv -. Lub pov haum) modules yuav nyob rau zoo yam daim ntawv thov - los ntawm kev koom ua ke nrog kev tes hauj lwm thiab peb-tog cov kev pab rau hauv lub tiav lawm platform rau e-lag luam. Txhua yam koj yuav tsum tau siv ib tug thib peb tog tsev qiv ntawv - yog kom piav lub dependence ntawm lawv tes num ntawm ib co tsev qiv ntawv, nyob rau hauv ib tug tej thaj chaw deb los yog hauv zos repository, thiab thaum lub sij hawm tom ntej no muaj no cov tsev qiv ntawv yog txiav loaded rau hauv daim ntawv thov. Nws kuj simplifies tsiv teb tsaws ntawm peb tes num developers, raws li muaj yog tsis muaj yuav tsum tau manually qhia dependencies los tsim kom tau peb tes num.
Similar articles
Trending Now