Ramziddin — Dasturlash haqida
1.99K subscribers
297 photos
29 videos
202 links
Ingliz tilida kanalim – @ramzcoder
Ramzcoder community – @ramzcodercom
Instagram — instagram.com/ramzcoder
Programming emoji pack – t.iss.one/addemoji/ramzcoder
Download Telegram
Mana, bu ancha yaxshiroq chiqdi. Servis nomini “Mr. Telechat” qo’ymoqchiman

Your telegram support bots companion
👍11🗿7
This media is not supported in your browser
VIEW IN TELEGRAM
👍5
This media is not supported in your browser
VIEW IN TELEGRAM
👍3🔥1
Ramziddin — Dasturlash haqida
Tajriba uchun yangi hobby project boshlamoqchiman. G'oya: jonli qollab-quvvatlash telegram bot yaratish uchun servis. Analog: @livegrambot-ga o'xshagan. @livegrambot-dan farqi — bu servis SPA web app bo'ladi. Maqsad: bot-ni boshqarish uchun qulay va oson…
Salom dasturchilar!

Kechadan beri AWS bo'yicha Cloud Practicioner Essentials degan treningi ko'rvoman.

Man uchun AWS doim nimadir juda qiyin va chunarsiz tuyulgan, lekin treningi juda chunarli ekan.

Masalan EC2 haqida eshitganman, va boshida bu proyekti EC2-da qilishi haqida o'ylavotudim, lekin treningi ko'rib va Chat-GPT 4 bilan suhbatlashib ancha yaxshiroq usullari bor ekan.

Hozir esa EC2 haqida bir nechta narsa o'rgandim, EC2 5 turli type-lar bor.

