TGViewer
Channel Public Channel
Dev thinking loud

Dev thinking loud

@dev_thinking_loud

Dasturlash boyicha video darslar, subyektiv fikrlar, kundalik misollar, bahsli mavzular.

Youtube kanal: https://www.youtube.com/@ravshansbox

Muallif: @ravshansbox
Subscribers
1.61K
Photos
123
Videos
8
Links
328

Showing posts older than #274 · Back to latest

Older Posts 19 shown
Post #271 2.6K
useReducer() + RTK

React useReducer() API bilan RTK createSlice() APIni birga ishlatish mumkin.
- Bu nima beradi? useReducer() local stateni, RTK createSlice() esa concise codebaseni (qisqaroq kod) beradi. Va istalgan vaqtda local stateni global statega promote qilish imkonini beradi.
- Tajribada uchraydi mi? Hech uchratmadim, lekin bu yomon degani emas. Sinab koruvchilar welcome 😉

#tips_and_tricks

@dev_thinking_loud
  • 👍 20
  • 🔥 4
Post #270 2.53K

Forwarded from QURAN.UZ

🌘 ЖУМА МУБОРАК!

Расулуллоҳ соллаллоҳу алайҳи васалламга кўп-кўп салавот айтиб, дуо ижобат бўладиган соатни топиш барчамизга насиб қилсин!

#жума

@quranuz_kanali

Telegram | Instagram | Youtube | Facebook
  • 👍 25
  • ❤ 10
  • 🔥 3
Post #264 2.4K
Comma operator

React bilan ishlayotganda bazan JSX ichidagi expressionning qiymatini tez log qilish kerak bo'lib qoladi. Agar component biroz katta bolsa u expressionning qiymatini kelgan yoki elon qilingan joyiga scroll qilmasdan turgan joyida korish mumkin. Buning uchun JavaScriptdagi comma operatorni ishlatish mumkin. Unda expressionlar comma (,) bilan ajratib chiqiladi va bracelarga o'raladi. Bu expression hisoblanadi va u comma bilan ajratilgan expressionlarning ohirgisiga evaluate boladi. Masalan: (1,2,3) === 3

#tips_and_tricks

@dev_thinking_loud
  • 👍 37
  • 🔥 7
Post #258 2.34K
"Build your own vercel appwrite"

AppWriteni o'ziz o'z serverizda to'liq host qilsangiz bo'lar ekan, juda yoqdi. Hozircha funkciyalari juda ko'p emas, lekin asosiylari bor: web, auth, database, functions, messaging, storage.
Readmedagi bir qator docker run ... komanda bilan ko'tarildi.
O'zi infrastruktura setup va maintain qilishga imkoni yo'qlar uchun esa hosted varianti ham bor (appwrite cloud), narxlari ham uncha qimmat emas.

https://github.com/appwrite/appwrite

@dev_thinking_loud
GitHub GitHub - appwrite/appwrite: Appwrite® - complete cloud infrastructure for your web, mobile and AI apps. Including Auth, Databases… Appwrite® - complete cloud infrastructure for your web, mobile and AI apps. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime and more - appwrite/appwrite
  • 👍 16
  • 🔥 2
  • ❤ 1
Post #257 2.27K
Post #255 1.91K
CSS logical properties

"CSS logical property"lar multi-directional web applarda juda qulay styling mexanizm. Bunda top/bottom, left/right o'rniga block/inline, start/end kalit so'zlari ishlatiladi. Bularning farqi writing-mode o'zgargan paytda (LTRdan RTLga masalan) tomonlar avtomatik ravishda o'zgaradi, xuddi flexboxda direction o'zgargandagi kabi. Agar appimiz multi-directional bo'lmasa ham buni ishlatishni tavsiya qilaman, chunki bugun bo'lmasa ertaga ehtiyojimiz tushganda tajribamiz bo'ladi. Malumot uchun tailwind 3.3da buni support qilish uchun klasslar qoshildi.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values

https://web.dev/learn/css/logical-properties

https://css-tricks.com/css-logical-properties-and-values/

https://tailwindcss.com/blog/tailwindcss-v3-3#simplified-rtl-support-with-logical-properties

@dev_thinking_loud
MDN Web Docs CSS logical properties and values - CSS | MDN The CSS logical properties and values module defines logical properties and values that can control layout through logical rather than physical direction and dimension mappings. Logical properties define direction‐relative equivalents to their corresponding…
  • 👍 10
  • 🔥 5
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →