رقصنده با کد – Telegram
رقصنده با کد
780 subscribers
1.69K photos
850 videos
207 files
665 links
Here are some interesting things I've come across during my learning process. That's it. Admin ID:
@alithecodeguy
Download Telegram
Forwarded from توییتر فارسی
This media is not supported in your browser
VIEW IN TELEGRAM
چند جوان در ایرلند برای سرگرمی چاله‌ای در ساحل درست کردند و بدون اینکه آن پر کنند رهایش کردند. اما فردا در اخبار می‌بینند یک کیهان‌شناس برده‌اند کنار چاله و او با یک حس و حال علمی از احتمال درست‌شدن این چاله در اثر برخورد شهاب‌سنگ به آنجا صحبت می‌کند!🤦🏻‍♂

ClovE @twitter_farsy
خوشبختانه دوره ریکت مقدماتی رو به اتمامه و فقط یک جلسه باقی مونده 🎉🥳🤩
به نظر خودم دوره خیلی خوبی شد مخصوصا اینکه ۳ تا از دوستان مشارکت و فعالیت خوبی داشتن.
قبل از شروع دوره intermediate ریکت ، قصد دارم دوره مقدماتی جاوا اسکریپت برگزار کنم. توی این دوره ، تمرکز فقط روی خود جاوا اسکریپت هستش (بدون فریم‌ورک و کتابخانه‌های مختلف) و قراره مباحث از صفر و به صورت کاملا عمیق ، مطرح و بررسی بشن.
هنوز زمان و باقی اطلاعات دوره مشخص نیست ولی خوشحال میشم اگر در مورد سرفصل‌ها و ترتیبشون و حتی روزهای برگزاری و هزینه دوره ، اگر نظر خاصی دارید بفرمایید 🙏
هیچ توضیحی ندارم که چرا ولی به نظرم هر چه سریعتر یادگیری زبان برنامه نویسی Rust یا GO رو شروع کنید. مخصوصا اگر فرانت رو تا حد خوبی بلدید.
حتی شده روزی ۱ صفحه!
داکیومنت‌های خودش خوبن :
https://doc.rust-lang.org/book/
ویکی‌پدیا:
مؤسسه مهندسان برق و الکترونیک (به انگلیسی: The Institute of Electrical and Electronics Engineers) با سرواژه IEEE معروف است ، یک سازمان بین‌المللی حرفه‌ای و غیرانتفاعی است. هدف این مؤسسه کمک به پیش‌برد فناوری به‌طور عام و حوزه‌های وابسته به مهندسی برق و مهندسی کامپیوتر و همچنین زمینه‌های وابسته به‌طور خاص است. این مؤسسه بیش از ۴۲۳ هزار نفر عضو در ۱۶۰ کشور جهان دارد که ۴۵ درصد این اعضا خارج از ایالات متحده آمریکا هستند.
---------------
خیلی از موارد مشترکی که بین زبان‌های برنامه‌نویسی میبینید به خاطر اینه که اکثرا سعی میکنن استاندارد‌های این موسسه رو پیاده سازی کنن.
برای مثال استاندارد پیاده‌سازی اعداد اعشاری در زبان‌های برنامه‌نویسی از این استاندارد میاد:
IEEE 754

@alithecodeguy
کامپوننت Stopwatch در React با استفاده از Ref

#react #ref
معمولا میگن یک راه برای پیروزی هست ولی هزار راه برای شکست ، ولی از نظر من بر عکسه. ممکن هزار راه رو بری که ۳،۴ بار یا نهایتا ۱۰ بار توش شکست بخوری ، بعد دیگه هیچ راهی برای شکست نمیمونه. الزاما باید پیروز شی.
خیلی از ما به خاطر فرهنگ جامعه یا آموزش پرورش یا هر چیز دیگه‌ای ، پیش فرض ذهنیمون شکسته. متاسفانه.
خیلی از نکات رو خودمون میدونیم ولی هرزگاهی باید بهمون یادآوری بشه.
اگر برنامه‌نویس فرانت هستید ، هرگز هرگز هرگز ، پیاده‌سازی سامانه‌ای رو قبول نکنید که دیزاین و بک‌اندش تکمیل و تصحیح نشده. پیر می‌شید.
Frontend Mostly Asked Interview questions and answers !

