Choyamba, JavaScript ndi chiyani? Java Script ndi chilankhulo cha mapulogalamu chomwe chimagwiritsidwa ntchito kupeza mapulogalamu osiyanasiyana. Java script ndi chimodzi mwa zilankhulo zodziwika bwino zamapulogalamu, ndipo kutchuka kwake kukukulirakulira. Ngati mukufuna kudziwa zambiri za chifukwa chake Java Script ikukula komanso ngati kuli koyenera kuphunzira JS mu 2022, onani zomwe zili pansipa. [id id mawu = “attach_7684” align = “aligncenter” wide = “760”]
Brendan Eich, bambo wa JavaScript[/caption]
- Zambiri zokhudza JS zomwe muyenera kudziwa musanayambe kuphunzira chinenero cha JavaScript
- Chifukwa chiyani JavaScript ndiyotchuka kwambiri ndipo ikuyenera kutchuka?
- Chifukwa chiyani muyenera kuphunzira JavaScript
- Ndi chiyembekezo chotani cha chilankhulo
- Kodi padzakhala kufunikira kwa opanga mapulogalamu a JS mtsogolomo
- Ubwino ndi kuipa kwa JavaScript
- Kukula kwamasewera a JavaScript
- Chifukwa Chomwe Mungakhalire Wopanga JS mu 2022 – Chifukwa Chake Muyenera Kuphunzira JavaScript, Perspectives
- Kugulitsa maloboti ndi njira mu JavaScript
Zambiri zokhudza JS zomwe muyenera kudziwa musanayambe kuphunzira chinenero cha JavaScript
JavaScript ndi chilankhulo chapamwamba kwambiri chomwe chimathandizira njira zosiyanasiyana. Amatanthauza gulu la zilankhulo zotanthauziridwa. Zomwe JavaScript ikuphatikiza:
- Mtengo wa chidziwitso umatsimikiziridwa powerengera mtengo wa nthawi zonse, kapena hypotenuse.
- Khodi ya pulogalamu kapena ntchito imawululidwa ikafika.
- Ntchito za Java script zitha kuperekedwa ngati ntchito zina zosiyana ndi mafayilo ena, mutha kugawana nawo.
- Chifukwa cha kuchuluka kwa Javascript, imathandizidwa ndi asakatuli ambiri.
ES6 ndikuwonjezera kwatsopano ku JavaScript yomwe imakulitsa magwiridwe antchito ake. Imawonjezera kuthandizira kwa syntax ya ntchito ya mivi, kumasula, kufalitsa ndi kupumula ogwiritsa ntchito, ma module, ndi makalasi.
JavaScript ndiyofala komanso yotchuka, kotero madera ambiri apanga mozungulira, zomwe zimapatsa opanga mwayi wopeza zida zowonjezera, monga:
- Library ndi frameworks.
- Osonkhanitsa.
- Malaibulale othandizira.
- Majenereta osasunthika.
Komanso JS:
- amakulolani kuti mupange machitidwe amakono akutsogolo pogwiritsa ntchito React, Angular ndi Vue;
- kugwiritsa ntchito React Native kupanga mapulogalamu osiyanasiyana;
- masewera ambiri amalembedwa mu JS;
- maloboti ogulitsa amalembedwa mu JavaScript.
[id id mawu = “attach_7668″ align=”aligncenter” wide=”610″]
Kuphunzira chilankhulo cha JavaScript kumakupatsani mwayi wothana ndi mavuto otsatirawa[/caption]
Chifukwa chiyani JavaScript ndiyotchuka kwambiri ndipo ikuyenera kutchuka?
Monga tanena kale, Javascript imakhala ngati imodzi mwazilankhulo zodziwika bwino zamapulogalamu, potengera kuchuluka kwa ntchito ndi mapulojekiti omwe amachitika pamenepo, komanso kuchuluka kwa zopempha.
Java ndi njira yabwino kwa oyambitsa mapulogalamu kuti ayambe kukula. Makampani aku Russian Federation amatenga oyamba kumene kuma studio awo apa intaneti. Ma studio ali m’mizinda ikuluikulu komanso m’madera.
Ubwino wa JavaScript, womwe umadziwika ndi akatswiri:
- Kuphatikizika koyamba kwa JS ndiko kusinthasintha kwa JS , komwe kumakupatsani mwayi wopanga mapulogalamu, kapena masamba omwe ali ndi kulumikizana kwakukulu.
- Chinthu chachiwiri choyenera kumvetsera ndi chitukuko cha mapulogalamu a pa intaneti , omwe panopa akupeza kutchuka. Izi zikuchitika tsopano zikutsatiridwa ndi Google. Koma tsopano PWA ikuyamba kutchuka, yomwe mtsogolomu ikhoza kutenga msika. PWA imapangidwa pogwiritsa ntchito JavaScript.
Ndipo nali lingaliro, lotengedwa pa https://habr.com/:
Ndi chiyembekezo chotani cha chilankhulo
JS ndi chimodzi mwa zilankhulo zomwe zimafunidwa kwambiri padziko lapansi. Malinga ndi ntchito ya TIOB, ili pamalo achisanu ndi chiwiri. Pa GitHub, chinenerocho chili pamalo oyamba. Ndi chilankhulo chachiwiri chokondedwa pambuyo pa Python. Zonsezi zikutsimikizira kuti chinenerocho chili ndi chiyembekezo chachikulu. Chilankhulo cha pulogalamu ya JavaScript – zomwe zalembedwamo, momwe mungaphunzirire, ndalama zomwe amalipira: https://youtu.be/a76uc2FP4yE
Kodi padzakhala kufunikira kwa opanga mapulogalamu a JS mtsogolomo
Popanga ma intaneti, mapulogalamu sangachite popanda JS. Choncho, kutchuka kwake kudzawonjezeka. Malinga ndi zoneneratu, pazaka 10 zikubwerazi zidzakhala zofunidwa. [id id mawu = “attach_7682” align = “aligncenter” wide = “718”]
Mtengo wamtengo wapatali wamapulogalamu opanga ma avaScript ku Russia[/caption]
Ubwino ndi kuipa kwa JavaScript
Ndiye, kodi JS ndiyodziwika bwino? Zabwino:
- Gwiritsani ntchito pakukula kwa intaneti – JS ndi chida chofunikira chomwe chili ndi ntchito zonse zoyenera, zomangira, malaibulale.
- Kuthamanga ndi magwiridwe antchito – kukonza mwachangu zopempha kuchokera kumasamba kumapereka mwayi waukulu kuchilankhulochi. Amadziwanso momwe angagwiritsire ntchito gawo la pempho popanda kupanga zopempha kwa seva.
- Zachilengedwe zazikulu – kuchuluka kwa zida zopangidwa ndi ogwiritsa ntchito kwawonjezeka kwambiri ndipo zapezeka kuti zigwiritsidwe ntchito popanda zoletsa.
- Kusavuta kugwiritsa ntchito – zida zambiri zomwe zidapangidwa kuti zithandizire ntchito ya ogwiritsa ntchito, komanso mawonekedwe osavuta, zimapangitsa Javascript kukhala yosavuta kwambiri.
- Ziyeneranso kukhala chifukwa cha ma pluses achangu kuphunzira komanso kuzolowera chilankhulo .
[id id mawu = “attach_7676” align = “aligncenter” wide = “768”]
Ubwino ndi zovuta za Javascript[/ mawu] Monga chilankhulo china chilichonse, JS ndiyabwino – Java Script ilinso ndi zovuta zake:
- Kusowa kuwerenga ndi kukopera owona.
- “Kukhululukidwa kwa zolakwa” – ichi ndi chakuti chinenero chimadumpha zolakwazo ndipo sichiziwunikira, zimalembanso deta ina malinga ndi lingaliro lake. Zonsezi zikuwululidwa kale pa siteji ya ntchito ndi debugging.
- Kusowa thandizo lakutali.
- Imapezeka mosavuta kwa anthu olowa. Chifukwa cha kupezeka kwa chilankhulo, sikovuta kuyikamo code yoyipa yomwe imavulaza ogwiritsa ntchito.
[id id mawu = “attach_7665″ align=”aligncenter” wide=”722″]
Zida zatsopano ndi mwayi wogwiritsa ntchito javascript zimawoneka chaka chilichonse, ndipo zabwinozi sizingatsutsidwe[/caption] Komabe, omwe amagwiritsa ntchito chilankhulo amachikulitsa nthawi zonse m’mawu awo. gulu la ogwiritsa ntchito. Osakatula akuyenda bwino limodzi ndi ntchito ya JS.
Kukula kwamasewera a JavaScript
Anthu ambiri amaganiza kuti amagwiritsa ntchito injini ya C ++ kuti apange masewera abwino. Izi zitha kutchedwa zoona, koma osati zathunthu, chifukwa opanga mapulogalamu azilankhulo zosiyanasiyana amatenga nawo gawo pakupanga masewerawa. JavaScript nayonso ndi iyi. Mutha kupanga masewera mu Javascript, onse osavuta komanso ovuta. Pazochitika zonsezi, ukadaulo wa Canvas umagwiritsidwa ntchito, womwe umapereka code mu HTML5. Tsamba la HTML limagwiritsidwa ntchito kukhazikitsa chizindikiro cha canvas ndikulumikiza JS, komwe ntchito yonse imachitika. ID yofunikira ya canvas imafufuzidwa mu fayilo ya Java ndipo njira yogwirira ntchito nayo imasankhidwa. Apa zinafotokozedwa magawo oyambirira asanayambe kupanga masewerawo. Zamasewera angapo otchuka a JavaScript:
- OnOff – mumasewerawa muyenera kubweretsa wosewerayo mpaka kumapeto ndikudutsa zopinga ndi zowopsa zosiyanasiyana monga mipira ndi maenje. Ndi mulingo uliwonse womalizidwa, mudzalowa gawo latsopano. Masewerawa ali ndi magawo 25 ndipo ndizotheka kupanga zanu.
- Underrun ndi masewera okhala ndi zojambulajambula zokongola kwambiri za pixel komanso zomveka bwino. Mu masewerawa, muyenera kupita ku labotale powombera adani osasinthika. Muyenera kufika kumeneko kuti muyambitsenso machitidwe a labu.
- Super Chrono Portal wopanga – masewerawa ndi Super Mario woyambirira, momwe muyenera kudutsa milingo yolimbana ndi zopinga ndi adani. Mulingo uliwonse watsopano, womwe ulipo 30 pamasewera, umawonjezera makina atsopano ndi magwiridwe antchito. Pali wokonza mlingo.
- Offline Paradice ndi masewera othamanga pomwe vuto ndikungodumpha, kuthamanga ndikuphwanya zopinga. FPS pamasewera nthawi zonse imasungidwa pamlingo wapamwamba kwambiri, ndipo mawonekedwe a autosave akuthandizani kuti musunge kupita patsogolo kwanu. Masewerawa adzatsagana ndi nyimbo zosangalatsa, maziko okongola komanso makanema ojambula pamanja.
- Raven ndi masewera azithunzi momwe muyenera kukonza makamera kuti muzitha kuzonda zolengedwa zachinsinsi zomwe zili zowopsa mumdima. Yang’anirani iwo kuti angakupheni.
Maseŵera ochepa okha opangidwa m’chinenerochi ndi omwe afotokozedwa pano. Ndipotu pali ena ambiri.
Chifukwa Chomwe Mungakhalire Wopanga JS mu 2022 – Chifukwa Chake Muyenera Kuphunzira JavaScript, Perspectives
Ngati simungathe kuyankhabe funsoli mutawerenga zonse pamwambapa, ndiye kuti gawoli ndi lanu. Zifukwa zomwe JS ili dongosolo lophunzirira la 2022:
- Chilankhulochi ndi chofala kwambiri. Ndizodziwika osati pakati pa oyamba kumene, komanso pakati pa akatswiri.
- Gulu lalikulu la JS. Chilankhulochi ndi chodziwika bwino pazifukwa zake – zosintha zambiri zantchito yabwino nazo zimapangidwa ndi ogwiritsa ntchito chilankhulo ichi. Mwachitsanzo: npm ndiye woyang’anira phukusi wamkulu. Kuphatikiza apo, pali maupangiri ambiri a Java pa intaneti okuthandizani kuti muyambe. [id id mawu = “attach_7670″ align=”aligncenter” wide=”723″] Mutha kuphunzira Java Script mumasewera[/caption]
- Java ndi chilankhulo cha asakatuli. Zachidziwikire, pali analogue yake ya WASM, koma ngakhale sizokwanira kudutsa Java posachedwa. Java ndiyofunikira kwa opanga mawebusayiti.
- Liwiro ndi mphamvu. Malo ambiri otchuka amachokera ku Java, zomwe zimapindulitsa kwambiri. Amakhala ndi liwiro komanso magwiridwe antchito, amawononga ndalama zochepa kwa eni ake, komanso amapangidwa ndikuthamanga mwachangu.
[id id mawu = “attach_7666” align = “aligncenter” wide = “700”]
Zilankhulo 15 zapamwamba kwambiri malinga ndi GitHub[/caption]
Kugulitsa maloboti ndi njira mu JavaScript
Ndizofunikira kudziwa kuti Java imagwiritsidwa ntchito osati pakupanga mawebusayiti ndi masewera okha, komanso kuyambitsa
ma robot amalonda . Kuti muchite izi, Java Script ili ndi zonse zomwe mukufuna:
- Zizindikiro zaukadaulo zomwe zingapezeke pagulu la anthu.
- Tinkoff library invest-openapi-js-sdk.
- Tsopano tiyeni titenge njira yomalizidwayo ngati template yoti tisinthire tokha. Template idzakhala njira yosavuta kwambiri ya 2 SMA.
- Tiyeni tikonze njira. Kwa izi, genetics idzagwiritsidwa ntchito. Kuti muchite izi, muyenera laibulale ya geneticalgorithm.
[id id mawu = “attach_7679” align = “aligncenter” wide = “811”]
Njira yopangira mapulogalamu ndi yovuta komanso yaminga[/ mawu] Pogwiritsa ntchito Java Script ndi malaibulale okhudzana ndi zomangira, ngakhale Junior JS programmer-trader akhoza kulemba loboti yosavuta yogulitsa, ndikuyikonza panjira. Ma nuances ambiri omwe akufunika kuwongolera adawonekera pamodzi ndi kusintha pamsika. Ndondomekoyi itakonzedwa molingana ndi ndondomekoyi: Kuyembekezera masamu = Kutheka kwa phindu x Kupindula kwapakati – Kutheka kutayika x Kutayika kwapakati. Kenako pamabwera ntchito ndi code yomwe mawonekedwe amapangidwira. Mawonekedwewa adzadzazidwa kuti akhazikitse magawo omwe algorithm idzagwira ntchito. Pankhani ya kusankha kupanga loboti yogulitsa pogwiritsa ntchito ma genetic, muyenera kuthamanga ndikudzaza ma code angapo a robot iyi ndikuyamba kuwayesa, ndiye, pozindikira zofooka zawo, phatikizani zopambana kwambiri ndipo mutha kuchita izi nthawi zambiri momwe mungafune, chotsatira chilichonse chidzathana ndi ntchito yake bwinoko, ndikusankha magawo a fastSMAPeriod ndi slowSMAPeriod nthawi, komanso kuyimitsa ndi amatenga. Pamlingo uwu, mutha kupanga dongosolo lazamalonda lomwe lingagwire ntchito pamsika. JavaScript imachita izi bwino kwambiri. Chifukwa chiyani Javascript ndi yotchuka kwambiri, ndi bwino kuphunzira chinenero cha JS: https://youtu.be/3kV1ZVM3KGU M’nkhaniyi, mwaphunzira za maonekedwe a JS, ubwino wake ndi zovuta zake. [id id mawu = “attach_7677” align = “aligncenter” wide = “1200”] komanso mapazi ndi michira. Pamlingo uwu, mutha kupanga dongosolo lazamalonda lomwe lingagwire ntchito pamsika. JavaScript imachita izi bwino kwambiri. Chifukwa chiyani Javascript ndi yotchuka kwambiri, ndi bwino kuphunzira chinenero cha JS: https://youtu.be/3kV1ZVM3KGU M’nkhaniyi, mwaphunzira za maonekedwe a JS, ubwino wake ndi zovuta zake. [id id mawu = “attach_7677” align = “aligncenter” wide = “1200”] komanso mapazi ndi michira. Pamlingo uwu, mutha kupanga dongosolo lazamalonda lomwe lingagwire ntchito pamsika. JavaScript imachita izi bwino kwambiri. Chifukwa chiyani Javascript ndi yotchuka kwambiri, ndi bwino kuphunzira chinenero cha JS: https://youtu.be/3kV1ZVM3KGU M’nkhaniyi, mwaphunzira za maonekedwe a JS, ubwino wake ndi zovuta zake. [id id mawu = “attach_7677” align = “aligncenter” wide = “1200”]
JavaScript ndiye mzimu wa tsambali [/ mawu] Tsopano mutha kudziwa tsogolo lanu ngati mutayamba kupanga mapulogalamu m’chinenerochi, ndipo mutaphunzira ziyembekezo zake ndi kuchuluka kwake komwe kukufunika, tsogolo lanu lidzakhala lopambana kwambiri, ndipo luso la mapulogalamu lidzakhala lopambana. pakufunika.