Yosunnyvim
I say whatever I want, yeah, I do whatever I want, huh

Blogs

Hate on Windows

If you know me, you probably know that Windows and I have some problems, some philosophical, some technical, and some ethical. But the main reason for writing this upcoming rant isn’t to accuse anyone who uses Windows. I’m criticizing Windows as an idea and as a product. I’ll get to Microsoft as a corporation later, but first I want to talk about how Windows started and some of the ideas behind it.

http server using go with boot.dev

Ohhh, finally finished the HTTP Server course on Boot.dev.

it took a good amount of time, and I enjoyed it. it was a hard mission, but worth every second.

this course came after a lot of studying of separate things, from Go to SQL to HTTP clients, and finally all those puzzle pieces started coming together in the HTTP Server course with Go.

i want to start by talking about Go. it took me a long time to learn Go, and it took a little bit longer because i was used to the C family of languages. then Go comes in and introduces a different way of thinking about things, from goroutines and concurrency to arrays, structs, and the overall workflow of writing programs.

Raylib

raylib

i spent a lot of my time doing problem solving and studying the basics, taking input and getting output, all of it inside a terminal. at some point the question shows up: can i see what i am doing at all? when do i get to feel like i am doing a real project, something with a window and something drawn on it. that is where raylib comes in. raylib is a cross-platform open-source software development library. the library was made to create graphical applications and games.

Run-length encoding (RLE)

Run-length encoding (RLE) is a lossless data compression method that reduces the size of data by storing consecutive occurrences of the same value as a single value and a count.

for example: aaabcccc takes 8 bytes of memory, but if you compress it using RLE you get 3 pairs stored in binary: (a,3)(b,1)(c,4) and it will take 6 bytes. as you can see we count how many times a byte appears and store the byte followed by its count.

i don't like your webpage

i keep opening portfolios from people i know, and they are all the same page: here is a person, and here is how they built the page about the person. so let me say the thing i actually think, your web page sucks. three questions first: what is the purpose of the website? how should it perform ? what is the added value? let’s dive on those questions.

first what is the purpose of website ? i would like to take the definition of suckless.org about the web “It has enabled the global information exchange, mass surveillance, studies in social control, allowed revolutions, made a fortune for many billionaires and in the meanwhile ruined our climate: the web.” so how it should do this ? we are not in the 90s where you could set on your pc and wait ton of time to just you 1MB website to load no, we are in a modern era where a website should open in an instant so first, it should load fast. second, it should fit every screen you are not building this for your 69-inch monitor, people are opening your portfolio on a cheap android with a cracked screen on a bad connection(we are in egypt tho..), does it work there? no? then it does not exist.

Back to top