Advertisement · 728 × 90

Posts by MHD

Preview
Wallpapers | Astro Elevate your style with our stellar designs.

astro.build/wallpapers/

1 year ago 0 0 0 0
Post image

Look me in the eyes and tell me this code isn't beautiful.

1 year ago 0 0 0 0
Post image

Arrays are like standard JavaScript arrays. a bag of elements that can grow or shrink.

Tuples, on the other hand, are fixed in length and type. They know exactly how many elements they contain and the specific types of elements at each position.

1 year ago 4 0 0 0
Post image

In #TypeScript, Arrays and Tuples are not the same, So how do we differentiate between the two at the type level? The following type does exactly that using a clever trick (explained in the replies):

1 year ago 2 0 1 0
Post image

By the way, here’s the usual way to get the last element of a tuple:

1 year ago 1 0 0 0

Here’s what’s happening in this code: we’ve created a tuple that’s one element longer than the original T. Now, the length of the original tuple (T["length"] == 4) becomes our index, pointing to the last element of the newly created tuple.

1 year ago 0 0 0 0
Post image

I stumbled upon this piece of #TypeScript art, a type helper that cleverly gets the last element of any tuple type. (explanation in the replies)

1 year ago 1 0 2 0
Preview
Advent of TypeScript Advent of TypeScript is a month-long event running from December 1 to Christmas, featuring daily TypeScript challenges. Participants can test their skills, climb the leaderboard, and engage with the T...

I've completed 🎄🎉🎅 Thank You! - Advent of TypeScript 2024 adventofts.com/events/2024/25

1 year ago 2 0 0 0

tsup

1 year ago 0 0 0 0
Preview
Advent of TypeScript Advent of TypeScript is a month-long event running from December 1 to Christmas, featuring daily TypeScript challenges. Participants can test their skills, climb the leaderboard, and engage with the T...

I've completed 🎩Bernard's New Demands 2: Electric Boogaloo - Advent of TypeScript 2024 adventofts.com/events/2024/21

1 year ago 1 0 0 0
Advertisement

I imagine you saying the same thing about bsky

1 year ago 1 0 0 0
Post image
1 year ago 0 0 0 0
Preview
Advent of TypeScript Advent of TypeScript is a month-long event running from December 1 to Christmas, featuring daily TypeScript challenges. Participants can test their skills, climb the leaderboard, and engage with the T...

I've completed Day 18 - Advent of TypeScript 2024 adventofts.com/events/2024/18

1 year ago 1 0 1 0

Yeah, today’s challenge is much easier. 16 was tough, and the incorrect tests made it worse, I spent almost three hours trying to make it work.

1 year ago 2 0 0 0

even with the help of all LLM's I'm not able to pass test 4

1 year ago 0 0 0 0

15 was hard, tbh. I got to the final solution through brute force only.

1 year ago 1 0 0 0
Advent of Typescript 2024: Day 15 Solution

Advent of Typescript 2024: Day 15 Solution

I've completed Day 15 - Advent of Typescript 2024 adventofts.com/events/2024/15

1 year ago 1 0 0 0
Post image

Advent of Typescript: Day 14

1 year ago 4 0 0 0
Advertisement
Preview
Advent of TypeScript Advent of TypeScript is a month-long event running from December 1 to Christmas, featuring daily TypeScript challenges. Participants can test their skills, climb the leaderboard, and engage with the T...

I've completed 🎩Bernard's Long List Of Names - Advent of TypeScript 2024 adventofts.com/events/2024/12

1 year ago 1 0 0 0
Post image

The astro schema package is reaching a nice milestone, so I thought I’d share it with you, go
@astro.build 🚀

1 year ago 2 0 1 0

I've completed 🎅Santa Refuses To Use Threads - Advent of TypeScript 2024 adventofts.com/events/2024/6

1 year ago 1 0 0 0
Preview
React v19 – React The library for web and native user interfaces

React v19 is now stable!

react.dev/blog/2024/12...

1 year ago 1283 342 32 93
Post image

React 18 is a thing of the past, hail the new king, React 19!

1 year ago 1 0 0 0
Post image Post image

features i’m excited about in react 19

1 year ago 2 0 0 0

I've completed Drafting This Year's Routes - Advent of TypeScript 2024 adventofts.com/events/2024/5

1 year ago 1 0 0 0
Preview
Astro 5.0 | Astro Astro 5.0 brings exciting new features like the Astro Content Layer for seamless content loading from any source, and Server Islands for effortlessly combining static and dynamic personalized content.

Astro 5.0 is here.
Content layer, server islands, simplified prerendering, type-safe env, @vite.dev v6. All stable.

Go see what you can do 👇
astro.build/blog/astro-5/

1 year ago 585 159 24 47

Ready for @astro.build v5 🚀💪

astro-svg-loaders@5.0.0
astro-seo-schema@5.0.0
astro-useragent@5.0.0
astro-purgecss@5.0.0
astro-seo-meta@5.0.0

1 year ago 2 0 0 0
Preview
Advent of TypeScript Advent of TypeScript

I've completed ⚡Blitzen Fixes The Mess #AdventOfTypescript adventofts.com/events/2024/2

1 year ago 2 0 0 0
Advertisement

I've completed The Reindeer Have Had Enough - Advent of TypeScript 2024 adventofts.com/events/2024/1

1 year ago 2 0 0 0
Preview
TryPHP - Effortlessly set up PHP on Linux with a simple curl command Effortlessly set up PHP on Linux with a simple curl command

With the release of php8.4, i’m excited to share a tool i’ve been working on, which I think is the easiest way to set up the latest version of php on any apt-based linux system!

👉 give it a try: tryphp.dev
#php #linux #devtools

1 year ago 2 0 0 0