A cikin wannan kwas, za ku koyi yadda ake tsara shirye-shirye da kyau a cikin Python.

Za a ɗauke ku daga matakai na farko a cikin harshe zuwa nazarin mafi haɓakar ra'ayoyi, ta hanyar gajerun bidiyoyi masu yawa, littattafan rubutu da motsa jiki na kima.

Python yana da ɗakunan karatu da yawa waɗanda wataƙila sun riga sun yi abin da kuke so. Kuna iya gina gidan yanar gizo tare da Django, yin lissafin kimiyya tare da NumPy da pandas, da ƙari. Koyaya, don cikakken amfani da duk damar wannan yanayin mai albarka, dole ne ku sami zurfin fahimtar harshen.

Harshen Python yana ƙarfafa tsara shirye-shirye masu ƙwarewa waɗanda suka dogara da tsarin tsarin halitta da kuma ƙaƙƙarfan ra'ayi na tushe waɗanda ke sauƙaƙe shirye-shirye. Yana da mahimmanci a sami kyakkyawar fahimtar waɗannan ra'ayoyin domin a hanzarta rubuta shirye-shirye masu tasiri waɗanda suke da sauƙin fahimta da kiyayewa, waɗanda ke yin cikakken amfani da damar harshen.

Za mu rufe wannan a duk fannoni na yaren, daga nau'ikan tarihi zuwa classes na Meta, amma za mu ƙididdige shi a kusa da ainihin Python:

- manufar bugawa mai ƙarfi da nassoshi masu rabawa waɗanda ke ba da damar sauri, sauƙin faɗaɗawa da ingantaccen shirye-shiryen ƙwaƙwalwar ajiya;
- manufar sararin suna wanda ke ba da damar tsara shirye-shirye mafi aminci, rage girman hulɗar da ba a so tsakanin sassa daban-daban na shirin;
- ra'ayin iterator wanda ke ba da damar shirye-shirye na dabi'a da fahimta, inda binciken fayil kawai ke ɗaukar layin lamba ɗaya;
- manufar vectorization don cimma kyakkyawan aiki a aikace-aikacen kwamfuta na kimiyya.

Ci gaba da karanta labarin akan shafin asali →

KARANTA  Jeff Weiner - Gudanar da tausayi