Ertaga(shanba) soat 21:00(uzb) ishdagi jarayonlar haqida jonli suhbat reja qilyapmiz, in shaa Alloh. Mavzu qiziq bo'lganlarni @mayoquz da kutib qolamiz.
https://t.iss.one/mayoquz/3509
https://t.iss.one/mayoquz/3509
Telegram
MJ
Ertaga soat 21:00 da dasturchining ish joyidagi hayotining boshidan oxirigacha yashab o'tishi mumkin bo'lgan davrlari haqida gaplashamiz.
Qisqaroq sarlavhasi - "Keldim. Ishladim. Kettim".
O'zi dasturchi ish joyida nimalarni boshidan o'tkazishi mumkinligiβ¦
Qisqaroq sarlavhasi - "Keldim. Ishladim. Kettim".
O'zi dasturchi ish joyida nimalarni boshidan o'tkazishi mumkinligiβ¦
π21π₯5
14 Brutal truths you need to hear as a CEO:
1- You donβt have a βworking from homeβ issue; you have a trust issue.
2- What you call βprocessβ is usually unnecessary bureaucracy that slows down decision-making and reduces creativity.
3- Prioritizing short-term profits over employee well-being is a recipe for long-term disaster.
4- The worst time to offer a raise is when someone has already handed in their notice.
5- If your entry-level job requires experience... then itβs not an "entry-level" job. Itβs a normal job paid poorly.
6- Most meetings are useless especially if everyone's secretly checking their email under the table.
7- Employee retention isn't just about salary; it's about respect, recognition, and opportunities for growth.
9- People donβt just quit jobs, they quit managers.
10- Company values on the wall mean nothing if they're not reflected in everyday actions.
11- Replacing someone will cost you more than to pay them what they were worth in the first place.
12- Trust isn't built through surveillance; it's built through transparency and mutual respect.
13- Your "urgent" tasks aren't as urgent as you think; learn to prioritize effectively.
14- Empty promises of promotions and raises will lead to resentment, not loyalty.
Remember:
If your team is your #1 priority,
Theyβll make your business theirs.
Source: LinkedIn
1- You donβt have a βworking from homeβ issue; you have a trust issue.
2- What you call βprocessβ is usually unnecessary bureaucracy that slows down decision-making and reduces creativity.
3- Prioritizing short-term profits over employee well-being is a recipe for long-term disaster.
4- The worst time to offer a raise is when someone has already handed in their notice.
5- If your entry-level job requires experience... then itβs not an "entry-level" job. Itβs a normal job paid poorly.
6- Most meetings are useless especially if everyone's secretly checking their email under the table.
7- Employee retention isn't just about salary; it's about respect, recognition, and opportunities for growth.
9- People donβt just quit jobs, they quit managers.
10- Company values on the wall mean nothing if they're not reflected in everyday actions.
11- Replacing someone will cost you more than to pay them what they were worth in the first place.
12- Trust isn't built through surveillance; it's built through transparency and mutual respect.
13- Your "urgent" tasks aren't as urgent as you think; learn to prioritize effectively.
14- Empty promises of promotions and raises will lead to resentment, not loyalty.
Remember:
If your team is your #1 priority,
Theyβll make your business theirs.
Source: LinkedIn
π27π6β€4π₯2
Ish beruvchilarga maslahat
Hech qachon mutaxassisni budjetiz bo'la turib o'zi loyiq bo'lgan oylikdan past narxga ishga olishga urinmang. Bu long-termda ishlamaydi. Bazi odamlar oylik oshirishni so'rashni xush ko'rishmaydi. Oqibatda bir necha oydan keyin boshqa joydan yuqoriroq taklif olsa uni qabul qilib sizni tark etishadi. Yangi hodim topish va uning adaptatsion harajatlari siz o'ylagandan ancha ko'p.
Hech qachon mutaxassisni budjetiz bo'la turib o'zi loyiq bo'lgan oylikdan past narxga ishga olishga urinmang. Bu long-termda ishlamaydi. Bazi odamlar oylik oshirishni so'rashni xush ko'rishmaydi. Oqibatda bir necha oydan keyin boshqa joydan yuqoriroq taklif olsa uni qabul qilib sizni tark etishadi. Yangi hodim topish va uning adaptatsion harajatlari siz o'ylagandan ancha ko'p.
π₯65π16β€1π1
Transitive dependencies
Proyektda
#tips_and_tricks
Proyektda
dependencies
yoki devDependencies
ichida bo'lmay turib biror paketning nega o'rnatilganini bilmoqchi bo'lsangiz npm why
komandasini ishlatishingiz mumkin.#tips_and_tricks
π35
JavaScriptda string qiymatlar xotirada qaysi encodingda saqlanadi?
Anonymous Quiz
30%
ASCII
52%
UTF-8
11%
UTF-16
7%
UTF-32
π₯12π1
Quyidagilardan qaysi biri false qaytaradi?
Anonymous Quiz
23%
typeof null === βobjectβ
8%
[] instanceof Object
25%
0.1 + 0.2 !== 0.3
44%
({}) == ({})
π₯22π1
JavaScriptda sonlarning butun va kasr qismi uchun nechtadan bit ajratiladi?
Anonymous Quiz
58%
Butun 32, kasr 31
21%
Butun 48, kasr 15
12%
Butun 53, kasr 10
9%
Butun 56, kasr 7
π9π1
Quyidagilardan qaysi biri true qiymat qaytaradi?
Anonymous Quiz
6%
12 < 3
39%
β12β < 3
46%
β12β < β3β
9%
Bilmayman
π11π₯5π2β€1
Qaysi konstruksiyada strict mode implicit yoqilmaydi?
Anonymous Quiz
22%
Module
23%
Class
38%
Arrow function
17%
Bilmayman
π8π₯2
Quyidagilardan qaysi birida vaqt murakkablik (time complexity) O(n)ga teng?
Anonymous Quiz
17%
object.prop
49%
Array.includes(element)
17%
Set.has(element)
18%
Map.get(key)
π4β€1π1
ESM modullar browserda "by default" (tarjimasini bilganlar yozvorishsin) kech yuklanadi (deferred).
Biz bilamizki, browserda script taglar kech yuklanishi uchun defer atribut berishimiz kerak. Bo'lmasa browser script tagni uchratishi bilan html processingni tohtatib scriptni yuklab(fetch) va ishlatish(execute)ni boshlaydi. Bu oz navbatida undan keyin kelgan html elementlarning DOMda topilmasligiga sabab boladi. Agar scriptimizda type=module bolsa defer avtomat tarzda yoqiladi.
manba: https://v8.dev/features/modules#defer
#did_you_know
Biz bilamizki, browserda script taglar kech yuklanishi uchun defer atribut berishimiz kerak. Bo'lmasa browser script tagni uchratishi bilan html processingni tohtatib scriptni yuklab(fetch) va ishlatish(execute)ni boshlaydi. Bu oz navbatida undan keyin kelgan html elementlarning DOMda topilmasligiga sabab boladi. Agar scriptimizda type=module bolsa defer avtomat tarzda yoqiladi.
manba: https://v8.dev/features/modules#defer
#did_you_know
v8.dev
JavaScript modules Β· V8
This article explains how to use JavaScript modules, how to deploy them responsibly, and how the Chrome team is working to make modules even better in the future.
π22π₯6
VSCodeda importlar va xatolarni tuzatish
Skrindagi config vscodeda importlar bilan ishlashni qulaylashtiradi, yozilgan amallar file saqlanayotganda yozilgan ketma-ketlikda bajariladi:
- Avval ishlatilmagan importlar olib tashlanadi;
- Keyin yetishmaydigan importlar qoshib chiqiladi (tekshirish kerak bolishi mumkin, agar birdan kop import bolsa malum qoidalarga ko'ra birinchisi tanlanadi);
- Keyin importlar malum qoidalarga qarab sort qilinadi;
- Oxirida linter (eslint, stylelint...) xatolar tuzatiladi.
PS:
Skrindagi config vscodeda importlar bilan ishlashni qulaylashtiradi, yozilgan amallar file saqlanayotganda yozilgan ketma-ketlikda bajariladi:
- Avval ishlatilmagan importlar olib tashlanadi;
- Keyin yetishmaydigan importlar qoshib chiqiladi (tekshirish kerak bolishi mumkin, agar birdan kop import bolsa malum qoidalarga ko'ra birinchisi tanlanadi);
- Keyin importlar malum qoidalarga qarab sort qilinadi;
- Oxirida linter (eslint, stylelint...) xatolar tuzatiladi.
PS:
.vscode/settings.json
fileni gitga qoshsa teamdagi hamma vscode foydalanuvchilariga foydali boladiπ41π₯11π2β€1
AbortSignal va AbortController
AbortSignal qabul qiladigan APIlar:
- Fetch
- EventTarget API
- ReadableStream/WritableStream
- WebSocket
-
-
-
AbortSignal/AbortController
interfacelari async operasiyalarni tohtatish uchun ishlatiladi. Masalan, juda ko'p ishlatiladigan fetch()
funksiya RequestInit
parameter(object)ga signal
nomli property kutadi (optional) va biz bu propertyga AbortSignal
instance berishimiz mumkin. Va keyinroq bu AbortController
instancening .abort()
methodini chaqirib requestni tohtatishimiz mumkin.AbortSignal qabul qiladigan APIlar:
- Fetch
- EventTarget API
- ReadableStream/WritableStream
- WebSocket
AbortSignal
instance odatda AbortController
da saqlanadi, uni new AbortController()
qilib yaratamiz, lekin uni AbortSignal
static methodlari orqali ham yaratishimiz mumkin. Bular:-
AbortSignal.abort()
- Allaqachon abort qilingan instance yaratadi.-
AbortSignal.any()
- Parameterga AbortSignallardan tashkil topgan iterable oladi va ulardan biri abort bolganda bu ham abort boladi.-
AbortSignal.timeout()
- Parameterda berilgan millisekund qiymatda avtomat abort boladigan instance qaytaradi (Backenddan kutilayotgan javobga timeout qoyish uchun juda qulay)π₯19π12β€4
Keyingi post yoki videolar nima haqida boβlishini hohlardiz?
Anonymous Poll
25%
JavaScript
40%
TypeScript
17%
React
19%
Testing
β€3π1π₯1