Anas Raza (@anasraza07) profile picture

Frontend Developer | ReactJS | Context API | JavaScript | HTML | CSS | Responsive Web Apps | REST APIs | Learning Full Stack Engineering

Karachi, Pakistan
Joined June 2020
Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)Photo by Anas Raza (@anasraza07)
Got the internship, but somewhere along the way, I lost track of my own goals. Full-time work + university exams made it hard to stay consistent. But I'm back! No more long breaks. Full Stack → AI Tools → AI Engineering. I'll share my journey here. Any advice? comnts plz.
1
141
Day 14 of my sleep experiment: (5.25hrs) usually start feeling sleepy after around 16 hours awake These 2 weeks taught me a lot. I'll share my key takeaways in the next tweet along with my average sleep duration previous learnings: 👇
Day 13 of my sleep experiment: (8hrs) Slept for 5hrs, then went back to sleep for another 3. Winter mornings are making it harder to get out of bed A few things I'm learning:
7
Day 13 of my sleep experiment: (8hrs) Slept for 5hrs, then went back to sleep for another 3. Winter mornings are making it harder to get out of bed A few things I'm learning:
Day 12 of my sleep experiment (4.75hrs): Got 4.75 hours of sleep today. Woke up a little later than planned, but the sleep duration felt okay. Next, I want you also to focus on a few daily non-negotiables:
1
1
41
- Make your bed so it feels less tempting to get back in.
1
17
Day 12 of my sleep experiment (4.75hrs): Got 4.75 hours of sleep today. Woke up a little later than planned, but the sleep duration felt okay. Next, I want you also to focus on a few daily non-negotiables:
Day 11 of my sleep experiment (8hrs): Got around 8 hrs of sleep in different chunks, probably bcuz it was weekend. 1 thing i'm reminding myself: once you wake up, try to get out of bed right away. Those first few minutes can make all the difference. bonus advice:
1
1
42
- A daily workout - Eating lighter, balanced meals - naps around 20 minutes at mid-day Building a better routine, one day at a time.
10
Day 11 of my sleep experiment (8hrs): Got around 8 hrs of sleep in different chunks, probably bcuz it was weekend. 1 thing i'm reminding myself: once you wake up, try to get out of bed right away. Those first few minutes can make all the difference. bonus advice:
Day 10 of my sleep experiment: (6hrs) Stayed up late scrolling so even after waking up still felt sleepy and went back to sleep. Ended up getting 6 hrs of sleep in total. A reminder that discipline matters in every little habit. One small slip can throw off your entire routine
1
1
22
Don't give your brain too much time to talk you out of it!
2
Built a Location Finder app used JS geolocation to get latitude and longitude, fetched the city and country, then used REST Countries API to display country details. also used Promise.all() to fetch information about neighboring countries together. link: (in comments)
1
32
Check it out below: anasraza07.github.io/locatio… Get it responsive from AI. Still it can improve by error handling and UX, but no need to spend forever on one project. The more you polish, the better it gets!
11
Revised Promises, their lifecycle, .then(), resolve() and reject(), microtask queue and how to get data from fetch(). explored how Axios differs from Fetch and where a Promise result actually goes. build a Location Finder app that displays a city, country and borders.
Today's learning covered node.js c++ bindings, thread pool, synchronous vs asynchronous behaviour, blocking operations, ajax, apis, xml vs json, servers, and the Fetch API. Want a simple explanation of these topics? Drop a comment GitHub repo of public apis: (see in comment)
17
Day 10 of my sleep experiment: (6hrs) Stayed up late scrolling so even after waking up still felt sleepy and went back to sleep. Ended up getting 6 hrs of sleep in total. A reminder that discipline matters in every little habit. One small slip can throw off your entire routine
Day 9 of my sleep experiment (5.5hrs): Slept a little longer than planned today. noticed again that getting out of bed becomes harder when I sleep beyond 90 minute intervals. With winter starting, mornings are getting even tougher!
1
24
Day 9 of my sleep experiment (5.5hrs): Slept a little longer than planned today. noticed again that getting out of bed becomes harder when I sleep beyond 90 minute intervals. With winter starting, mornings are getting even tougher!
Day 8 of my sleep experiment (5.25hrs): Slept for 5.25 hrs bcuz getting out of bed was difficult and felt little sleepy throughout the day. By night, I started feeling sleepy again after around 14 hours of being awake. Still observing the pattern. noticed 1 thing:
1
31
A man should focus on just 4 things: 1. Build endurance & resilience: Train your body, run daily, increase your distance, and strengthen your mind. Be ready for life challenges. 2. Control your reactions: Don't let anyone control your action even your emotions.
1
14
3. Learn to be alone: Become comfortable with your own company. 4. Build skills: Learn one skill that makes you money whether you enjoy it or not, and another skill that you genuinely love. Work on these every day.
11
Day 8 of my sleep experiment (5.25hrs): Slept for 5.25 hrs bcuz getting out of bed was difficult and felt little sleepy throughout the day. By night, I started feeling sleepy again after around 14 hours of being awake. Still observing the pattern. noticed 1 thing:
Day 7 of my sleep experiment: (5hrs) Got 4.75 hours of sleep and felt pretty good throughout the day. Only noticed slight sleepiness after being awake for around 12 hours. Still tracking how my energy and focus change over time.
1
1
31
Not sleeping in multiples of 90 minutes and sleeping a bit longer seems to make feel more sleepy and tired after waking up
14
How does nodejs handle heavy tasks? Nodejs uses C++ bindings to connect JavaScript with lower-level libraries like V8 and libuv. To keep the main thread free, tasks like file operations, DNS lookups, and cryptography can be handled by:
1
1
40
libuv's thread pool (4 threads by default). Fun fact: Network requests usually rely on the OS non-blocking I/O, not the thread pool.
8
Day 7 of my sleep experiment: (5hrs) Got 4.75 hours of sleep and felt pretty good throughout the day. Only noticed slight sleepiness after being awake for around 12 hours. Still tracking how my energy and focus change over time.
Day 6 of my sleep experiment: (5hrs) Slept for 5 hours and woke up feeling fresh as the previous days. Felt a little sleepy after lunch, so took a 10-min nap and felt refreshed again. Noticing that eating lighter, balanced meals might help stay energized throughout the day.
1
28
nodejs doesn't have a browser runtime or browser features like Web APIs. So how does it handle asynchronous tasks? will explain this in next tweet with a simple breakdown. Until then, you can catch up here about the Browser Runtime Environment.
Understanding the Browser Runtime Environment It is what allows JavaScript to run in the browser and handle asynchronous tasks without freezing the website. JavaScript is single-threaded, but the browser provides extra tools to handle tasks in the background. Let's break down:
15
X connections > LinkedIn connections ....... always so let's connect!
1
25
Day 6 of my sleep experiment: (5hrs) Slept for 5 hours and woke up feeling fresh as the previous days. Felt a little sleepy after lunch, so took a 10-min nap and felt refreshed again. Noticing that eating lighter, balanced meals might help stay energized throughout the day.
Day 5 of my sleep experiment: (5hrs) woke up at 6:30 AM tip: try to keep the same sleep schedule on weekdays and weekends for a more consistent routine. still feel sleepy after dinner, but a 5-10 minute nap helps. So far, so good. Still aiming for 4.5 hours next.
1
36
Today's learning covered node.js c++ bindings, thread pool, synchronous vs asynchronous behaviour, blocking operations, ajax, apis, xml vs json, servers, and the Fetch API. Want a simple explanation of these topics? Drop a comment GitHub repo of public apis: (see in comment)
Reviewed nested loops and comparison operators, == vs ===. Also explored the browser runtime, Web APIs, JavaScript engine, callback queue, event loop and how they connect and work together. I'll break all of these down in a simple way in my next tweet. Stay tuned.
1
1
50
Day 5 of my sleep experiment: (5hrs) woke up at 6:30 AM tip: try to keep the same sleep schedule on weekdays and weekends for a more consistent routine. still feel sleepy after dinner, but a 5-10 minute nap helps. So far, so good. Still aiming for 4.5 hours next.
Day 4 of my sleep experiment: (5hrs) Got around 5 hours of sleep and felt fresh throughout the day. Felt a little sleepy around 10 PM, but getting up from a chair, drinking water, and having a chat with the family helped feel refreshed. 3 hours later, was feeling sleepy.
1
40
Day 4 of my sleep experiment: (5hrs) Got around 5 hours of sleep and felt fresh throughout the day. Felt a little sleepy around 10 PM, but getting up from a chair, drinking water, and having a chat with the family helped feel refreshed. 3 hours later, was feeling sleepy.
Day 3 of my sleep experiment: (5.25hrs) Slept for 5 hours and 15 minutes. Couldn't get out of bed right away and spent another 15 minutes lying there. The rest of the day went well. Felt fresh overall. Sleepiness kicked in after 10 PM, how i handled it:
1
41
Understanding the Browser Runtime Environment It is what allows JavaScript to run in the browser and handle asynchronous tasks without freezing the website. JavaScript is single-threaded, but the browser provides extra tools to handle tasks in the background. Let's break down:
1
1
45
1. JavaScript Engine Every browser has its own JavaScript engine, like Chrome's V8 and Firefox's SpiderMonkey. The engine has two parts: - Memory Heap: Stores memory for variables, objects, and functions. - Call Stack: Tracks function calls and executes them using LIFO.
1
1
32