Q1: What are micro and macro task queues in JavaScript, and how do they relate to the event loop?
Answer: Micro and macro task queues are part of the event loop in JavaScript. Microtasks have higher priority and execute before macrotasks. Microtasks are typically used for high-priority, non-blocking operations like promises, while macrotasks handle less time-sensitive tasks like I/O operations and rendering updates.

Q2: How can you schedule code to run in the microtask queue, and what is the order of execution compared to the macrotask queue?
Answer: Code can be scheduled to run in the microtask queue using functions like Promise.then(), Promise.catch(), and Promise.finally(). Microtasks have higher priority and are executed before macrotasks in the event loop.

Q3: What kinds of operations are typically placed in the macrotask queue, and how do you schedule them?
Answer: Macrotasks are typically used for operations like I/O (e.g., file read), network requests (e.g., API calls), and rendering updates (e.g., modifying the DOM). You can schedule macrotasks using functions like setTimeout, setInterval, and requestAnimationFrame.

Q4: Explain the order of execution when both micro and macro tasks are in the queue.
Answer: When both micro and macro tasks are in the queue, microtasks are executed until the microtask queue is empty. Only then are macrotasks executed. This ensures that high-priority microtasks are processed first. Micro and macro task queues help manage the execution order of asynchronous operations. Microtasks allow high-priority tasks to execute promptly, maintaining UI responsiveness. Macrotasks handle less critical tasks, preventing them from blocking the main thread.

Q5: How do you schedule asynchronous code to run in the microtask queue, and what are common use cases for microtasks?
Answer: Asynchronous code can be scheduled to run in the microtask queue using Promise methods like .then(), .catch(), and .finally(). Common use cases for microtasks include handling promises, DOM mutations, and updating application state before rendering.

Q6: Can you explain the potential drawbacks of excessive use of microtasks in an application?
Answer: Excessive use of microtasks can lead to "starvation" of the macrotask queue, causing macrotasks like rendering and user input handling to be delayed. This can result in a less responsive user interface and potential performance issues.
پست بالا رو توی لینکدین دیدم. به نظرم بخونید ضرر نمی‌کنید
کانفیگ بدردبخوریه روی vscode 👌
Forwarded from توییتر فارسی
This media is not supported in your browser
VIEW IN TELEGRAM
چطوری اون همه عدد را دید بعد چطوری حساب کتاب کرد 😳😳

•Abed•
This media is not supported in your browser
VIEW IN TELEGRAM
Vite in 100 Seconds
توی ۱۰۰ ثانیه کلمات کلیدی‌ای میگه که به نظرم اگر فرصت کردید برید مطالعشون کنید. هر کدوم دنیاییه برای خودش.
#vite
اصل SRP میگه هر ماژول دقیقا باید فقط و فقط ۱ کار رو انجام بده.
اگر همین اصل رو به ریکت تعمیمش بدید ، معناش این میشه هر کامپوننت فقط و فقط یک کار رو باید انجام بده و اگر برای انجام اون هدف مشخص ، نیازه که چندتا کار متفاوت انجام بده ، هر کدوم از اون کارها رو به یک کامپوننت مستقل اختصاص بدید.
A Collection of Awesome Free APIs
#api
js_questions.pdf
7 MB
نمونه سوالات و جواب های مهم جاوااسکریپت به زبان فارسی
----
این فایل از صفحه لینکدین آقای مصطفی میری گرفته شده.
👌
#js #interview
اولین دوره مقدماتی و عمیق جاوا‌اسکریپت!
مباحث مقدماتی رو ، هم به شکل به‌روز‌تر و هم به شکل عمیق‌تر بررسی میکنیم.
اطلاعات بیشتر در تصویر.
لینک کانال تلگرامی:
https://news.1rj.ru/str/alithecodeguy