HNHacker News
TopNewBestAskShowJobs

BafS

2,245 karma · joined October 19, 2013

submissionscomments
BafS··on Proton spam and the AI consent problem
It's time for the famous quote

"Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety."

- Benjamin Franklin

Edit: format

BafS··on Phptop: Simple PHP ressource profiler, safe and useful for production sites
I can't praise SPX enough, it has saved my ass multiple times. The UI is great too.
BafS··on Proton: We're giving away over $1M to support a better internet
Definitely not, you cannot have E2E encryption without it
BafS··on PHP 8.4
You don't like magic? /s
BafS··on Un Ministral, Des Ministraux
It's complex because french is full of exceptions

the classical way to pluralize "–al" words:

  un animal → des animaux [en: animal(s)]
  un journal → des journaux [en: journal(s)]
with some exceptions:

  un carnaval → des carnavals [en: carnival(s)]
  un festival → des festivals [en: festival(s)]
  un idéal → des idéals (OR des idéaux) [en: ideal(s)]
  un val → des vals (OR des vaux) [en: valley(s)]
There is no logic there (as many things in french), it's up to Mistral to choose how the plural can be

EDIT: Format + better examples

BafS··on PHP in 2024
I worked with Laravel and trust me, it's a pain in the ass when you have a medium/big project. The "documentation" (more a how-to) is full of bad practices, the facade pattern makes it hard to refactor or change the underline logic, you can break the contract easily (it's just php annotations, not real type-hints), the ORM is a pain to test and has too much magic, you use strings to set the validation makes it hard to understand when it's not trivial, the request->input() takes query/body so you end up mixing everything and some clients use the API in various way, there is helpers to get the config/service anywhere (even in static methods) which makes it painful to test and refactor, etc. I strongly recommend to use Symfony instead, the documentation is great, the profiler is built-in, the cache is better (faster), it's type-hinted and strict, there is interfaces, it scales well because it's flexible and well thought.
BafS··on [dead]
Do you think they planned on being anonymous or world famous?
BafS··on V Language Review (2023)
I got banned from their telegram channel because I posted this link, they are not open to criticisms.
BafS··on Apple has not fixed the macOS audio left/right balance bug for nearly 10 years
I have the exact same issue, it starts to be choppy at random time and I have to reboot, usually in the middle of my work. I'm considering switching to another OS because of this single issue that has been there for years.
BafS··on Sidebery – A Firefox extension for managing tabs and bookmarks in sidebar
You can find screenshots there: https://addons.mozilla.org/en-US/firefox/addon/sidebery/
BafS··on Is ORM still an anti-pattern?
Eloquent is one of the worst ORM I worked with. It works until it doesn't, there is too much magic and it mixes SQL/Entity in the same class. Since then I use doctrine and/or repository pattern which makes the code more extensible and testable, it's also trivial to do your own raw SQL request and map it to your entity if you don't want to rely on an ORM.
BafS··on Go with PHP
Absolutely, having worked with Laravel I can only recommend not to use it, Symfony does a much better job.
BafS··on Go with PHP
It's terrible indeed but Laravel pushes for this kind of "fluent" apis
BafS··on Show HN: Neat – Minimalist CSS Framework
Shameless plug; there is also mucss: https://github.com/BafS/mu, a 1 ko css file.
BafS··on PHP – The Right Way
You should also have a look to api-platform (https://api-platform.com/), it's based on Symfony and you can create Rest or GraphQL APIs with ease.
BafS··on PHP – The Right Way
It comes from Laravel (https://laravel.com/); "The PHP Framework for Web Artisans". The command line entry point is also called "./artisan".
BafS··on How PHP Opcache Works
You should have a look to Bref (https://bref.sh/)
BafS··on Ask HN: Who is hiring? (April 2021)
ProtonMail | Mid/Senior Software Engineer | Remote (Europe), Prague, Taipei, Barcelona, London, Zurich, Geneva | Full-time

We are looking for backend engineers at ProtonMail, we are working with modern PHP and Symfony on our API side.

At Proton, we envision an internet where privacy is the default, and we’re building ways to help all people secure their digital lives and take control of their data.

ProtonMail was founded in 2014 by a group of scientists who met at the European Organization for Nuclear Research (CERN). And since its inception, the company has grown at a fast pace and today has over 40 million users. Our principal product, ProtonMail, is the world’s largest secure email service. Our second product, ProtonVPN, is one of the world’s most popular VPN services. Our vision is to build an internet platform for the protection of digital rights, and we are also developing additional products, including ProtonCalendar, ProtonDrive, and more to come.

To apply see https://careers.protonmail.com/o/backend-engineer-api

BafS··on Show HN: Mezon PHP Router is up to 76 times faster then League Router
You should cache Laravel and Symfony's routes if you want a fair benchmark. You should check https://medium.com/@nicolas.grekas/making-symfonys-router-77....
BafS··on Compiz: Ubuntu Desktop's little known best friend
Lot of nostalgia. For those who want to try on mac you can have something similar with Deskovery
BafS··on Isao Takahata, Studio Ghibli Co-Founder and Director, Dies at 82
I saw it as a teenager/kid (~16 years old) and it made me deeply sad but also more connected to people who have to experiment the atrocities of the war. I don't think it's bad for kids if they are not too young, it's not an easy movie but you can learn a lot from it.

edit: typo

BafS··on The Interface font family
Thanks for this font, I really appreciate the mix between Roboto and Helvetica or San Francisco. The cuts of Interface are more horizontals than Roboto (look the S for example) and I find it more readable, rational and beautiful. Good job !
BafS··on Browse Against the Machine
Opera do the job well for me, it's minimalist too and seem to perform better than Chrome for batteries life on my machine (also it support the touche bar).
BafS··on Emil Cioran: Anti-philosopher of Life and Death
Albert Caraco [1] is even darker than Cioran. He committed suicide right after his father's death.

[1] https://en.wikipedia.org/wiki/Albert_Caraco

BafS··on Mini.css: Minimal, responsive, style-agnostic CSS framework
If you want to try something really lightweight (1kb in fact) I made "mu": https://github.com/BafS/mu
BafS··on Show HN: Gutenberg – Modern CSS framework to print the web correctly
It is because the fonts are not loaded. The print mode handles it in this way, I will see how I can fix that, thanks!
BafS··on Show HN: ColorMe
Nice job. Adobe Color (https://color.adobe.com) is also a similar tool.
BafS··on Angular 2.2.0 Now Available
Duplicate: https://news.ycombinator.com/item?id=12953070
BafS··on Libreboot – A free BIOS or UEFI replacement
Maybe it is more about that: https://libreboot.org/gnu/
BafS··on RethinkDB needs a new home
And... Apache in C
Page 1 of 2Next →