Ankur Singhal
ankurpsinghal.bsky.social
Ankur Singhal
@ankurpsinghal.bsky.social
Looking for a Senior Engineer Role. Immediately Available.

Creator SvelteLegos

Previously @MeetApollo, @theappsmith.
I need a Chrome Extension to sync my new posts with Bluesky and vice-versa.

Let me create one.
November 24, 2024 at 3:13 PM
ChatGPT is crazyyyy, I solve a problem on Leetcode, and just ask it to optimize, not only it wrotes optimized code for me but also give proper explanation for the parts it changed, how it improves the Time and Space complexity and cherry on top is the clear syntax.
November 24, 2024 at 3:11 PM
Quick React Question:

What will be logged to the console after clicking the button?
November 23, 2024 at 1:54 AM
Web.dev/articles articles are so good, each article teaches you something really vital.
web.dev
Web.dev
November 19, 2024 at 3:01 AM
Combining Svelte5 $state Rune and Typescript class, I tried creating a handy Clipboad utility.

It abstracts away your state internally and gives you 3 powerful methods to update, undo and redo your state.

Check it out and let me know your thoughts.

@sveltejs @SvelteSociety
November 14, 2024 at 3:10 AM
A quick question to test how you understand Javascript/Browser engine works?

Looking at the code below how to do you think the value is going to update for the element (progress-bar)?

If you are reading this, comment your answers without running the code?
November 14, 2024 at 3:09 AM
A very simple straightforward Javascript Event Loop:

Scripts => Microtasks => Render => Macrotasks

Microtasks:
- Promises
- queueMicrotask

Macrotasks:
- setTimeout

So basically queue to Microtasks before rendering and Macrotasks for post rendering.

#WebDev #Javascript
November 14, 2024 at 3:08 AM
Reposted by Ankur Singhal
The more I am practicing Trees Leetcode problems the more I am intrigued about Virtual Dom and Reconciliation Algorithm. 🫡
November 12, 2024 at 2:54 AM
Reposted by Ankur Singhal
Combining Svelte5 $state Rune and Javascript classes, we can create powerful patterns.

For example, as simple as a Signup form, we can abstract all the state values + validation logic + network calls etc. in a single class.

And use them in the Svelte component reactively.
November 9, 2024 at 1:29 AM
The more I am practicing Trees Leetcode problems the more I am intrigued about Virtual Dom and Reconciliation Algorithm. 🫡
November 12, 2024 at 2:54 AM
Internalize "Program to interface and not implementation" in your coding practice!
November 12, 2024 at 2:51 AM
A very tight comparison of state management, computed values, and side effects or watchers is made in all three frameworks, React, Vue, and Svelte.
November 9, 2024 at 1:29 AM
Combining Svelte5 $state Rune and Javascript classes, we can create powerful patterns.

For example, as simple as a Signup form, we can abstract all the state values + validation logic + network calls etc. in a single class.

And use them in the Svelte component reactively.
November 9, 2024 at 1:29 AM
After 1 week of coding challenge ⚡️:

+ 36 more problems solved 🧑🏻‍💻
+ Got ahead by 118,902 in rank 🚀

New Learnings:
1. Prefix Sum.
2. BFS/Next order traversal.
3. Heap/Priority Queue for K-queries.
4. Using HashSet/HashMap data structures to decrease time complexity.
November 9, 2024 at 1:20 AM