- General purpose (manimcha shu proyektimga to'g'ri keladi o'ylagan edim)

- Compute optimized (CPU intensive task-lar uchun, masalan batch processing qilishga)

- Storage optimized (storage intensive task-lar uchun, masalan distributed file system uchun)

- Memory optimized (to'g'ri chungan bo'lsam RAM kere bo'lganida shu to'g'ri keladi, masalan database-lar bilan ishlaganizda)

- Va nihoyat — Accelarated computing (grafika va floating point numbers-lar bilan ishlash uchun)

Trening zo'r ekan, ko'rishga tavsiya qilaman AWS-ni o'rganmoqchi bo'lsez
👍4
Azgina vaqt paydo bo'lgani uchun parallel ravishda JavaScript Design Patterns kitobini o'qivoman AWS trening bilan birga.

Va ha, anu tehnikadan to'liq foydalanvoman. O'rganish jarayoni juda sekinlashtirar ekan, lekin ancha narsani chuqur o'rganishga va eslab qolishga yordam berar ekan.
👍11
Kecha backend-chi hamkasbim AWS o'rganvotganimi ko'rib mani mahtab qo'ydi 😎

Backend-chi sizi mahtasa bu juda yaxshi, bolla! 😁

Ismi Misha (Mixail), ishini juda yaxshi biladi. Bilimlariga havas qilaman, oldin Android-chi sifatida ishlab hozir Backend-da ishlidi. Bitta AWS certification o'tgan, hozir ikkinchisiga tayyorlanvotti (oson emas).

O'zini Миша Talks degan kanali bor. Obuna bolishga qattiq maslahat beraman, chunki man o'zim undan hali ko'p narsa o'rganmoqchiman.

Backend-ni o'rganish.

Bir taraptan backend-ni ham o'rgangim keladi, lekin fokus frontend-da ushabturishim shart, shuning uchun hozircha backend dunyosidan faqat AWS sekin o'rganib yurvuraman.

Anu "Mr. Telechat" proyekt.

Birinchidan, nimaga 🗿 qo'yiptashadila??? 😂 Ikkinchidan, bu proyekti nomi shunchaki birinchi bo'lib miyamga keldi va logotipi shunaqa tassavur qildim. O'tirib vaqtimi ketqazgim kemadi.

Xullas, ha NestJS-da qilmoqchiman, lekin qanchali bu to'g'ri tanlov? Manimcha frontend dunyosiga yaqinroq narsa (Next.js) tasnlashim kere, chunki baribir...man frontendchi man va ishimi chuqur bilishim shart!

Azgina o'ylab ko'raman, keyinroq yozaman nima qilishimi...
👍8
Forwarded from Миша Talks
Hey guys! it would be nice if the Russian-speaking audience would watch my content too 🪨

Maybe Ramz and I should make a joint content (in English or in Russian?). Sorry, I don't know Uzbek yet😅 We could record a podcast or get together in Discord as a group and do some networking with you 😎 I have extensive experience in backend development, mobile and a bit of frontend, managed fullstack projects and design - we will have something to talk about, share experience🙌
Please open Telegram to view this post
VIEW IN TELEGRAM
👍12💯3
😎
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣27😁4👍1
React-ni kodi osonlashtirish va re-render jarayoni tezlashtirish uchun vositalar 👇

https://dev.to/mohammadfaisal/top-7-libraries-for-blazingly-fast-reactjs-applications-38dj
9🔥2👍1
😦 O’zbekistonda bitta yaxshi ishlidigan servis bormi?

Bir nechi kun UzMobile dan e-sim bilan muammo bo’votti, shunchaki antenna yo’q bo’lib qovotti. Manga telefon qilib tushibomayapti.

Podderjkasiga telefon qilib ko’rila…tili tanlaganizdan keyin ham “Barakalli Million” haqida 2-ta tilda 4 daqiqa tinmastan robot gapiradi. Eshitib turishga majbursiz, muammo shundaki… 🤣

Bazida telefoni robot qo’yib qo’yadi, boshidan telefon qilasiz va boshidan eshitasiz. 😢

Bugun MahmoodKabob ga buyurtma qoldirdim, avtomat ravishda Payme bilan to’lovga havola yuborilmidi, birinchi menejer telefon qiladi. Muammo shundaki, menejer manga 20 daqiqadan keyin telefon qildi 😱 Buyurtma esimdan chiqiboldi.

MahmoodKabob oldin yaxshi ishlagan, nimagadir PuzzleBot-ga o’tqazishdi…yaxshi ishlavotgan narsani.

Hop, mayli. Ungacha “Яндекс Еда” dan ovqat zakaz qildim. Zakaz boshqa joyga bordi, pulim kuydi. Mayli, KFC zakaz qilarman. Keldi zakaz, faqat to’liq emas. 😩

Yandex Taxi haqida gapirmimanam.

Tizim yo’q, sifat yo’q. Dasturchilani aybi yo’q, shunchaki tadbirkorlar biznes tizimini eblashmadi. Chunaman, balki qiyin, lekin asabga teyadi.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍15
Mayli, shunaqa oddiy muammolar bo’lsin. Hammamiz sog’miz, uyimiz bor.

Lekin baribir surishga harakat qilaman 😏
Please open Telegram to view this post
VIEW IN TELEGRAM
👍14😁3🤩1
Ramziddin — Dasturlash haqida
Kecha backend-chi hamkasbim AWS o'rganvotganimi ko'rib mani mahtab qo'ydi 😎 Backend-chi sizi mahtasa bu juda yaxshi, bolla! 😁 Ismi Misha (Mixail), ishini juda yaxshi biladi. Bilimlariga havas qilaman, oldin Android-chi sifatida ishlab hozir Backend-da ishlidi.…
Xullas, ha NestJS-da qilmoqchiman, lekin qanchali bu to'g'ri tanlov? Manimcha frontend dunyosiga yaqinroq narsa (Next.js) tasnlashim kere, chunki baribir...man frontendchi man va ishimi chuqur bilishim shart!

Azgina o'ylab ko'raman, keyinroq yozaman nima qilishimi...


Ha, Next.js-da qivuraman. Next.js-ni app directory-gida cache-larini yaxshi hali chunvolamagnman.

NestJS tanlasam frontend-da fokus ushabturish maqsadiga to'g'ri kelmidi. Bitta React ekosistemasi bo'gani bilan yaxshiroq manimcha.

Balki NestJS-da keyinroq qilaman.

Mayli, sekin proyektni boshlivuraman.
😁43🤣10👍4
👨‍💻 Man eng yaxshiko’rgan dokumental film:

AlphaGo suniy intellekt Fan Hui “Go” jaxon chempionini yutganini haqida.

Bu Oktyabr 2015 yilda bo’lgan, adashmasam u payt ChatGPT
ham va unga o’xshagan LLM yo’q edi.

Ikkinchi marta ko’rmoqchiman.

Agar vaqtiz bo’lsa, ishlavotganizda ham ko’rishga kotta maslahat beraman.

Havola (Ingliz tilida)
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥7👍1😨1
Shunaqa ⛈️ yoqadi, kam bo’lgani uchun
113
Bram Moolenaar, 👩‍💻 yaratuvchisi, 3 Avgustda 2023 yilda (62 yoshda) vafot etdi.

https://en.m.wikipedia.org/wiki/Bram_Moolenaar
Please open Telegram to view this post
VIEW IN TELEGRAM
😢121😭1
Reducer yaxshiroq chunishga qaror qildim! To'g'risi, borligini sababini xech chumaganman 😬

- Nimaga side effect qilish mumkin emas reducer ichida?
- Nima uchun o'zi reducer kere?
- Reducer shuncha boilerplate kodi bilan foydasi nima?

https://react.dev/learn/extracting-state-logic-into-a-reducer

Yangi react docs-dagi maqola zo'r chuntiriberdi, ichidi mashqlariga gap yo'q! 🔥 Manimcha bitta kotta komponenti refactor qilishim mumkin.

Lekin bitta mashqdagi narsani unchali chunmadim va balki @Toshkentov_U chuntiriberadilar 👇

Mashqda drafts feature qo'shish kere edi, man qilgan solution: xech qanqa public props-larni o'zgartirmadim, komponentlar (App) drafts haqida bilishmidi va message-dan foydalanishi davom etishadi.

To'g'ri, boshidan initial state-ga draft qo'shish kere, manga o'zimga bu narsa yoqmadi, lekin...

react.dev dagi solution: message -> messages array-ga aylantirish va App komponenti refactor qilish. Bilmadim.

Kimda vaqt bo'lganda react.dev dagi reducer mashqlarini qilib ko'rishga maslahat beraman va tepadagi fikri haqida o'ylab koring...
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4
🤖 GPT-4 fikri

Both solutions, the one from react.dev and your solution, address the problem at hand effectively, but they do it in slightly different ways. Let's discuss the key differences and their implications:

1. State Structure:
- react.dev solution: Uses a messages object to keep track of all messages, including drafts, for each contact. The selectedId is used to index into this object to retrieve the current message.
- Your solution: Uses a combination of the message field for the currently selected contact's message and a drafts object to store the draft messages for all contacts.

2. State Duplication:
- In your solution, there's some level of data duplication because the message for the currently selected contact is both in the message field and in the drafts object. This introduces the potential for inconsistencies if not handled carefully.

3. Component Independence:
- Your solution ensures that the components remain unaware of the drafts. This encapsulation makes the components simpler but comes at the cost of increased complexity in the reducer logic.

4. Scalability and Maintenance:
- react.dev solution: As the number of features grow (e.g., adding message history, attachments, etc.), having a unified structure like messages can make it easier to extend because you're always working with a consistent data model.
- Your solution: While keeping the components unaware of the drafts can be seen as an advantage, it can become a limitation if you need to add features that require components to be aware of the drafts or other aspects of messaging. The duplication also poses a risk for potential bugs if not handled carefully.

Which is more correct?
- There's no absolute "correctness" in design; it depends on the context. Both solutions address the core problem. The react.dev solution is more streamlined in terms of state structure, while yours focuses on component encapsulation.

Which is more scalable?
- The react.dev solution seems more scalable due to the uniformity of the messages structure. It's easier to extend a single, consistent structure than to manage parallel structures.

Which is more maintainable?
- The react.dev solution is slightly more maintainable due to the lack of data duplication. Maintenance becomes simpler when there's a single source of truth for a given piece of data.

Conclusion:
While both solutions are viable, the react.dev solution has a slight edge in terms of scalability and maintainability due to its uniform state structure and absence of data duplication. Your solution emphasizes component encapsulation, which can be advantageous in certain contexts but introduces added complexity in the reducer. Consider the future features and needs of the application to determine the best fit for your context.
Please open Telegram to view this post
VIEW IN TELEGRAM
1
Manimcha react.dev-ga yutqazdim 😦
Please open Telegram to view this post
VIEW IN TELEGRAM