رقصنده با کد (و غیره)
Відкрити в Telegram
Here are some interesting things I've come across during my learning process. That's it. Admin ID: @alithecodeguy
Показати більше727
Підписники
Немає даних24 години
-57 днів
Немає даних30 днів
Архів дописів
اگر قبلا Nextjs کار کردید و الان میخواید به نسخه جدیدش سوییچ کنید (۱۳ و بالاتر) و از ویژگیهای جدیدش استفاده کنید ، دوره زیر رو به صورت رایگان از دانلودلی میتونید دانلود کنید.
دوره خوبیه.
https://downloadly.ir/elearning/video-tutorials/introduction-to-next-js-13-v3/
#nextjs
اولین دوره مقدماتی و عمیق جاوااسکریپت!
اطلاعات بیشتر در تصویر.
لینک کانال تلگرامی:
https://t.me/alithecodeguy
نمونه سوالات و جواب های مهم جاوااسکریپت به زبان فارسی
----
این فایل از صفحه لینکدین آقای مصطفی میری گرفته شده.
👌
#js #interview
اصل SRP میگه هر ماژول دقیقا باید فقط و فقط ۱ کار رو انجام بده.
اگر همین اصل رو به ریکت تعمیمش بدید ، معناش این میشه هر کامپوننت فقط و فقط یک کار رو باید انجام بده و اگر برای انجام اون هدف مشخص ، نیازه که چندتا کار متفاوت انجام بده ، هر کدوم از اون کارها رو به یک کامپوننت مستقل اختصاص بدید.
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.
خیلی از نکات رو خودمون میدونیم ولی هرزگاهی باید بهمون یادآوری بشه.
اگر برنامهنویس فرانت هستید ، هرگز هرگز هرگز ، پیادهسازی سامانهای رو قبول نکنید که دیزاین و بکاندش تکمیل و تصحیح نشده. پیر میشید.
معمولا میگن یک راه پیروزی هست ولی هزار راه شکست ، ولی از نظر من بر عکسه. ممکن هزار راه رو بری که ۳،۴ بار یا نهایتا ۱۰ بار توش شکست بخوری ، بعد دیگه هیچ راهی برای شکست نمیمونه. الزاما باید پیروز شی.
ویکیپدیا:
مؤسسه مهندسان برق و الکترونیک (به انگلیسی: The Institute of Electrical and Electronics Engineers) با سرواژه IEEE معروف است (آی-تریپِل-ئی /ai trɪpl i:/ گفته میشود [۱])، یک سازمان بینالمللی حرفهای و غیرانتفاعی است. هدف این مؤسسه کمک به پیشبرد فناوری بهطور عام و حوزههای وابسته به مهندسی برق و مهندسی کامپیوتر و همچنین زمینههای وابسته بهطور خاص است. این مؤسسه بیش از ۴۲۳ هزار نفر عضو در ۱۶۰ کشور جهان دارد که ۴۵ درصد این اعضا خارج از ایالات متحده آمریکا هستند.
---------------
خیلی از موارد مشترکی که بین زبانهای برنامهنویسی میبینید به خاطر اینه که اکثرا سعی میکنن استانداردهای این مووسه رو پیاده سازی کنن.
برای مثال استاندارد پیادهسازی اعداد اعساری در زبانهای برنامهنویسی از این استاندارد میاد:
IEEE 754
هیچ توضیحی ندارم که چرا ولی به نظرم هر چه سریعتر یادگیری زبان برنامه نویسی Rust یا GO رو شروع کنید. مخصوصا اگر فرانت رو تا حد خوبی بلدید.
حتی شده روزی ۱ صفحه!
داکیومنتهای خودش خوبن :
https://doc.rust-lang.org/book/
خوشبختانه دوره ریکت مقدماتی رو به اتمامه و فقط یک جلسه باقی مونده 🎉🥳🤩
به نظر خودم دوره خیلی خوبی شد مخصوصا اینکه ۳ تا از دوستان مشارکت و فعالیت خوبی داشتن.
قبل از شروع دوره intermediate ریکت ، قصد دارم دوره مقدماتی جاوا اسکریپت برگزار کنم. توی این دوره ، تمرکز فقط روی خود جاوا اسکریپت هستش (بدون فریمورک و کتابخانههای مختلف) و قراره مباحث از صفر و به صورت کاملا عمیق ، مطرح و بررسی بشن.
هنوز زمان و باقی اطلاعات دوره مشخص نیست ولی خوشحال میشم اگر در مورد سرفصلها و ترتیبشون و حتی روزهای برگزاری و هزینه دوره ، اگر نظر خاصی دارید بفرمایید 🙏
Repost from مسابقات فوتبال جام جهانی
چند جوان در ایرلند برای سرگرمی چالهای در ساحل درست کردند و بدون اینکه آن پر کنند رهایش کردند. اما فردا در اخبار میبینند یک کیهانشناس بردهاند کنار چاله و او با یک حس و حال علمی از احتمال درستشدن این چاله در اثر برخورد شهابسنگ به آنجا صحبت میکند!🤦🏻♂
ClovE @twitter_farsy
راه های نفوذ هکر ها به شرکت ها و نرم افزار ها ، مولد اچ دی ام آی ناشناس حتی به لپتاپتون وصل نکنید! یو اس بی پیدا کردید سریعا به سیستم اصلیتون متصل نکنید. هر کسی تماس گرفت به عنوان پشتیبانی شرکت پشتیبان واقعی نیست. به اندازه یک ترم خیلی از دروسی که در دانشگاه گذروندیم این نکات ارزش داره. (شایدم بیشتر)
Hacker Answers Penetration Test Questions From Tw…: https://youtu.be/6i-84wqc_qU
