
Frontend Developer | ReactJS | Context API | JavaScript | HTML | CSS | Responsive Web Apps | REST APIs | Learning Full Stack Engineering
Karachi, Pakistan
Joined June 2020
- Tweets321
- Following727
- Followers68
- Likes119
Pinned Tweet
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.
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:
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:
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!
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
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:
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
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.
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
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.
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)
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.
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:
