Taha Shashtari's Avatar

Taha Shashtari

@tahazsh

Full-stack dev ✨ Creator of Swapy https://swapy.tahazsh.com πŸ“½οΈ Video tutorials https://www.youtube.com/@tahazsh

37
Followers
131
Following
32
Posts
30.06.2023
Joined
Posts Following

Latest posts by Taha Shashtari @tahazsh

Video thumbnail

I was working on something that needed connecting nodes with edges. Turns out SVG is perfect for this, one <path> element per edge. πŸ‘Œ

#webdev #javascript #svg

11.03.2026 17:59 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

It's interesting that what was considered a *Large* Language Model (LLM) in the past is now considered small.

For example, in 2018 GPT had 117 million parameters, but when GPT-2 was introduced in 2019 with 1.5 billion parameters, that 117 million parameters was considered small.

26.12.2025 08:55 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Example of how early language models worked.

Example of how early language models worked.

TIL that the origin of language models in AI goes way back to the 1950s, where the first one was based on counting which words appear together.

For example, if you give it "I love []", it will predict "pizza" instead of "broccoli" because "love pizza" appears more often.

25.12.2025 14:41 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

TIL about the nullish coalescing assignment operator in JavaScript!

22.09.2025 16:17 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
The JavaScript Animation Tool CSS Can't Replace: requestAnimationFrame
The JavaScript Animation Tool CSS Can't Replace: requestAnimationFrame YouTube video by Taha Shashtari

I've put out a new video explaining what requestAnimationFrame is really for, and you'll learn how to build a smooth follow-the-mouse animation using vanilla JavaScript along the way:
www.youtube.com/watch?v=NJgA...

#javascript #css #webdev #programming

20.08.2025 19:56 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
CSS vs JavaScript Animations: Which Is Faster?
CSS vs JavaScript Animations: Which Is Faster? YouTube video by Taha Shashtari

I always wondered whether CSS animations are really faster than JavaScript.

After a lot of research, it turns out they're not! I shared what I learned in this video:
www.youtube.com/watch?v=NEo6...

06.08.2025 16:11 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

I wrote about the named parameters pattern in JavaScriptβ€”I think you'll love it 😍
tahazsh.com/blog/named-p...

26.01.2025 20:04 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Strategy pattern is better when done with functions.
tahazsh.com/blog/strateg...

#javascript #typescript #programming #webdev

22.12.2024 17:24 πŸ‘ 4 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

πŸš€ Introducing Blendy – a framework-agnostic tool that smoothly transitions any element into any other element with just a few lines of code.

blendy.tahazsh.com

#javascript #WebDev #UI

17.12.2024 16:20 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

πŸš€ Introducing Swapy – a framework-agnostic tool that converts any layout into a drag-to-swap one with just a few lines of code.

swapy.tahazsh.com

14.12.2024 17:46 πŸ‘ 3 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

My favorite feature in Chrome is taking a screenshot of any element on the page using "Capture node screenshot" in dev tools.

02.12.2024 14:22 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
const users = [
  { name: "User 1", plan: "free" },
  { name: "User 2", plan: "premium" },
  { name: "User 3", plan: "free" }
]

Object.groupBy(users, ({ plan }) => plan)

/* Result is:
{
  free: [
      { "name": "User 1", "plan": "free" },
      { "name": "User 3", "plan": "free" }
  ],
  premium: [
      { "name": "User 2", "plan": "premium" }
  ]
}
*/

const users = [ { name: "User 1", plan: "free" }, { name: "User 2", plan: "premium" }, { name: "User 3", plan: "free" } ] Object.groupBy(users, ({ plan }) => plan) /* Result is: { free: [ { "name": "User 1", "plan": "free" }, { "name": "User 3", "plan": "free" } ], premium: [ { "name": "User 2", "plan": "premium" } ] } */

Finally we have a simple way to group objects in an array in JavaScript.

01.12.2024 17:14 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 1
Post image

Following the previous post, here's a quick way to check if an array has duplicates in JavaScript.

30.11.2024 18:32 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

JavaScript tip on how to quickly remove duplicates from an array.

30.11.2024 18:21 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

"JavaScript has an array function, reduce, that loops through an array and produces a result of any typeβ€”number, string, object, or even array."

Read more: tahazsh.com/blog/javascr...

04.11.2024 07:42 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Learn how to build scroll animations using CSS from scratch Learn how to build scroll animations using CSS from scratch

πŸš€ Just launched my first course: Mastering CSS Scroll-driven Animations.

csssda.tahazsh.com

This video course covers everything you need to create stunning scroll animations using pure CSS!

Your feedback means a lot to me! πŸ™

#css #webdev #html

17.10.2024 19:23 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
How to Implement Card Shuffling Interaction in JavaScript
How to Implement Card Shuffling Interaction in JavaScript Demo and code: https://codepen.io/tahazsh/pen/yLWPNrGVeloxi: https://veloxijs.com/

πŸŽ₯ Let's learn how to implement card shuffling interaction in JavaScript through a step-by-step video tutorial.
www.youtube.com/watch?v=_b2X...

30.06.2024 17:38 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

πŸ”₯ JS tip: You can listen for the `transitionend` event on an element to know when the CSS transition has completed.

Using `setTimeout` to wait is not accurate.
Also, there's `animationend` for CSS animations.

30.06.2024 08:59 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Good point! But are they going to support protected fields? That would be very cool. πŸ˜„

30.06.2024 08:16 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

It might be surprising, but some people actually prefer this β€œflexibility” and find TypeScript annoying and a waste of time. But in my experience, I can’t imagine building something complex and large without TS; it saved me a lot of time on my last project. But everyone has their own opinions πŸ˜„

29.06.2024 18:37 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

That looks very active. Thank you!

29.06.2024 16:59 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

It's a bummer that Bluesky doesn't let us upload videos. πŸ˜”

29.06.2024 13:19 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

πŸ’‘Creating UI interactions (especially complex ones) feels like game development; it involves math, logic, algorithms, and performance.

29.06.2024 13:07 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Looking for active web developers to follow on Bluesky but couldn’t find many. Any suggestions? πŸ™

29.06.2024 08:46 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Thank you! πŸ™

29.06.2024 05:50 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Totally agree. This man is a genius. Even after 12 years, I’m still amazed by his β€œInventing on Principle” talk.

28.06.2024 19:01 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Thank you!

28.06.2024 17:11 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

That, and the pipe operator. Once you get used to it in other functional programming languages, you wish every language included it.

28.06.2024 15:43 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Kinda true! πŸ˜‚

28.06.2024 15:33 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

This is my first day of using Bluesky, and I'm already loving it!

28.06.2024 15:32 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0