Bassel's Blog.
Do Androids Dream Of Electric Sheep?

I’ve just finished reading Do Androids Dream of Electric Sheep? by PKD. This second read came after 10 years of the first one. And oh boy, does it feel like a complete new story! especially after this new era of ChatGPT and co. we are living in.

19 Feb 2025

The characters to be searched for at the end of str. Cannot be a regex. All values that are not regexes are coerced to strings, so omitting it or passing undefined causes endsWith() to search for the string "undefined", which is rarely what you want.

Rare humor with coerced javascript.

09 Feb 2025

Google has an API that could turn any website favicon into a PNG file. I've been using it for the via icons below!

https://www.google.com/s2/favicons?domain=${domain}&sz=${size}

09 Feb 2025

It's 2025 and unstable_runtimeJS still works with NextJS 15.1 (only the pages router). All __NEXT_DATA__ json objects are dropped and everything is still generated as plain html and css in this website!

Let's see how long we can keep this up. fingers_crossed

nextjs
unstable_runtimeJS
pages router
05 Feb 2025

You should support indies if you can, but culture shouldn't exist only for those who can afford it.

This is a quote from Hakita, the developers of the Ultrakill indie game. Where they were replying to a tweet of someone pirating their game.

This really got me thinking that, without pirated movies and video games when I was a kid, I would not be where I am right now. Buying a game for $60 where the average salary for a teacher is $150 a month was not possible!

Pirating digital media is illegal, but digital media is culture, and we should remember that for some people, this media is not available at all.

JSON was discovered and not invented

and its creator prefers to pronounce it: jo son /ʒə sɛ̃/ with a light 'n' with a French tongue...

This Website Uses Zero JavaScript
This Website Uses Zero JavaScript

02 Jan 2024(2 min read)

Well, to be honest, it uses a shitload of JavaScript at build time, but you can check the network tab in the dev tools... 0 JS files.

Strapi - A CMS without a Head
Strapi - A CMS without a Head

11 Oct 2020(4 min read)

Most of the small-to-mid software in all of its types (websites, web apps, mobile apps) are considered simple content systems, which basically show some categorized content that an end-user can interact with, for example:

1- A blog like this yours truly, its posts are content and via this site you can browse it.

How a Git Error Made Me Clean Unrelated Oracle Database Trace Files

In a shiny day, I was pulling the latest changes from a repository in our own instance of GitLab CE, which is deployed on our docker cloud infrastructure, and was faced with a weird error, I've checked my colleagues and most of them were encountering this error in a random-fashion, this is how it went on.

_Why the Lucky Stiff
_Why the Lucky Stiff

10 Oct 2019(2 min read)

Nope, it's not a typo and it's not a question...

On Dependency Injection

01 Oct 2019(4 min read)

Lots of development frameworks now treats Dependency Injection as a first-class citizen in their implementations (for example, dotnet core's ASP and Java's Spring...). Therefore, knowing how to use it is guaranteed at lots of software engineers, but knowing why and when to use it is what made me write this post as all of my posts :P.

Since school, I've always tried to dig out the history and the back-scenes behind the physics principles so I can grasp the foundations of them. Even now, while I'm in the software field, I'm always curious about how those famous figures come up with such technologies, principles and ideas. And for this episode of my blog show, It's going to be the infamous S.O.L.I.D.

SOLID principles are one of the most famous principles among software engineers for writing clean code, although most of my time that I spend coding, I totally forget about that they exist, I'm pretty sure that most of us apply them one way or another without explicitly thinking about them.

On the Origins of The Web

12 Jan 2016(6 min read)

The Web, in my opinion, is one of the most influential inventions the human kind had come up with since the invention of controlled fire 2 million years ago.

The web has always fascinated me since I was a child. I remember back in the days - 12 years or so - my first tries of programming was creating some html pages and linking them together with some css style sheets that made my pages look cool.

and since then... I've fallen in love.