HNHacker News
TopNewBestAskShowJobs

kingofthehill98

269 karma · joined May 2, 2023

submissionscomments
kingofthehill98··on Open-sourcing our progress on Tailwind CSS v4.0
That was kind of my story lol

I was heavily into full-stack SSR frameworks + jQuery, then Angular and React came along and I was like "oh heaven, is this were we headed?", ignored both of those for years and finally found peace in the sacred words of Evan You.

kingofthehill98··on Open-sourcing our progress on Tailwind CSS v4.0
Do not use @apply. Embrace the chaos.
kingofthehill98··on Open-sourcing our progress on Tailwind CSS v4.0
I have, it's just as good if not a tad better, but I'm so comfortable and productive with Vue and they're so similar that it's just not worth switching. I'm also very familiar with the Vue ecosystem, so anytime I need a library or plugin I know exactly what to pull.
kingofthehill98··on Open-sourcing our progress on Tailwind CSS v4.0
I'll take this over grepping hundreds CSS files trying to find that one specific class and hoping it's not used anywhere else anyday of the week.
kingofthehill98··on Open-sourcing our progress on Tailwind CSS v4.0
Tailwind is the second best thing ever happend to frontend, only Vue 3 tops it.

Not having to come up with names for CSS classes, no duplicated CSS code, no fighting conflicting classes, everything in one file, being able to visualize a component just by reading the code... it's a godsend. I'll never go back to SCSS unless work obliges me.

Vue 3 with <script setup lang="ts">, TailwindCSS and Vite. The way God intended.

kingofthehill98··on Man in remission from blood cancer and HIV after remarkable treatment
Some highlights after reading the Wikipedia article on Stem cell controversy:

- Austria, Denmark, France, Germany, Portugal and Ireland do not allow the production of embryonic stem cell lines

- The creation of embryonic stem cell lines is permitted in Finland, Greece, the Netherlands, Sweden, and the United Kingdom

- Arkansas, Indiana, Louisiana, North Dakota and South Dakota have passed laws to "prohibit the creation or destruction of human embryos for medical research"

- China has one of the most permissive human embryonic stem cell policies in the world. In the absence of a public controversy, human embryo stem cell research is supported by policies that allow the use of human embryos and therapeutic cloning.

- The Catholic Church opposes human embryonic stem cell research calling it "an absolutely unacceptable act." The Church supports research that involves stem cells from adult tissues and the umbilical cord, as it "involves no harm to human beings at any state of development."

- Islamic scholars generally favor the stance that scientific research and development of stem cells is allowed as long as it benefits society while causing the least amount of harm to the subjects.

kingofthehill98··on What is going on in Argentina?
>That sounds like a common world problem, not anything specifically Brazilian.

Before the pandemic I personally never saw a single person denying vaccines to their children. Our health system had one of the most successful vaccination programs in the world, we were nearing 100% rates on a country with a scale of continent. Since Bolsonaro our rates are dropping on a very alarming rate and on the streets you see people trash talking vaccines all the time, even solved diseases and infections are returning because of this.

And about the 700k deaths, a lot of studies have been published proving that if the piece of shit bought the vaccines earlier hundreds of thousands of lives could've been saved, or if he did not made a public campaign AGAINST the vaccine we could've saved countless lives.

kingofthehill98··on What is going on in Argentina?
>Why not give libertarianism a shot?

Because it's capitalism on steroids? Are you not aware of the world we're living in? Every major forest destroyed, countless species exctinct, climate change reaching point of no return, etc.

We urgently need to slow down, not speed up.

kingofthehill98··on What is going on in Argentina?
They elected a freakin' maniac and they're gonna pay a heavy price for that.

In Brazil we have a saying "pior que tá não fica", which translates to something like "it cannot get worse than this". Belive me when I say this: it can (and probably will) get worse. It can (and probably will) get SO MUCH worse.

We tasted this poison with 4 years of Bolsonaro trying to get away from the establishment. What did we get in return? 700k brazilians died to COVID, we now have a huge anti-vax problem and after the piece of shit lost the election he attempted a COUP. Luckily he's going to jail on the next few months, but the damage is done.

kingofthehill98··on My PHP Problems
Just out of curiosity, when was the last time you worked with Symfony?

The framework has changed massively after the earliest versions (1~3). These days it's very similar to Java's SpringBoot. After scaffolding all you get is a thin layer with the HTTP abstraction, configuration support, reflection-based Dependency Injection and a testing framework (PHPUnit).

Since the framework is component-based you pull dependencies as you need them. I find the documentation really good and honestly I don't see much magic in it, it's an event-based web framework. Laravel and it's facades on the other hand is very magical.

kingofthehill98··on My PHP Problems
Honestly I don't see it that way.

The blog author makes solid points that I agree. Meanwhile AFOBD just make fun of stdlib inconsistencies and of language quirks, most of which were fixed throughout the years.

AFOBD is so incredibly outdated that this paragraph is still there: "PHP is naturally tied to Apache. Running it separately, or with any other webserver, requires just as much mucking around (possibly more) as deploying any other language.".

kingofthehill98··on My PHP Problems
It's such a perfect match for the HTTP protocol. You drop a file on a server and you're good to go. My toy VPS is full of useful scripts that I use on a daily basis. Most of them are literally one big file with all of the code, no external dependencies. Caddy proxy the request into PHP-FPM and send back the response, no bullshit.

Of course this is not what we see at production-grade software, but I really enjoy the fact that the language was designed with the HTTP protocol in mind. It's really unique in this sense.

kingofthehill98··on My PHP Problems
Loved this article, those were all great points that I have faced on my daily job at a PHP shop.

A breath of fresh air in amids of thousands of "ew, such a bad language" and "a fractal of bad design", the latter being incredibly outdated and still referenced from time to time.

I love PHP, it was my first language and it's one hell of a productive ecosystem to be in. Laravel is an excellent choice for rapid prototyping and Symfony is probably one of the best web frameworks for enterprise projects. Paired with coroutines extensions such as Swoole/OpenSwoole/Swow it puts one hell of a fight performance wise with more modern languages.

kingofthehill98··on Ask HN: What books changed the way you think about almost everything?
Das Kapital
kingofthehill98··on How Wikipedia became the last good place on the internet
There is no such thing as neutrality or unbiased views, we are humans, everything we do or say is filled with bias. Claiming for Wikipedia to "stay neutral" is a bias itself.

They do as good of a job as any of us in trying to stay neutral.

kingofthehill98··on A four year plan for async Rust
Every day we stray further from god.
kingofthehill98··on Chile to Nationalize Lithium Industry
Anyone who doubts this should checkout what the Chicago Boys did during the military dictatorship that Chile went through last century.
kingofthehill98··on Make your Python functions return something meaningful, typed, and safe
I tend to agree, Python really shines when it's just being Python.

I only typehint certain parts of the code where i find it usefull. Typehinting everything makes Python code really hard to read IMO.

← PreviousPage 2 of 2