TGViewer
Channel Public Channel
Diyorbek.dev | 👨🏻‍💻

Diyorbek.dev | 👨🏻‍💻

@diyorbekk_dev

Allohga taqvo qiling. Va Alloh sizga ilm beradi. [2:282]


Software engineer @ OctaneJS Core Team

Dasturchi, jiddiy, kamgap, oddiy inson


Òzim haqimda kòproq ma'lumot uchun: @Diyorbek_juraev_blog

Web sahifam: https://mrdiyorbek.uz/
Subscribers
381
Photos
299
Videos
35
Links
119

Showing posts older than #847 · Back to latest

Older Posts 19 shown
Post #846 168
   // Optimistically update the cache
queryClient.setQueryData(
[`tabs/${selectedOrganization?.id}`],
(oldData) => {
const newTab = { id: "temp", ...selectedNodeData };
return oldData ? [...oldData, newTab] : [newTab];
}
);

const { data } = await request("create-tab", {
method: "POST",
body: {
...selectedNodeData,
},
});


queryClient.setQueryData(
[`tabs/${selectedOrganization?.id}`],
(oldData) => {
const newTabsData = oldData
? [...oldData.filter((tab) => tab.id !== "temp"), data?.data?.tab]
: [data?.data?.tab];
return newTabsData;
}
);
  • 😡 1
Post #845 160
The less is better.

If you're not decreasing the codebase, then you have to increase your time spent on the codebase.
Of course, it's a liability. You gotta read it 10, 100, gazillion times to maintain it in the future.

More code, more tests.
More code, more stress.
More code, more build time on CI.
More code, more jira.
More code, more "who the fuck wrote that shit?"
More code, more "Oh, that was me wrote that shit."
More code, more spendings on AWS.
More code, more developers to maintain it.
More code, more bureaucracy.
More code, more boss wants to fire you.

More code, the less productivity.
More code, the less time with family.
More code, the less healthy life style.
More code, the less time on gym.
More code, the less time on your side-hustle.

The best code not written code at all.

- Do you need it in the first place?
- Are you doing the refactor for the sake of refactoring?
- Are you doing the refactor hyped about the new framework?
- Do you need that abstraction at all?
- Could you fix it by not adding 1 line of code but by removing 2 lines?

There are million ways you can waste time in real life.

Filling garbage in the garbage codebase to maintain that garbage in order to be proud of garbage amount is not one of them.

Think 10, 20 times, before you push it
. Do you need it?

@Diyorbekk_dev
  • 😡 1
Post #844 167
Open AI have announced GPT-4o with amazing some new features.

🤦‍♂ damn, it is so tough

@Diyorbekk_dev
  • ❤‍🔥 1
  • ⚡ 1
  • 😡 1
Post #843 172
Associativity

When a line of code has operators of the same precedence, an order needs to be established to execute the code. To do this, JavaScript uses Associativity.

Associativity is the order in which operators of the same precedence are parsed.

There are two types of associativity laws:

Left-associativity (left to right)
Right-associativity (right to left)



@Diyorbekk_dev
  • ❤‍🔥 1
  • ⚡ 1
  • 👍 1
  • 😡 1
Post #840 198

Forwarded from Najot Ta'lim

⚡️ Dasturlash orqali muvaffaqiyatli karyera boshlang

Siz ham dasturlash sohasini o'rganib, hozirda chet el kompaniyasida faoliyat yuritayotgan Diyorbek kabi yuqori natiajalarga erishmoqchimisiz?

Hoziroq «Najot Ta'lim» Dasturlash kursi uchun ro'yxatdan o'ting.

🔗 Ro'yxatdan o'tish

📞 78 888-9-888
  • 👍 4
  • 🔥 4
  • 🆒 2
Post #839 223
Educative platformasidan Javascript haqida o'rganishni boshladim. (Chuqurroq)

Module 3 : Javascript OOP

Article yozishni yana boshlayman insha'alloh. Patternlarni davom ettiramiz.

@Diyorbekk_dev
  • 🔥 4
  • ❤ 2
Post #838 269
Writing bad code feels fast. But it's an illusion.

The cost of writing bad code might be cheaper in the
beginning.

But over time, it slows you down more and more, making it
worth the effort to write clean code.

Quality costs less. Invest in quality today, win time
tomorrow.

@Diyorbekk_dev
  • ❤‍🔥 3
  • 👍 3
  • 🆒 1
Post #837 264
SERIUS SOLUTIONS 🛸 #INTERNSHIP #FOR #OFFER 👩‍💻 React.js Internship e'lon qilamiz ! Talablar: TypeScript bo'yicha amaliyot va Ingliz tili minimal B2 daraja! - Maosh amaliyotdan o'tganlar uchun kelishiladi! - 2024.04.21 gacha forma orqali topshirishingiz mumkin! - http…
Assalomu alaykum hammaga.

Toshkentdagi ishlayotgan kompaniyamda React.js Internship ga imkoniyat ochildi. Topshirib ko'rsangizlar bo'ladi.

Nasib birga ishlasak 😉

@Diyorbekk_dev
  • 👍 3
  • 🔥 3
Post #836 246

Forwarded from SERIUS SOLUTIONS 🛸

#INTERNSHIP #FOR #OFFER

👩‍💻 React.js Internship e'lon qilamiz !

Talablar: TypeScript bo'yicha amaliyot va Ingliz tili minimal B2 daraja!

- Maosh amaliyotdan o'tganlar uchun kelishiladi!

- 2024.04.21 gacha forma orqali topshirishingiz mumkin!


- https://forms.gle/vjM4RGZkGyZgjrY88
  • ⚡ 2
  • 🔥 2
Post #835 223
Post #834 178
This talk is a must-watch for every parent of young children.

@Diyorbekk_dev
  • 👍 4
  • 🔥 2
Post #833 221
I am leaving today. Take care of your Iman.

– Ramadan.

(C) Ozodbek

@Diyorbekk_dev
  • 💔 7
  • 👍 1
Post #832 256
Qishloqdan gapiramiz!

Qishloģimni havosi baribir boshqachada 😅

Bir qancha vaqt uydan ishlayman endi.

Svet òchmasinda ish qilib🤣

@Diyorbekk_dev
  • 👍 6
  • ❤‍🔥 2
  • 🤣 1
Post #831 228
Yaxshi kadr topish nimadan boshlanadi?

Yaxshi kadr topish doim muammo bollib kelgan. Men odatda suhbat boshida bir savol beraman, agar shu savolga javob bera olmasa, o'sha zahotiyoq suhbatni toxtataman.

Savol shuki: "Ish e'lonida kalit so'z nima edi?"
Tushuntirib bersam...

Odatda ish e'lon bergan paytimiz, e'lon orasiga bitta kalit
so'z qoldiramiz. Kalit so'z ishga umuman aloqasi

bo'lmasligi kerak, masalan, "qaymoq", "somsa, "spaghetti"

Suhbat paytida shu kalit soz nimaligini birinchi bollib
so'raymiz. Nimaga?

Sababi oddiy bir ish e'lonini qunt bilan ogimagan odam bilan ishlash judayam qiyin bòladi.


Lekin....


Kalit so'zni bildi degani u yaxshi mutaxassis degani emas.
Oddiygina farosatini aniqlab olishni usullaridan biri holos..

Omad!

Shahbozbek Dolimov

@Diyorbekk_dev
Post #824 236
Post #822 221
Bu hafta uchun yangi sprint boshlandi.

Tasklar ajoyib.

Bismilloh deb boshlaymiz. ✊

@Diyorbekk_dev
  • 🔥 4
  • 👍 3
  • ❤ 2
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 →