TypeScript first steps | environment installation | tsconfig file | ilk addımlar və kodlar #kody_az
Dərs haqqında
TypeScript-ə ilk addım atanda ən vacib şey onun JavaScript üzərində qurulduğunu başa düşməkdir, yəni sən əslində bildiyin JavaScript-i daha güclü və təhlükəsiz formada yazmağa başlayırsan. İlk mərhələdə məqsəd tiplərin nə olduğunu və niyə faydalı olduqlarını anlamaqdır. Tiplər kodu daha oxunaqlı edir və səhvləri hələ proqram işləməmişdən əvvəl tapmağa kömək edir. TypeScript-də işləməyə başlayanda layihənin mərkəzində tsconfig faylı dayanır. Bu fayl kompilyatorun sənin kodunu necə oxuyacağını və necə JavaScript-ə çevirəcəyini müəyyən edir. Tsconfig vasitəsilə hansı qovluqların mənbə, hansının çıxış qovluğu olduğunu tənzimləyirsən. Orada həmçinin kodun nə qədər sərt qaydalarla yoxlanacağını da seçə bilirsən. Bu ayarlar sayəsində sən ya daha rahat, ya da daha ciddi tip yoxlaması ilə işləyə bilərsən. İlk vaxtlar məqsəd tsconfig-i sadə saxlamaq və tədricən daha güclü qaydalara keçməkdir. Beləliklə, TypeScript-i öyrənərkən həm dilin özünü, həm də onu idarə edən tsconfig məntiqini paralel şəkildə anlamaq ən düzgün yoldur.
====
When you take your first steps into TypeScript, the most important thing to understand is that it is built on top of JavaScript, so you are not starting from zero but improving what you already know. At the beginning, the main goal is to understand what types are and why they are useful. Types make your code clearer and help you catch mistakes before your program even runs. As you start working with TypeScript, the tsconfig file becomes the heart of your project. This file controls how the compiler reads your code and how it turns it into JavaScript. Through tsconfig, you decide which folders contain your source files and where the final output should go. It also lets you choose how strict the type checking should be. These settings allow you to work either in a more flexible way or with stronger safety rules. In the early stages, it is best to keep tsconfig simple and not overload yourself with too many options. Step by step, you can make the configuration stricter as you become more confident. In this way, learning TypeScript means understanding both the language itself and the logic behind tsconfig at the same time.
#kody_az #kodyaz #js #typescript #nodejs #es6 #ts #viral #viralcode #viralvideo #code #coder #azerbaycan #azerbaijan #baku #baki #programming #programmer #hazırlıq #hazirliq #kurs #kurslar #course #courses #online #onlinecourses