Web_programming
1.15K subscribers
350 photos
14 videos
125 files
1.21K links
Sharif web programming
If you have any questions, please feel free to ask(@yumcoder)
Download Telegram
The DataLoader pattern is a common design pattern used primarily in backend development to optimize data fetching, especially in the context of GraphQL APIs. It helps reduce the number of database or API calls by batching and caching requests efficiently.
const promise1 = new Promise((resolve, reject) => {
setTimeout(resolve, 500, "one");
});

const promise2 = new Promise((resolve, reject) => {
setTimeout(resolve, 100, "two");
});

Promise.race([promise1, promise2]).then((value) => {
console.log(value);
// Both resolve, but promise2 is faster
});
// Expected output: "two"


https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race
vsCode and Gemini code Assistant
When you apply:


scrollbar-width: thin;


It tells the browser to render the scrollbars in a narrower/thinner style than the default. This improves aesthetics in layouts with tight or minimal designs.
👌
Forwarded from Quera
🤼 «فیتو» مسابقه‌ برنامه‌نویسی کوئراست که در حوزه هوش‌مصنوعی با همکاری فدراسیون کشتی ایران برگزار می‌شود.

🎁 بیش از ۶۰ میلیون تومان جایزه نقدی و کلی هدایای جذاب دیگه…

✔️ فرصت استخدام و همکاری با مرکز نوآوری و هوش‌مصنوعی فدراسیون کشتی(اکتین)
✔️ گواهینامه معتبر
✔️ وبینار جذاب و تخصصی هوش‌مصنوعی در ورزش
✔️ فینال حضوری جذاب در کنار بزرگان کشتی ایران!

🌐 اطلاعات بیشتر و ثبت‌نام رایگان:
🔗 https://quera.org/r/zg3t4


#Quera
Should concepts like retries, timeouts, circuit breaking, and rate limiting be handled at the application level or at the DevOps/infrastructure level?