Araozu

joined 2 years ago
[–] Araozu 16 points 2 years ago (3 children)

Google silently shipping signed chrome executables soon...

And then people wonder why non chromium browsers are important

[–] Araozu 9 points 2 years ago (6 children)

Wouldn't spoofing work? Like, if the browser just sends "yes, no extensions, adblock, blah blah" then how would the attestation server know if that's true? Or does it require signed binaries, or some special hardware?

[–] Araozu 3 points 2 years ago (1 children)

If I have to be awake at a certain time, inside my dreams I'd be always reminding myself to be awake at that time. Not the best sleep, but at least im where and when I need to be

[–] Araozu 1 points 2 years ago (1 children)

Ah, asprite, an example of the reason why people pay for binaries, and open source is economically viable. Took me so long time to install and setup all the dependencies, by the time it was installed i got bored.

[–] Araozu 10 points 2 years ago

Why would you say something so controversial yet so brave?

[–] Araozu 3 points 2 years ago

You can try LibreTube, it has almost all the features of youtube. Only downside is some videos are slow to load, but if you can host your own Piped instance that's solved. It has sponsorblock built in, regular updates, and a better ui imo

[–] Araozu 1 points 2 years ago (1 children)

A year ago that would randomly appear for me. It seems they were a/b testing it.

[–] Araozu 2 points 2 years ago

Libretube with my own Piped instance, almost flamless. One line setup with docker, Runs perfectly on a 5$ VPS. I haven't entered youtube in months, there is no reason other that to import suscriptions, channels, etc.

Only problem is for some reason some not-so-popular videos are slow to load on 720p, but load fine in 480p or 1080p. Really weird.

[–] Araozu 15 points 2 years ago (1 children)

How about "php enables me to code like a moron", or even better, "php breaks common conventions and forces me to think about every little detail and special edge case, slowing me down if I don't want to accidentally 'code like a moron' "

Nested ternary operators emerge because of the lack of if/switch expressions (which is C fault), so they are "useful" (they shouldn't be). However, PHP is the only language that treats it as left associative. This has 2 problems:

  • You are forced to use parenthesis. Some (insane) people might do: (cond1) ? "A" : (cond2) ? "B" : "C" And it makes sense. Its ugly af, but it makes sense. But PHP now forces you to use more parethesis. It's making you work more.
  • It breaks convention. If you come from any other language and use ternary operators, you will get unexpected results. After hours of banging your head against the wall, you realize the problem. And now you have to learn a new edge case in the language, and what to do to actually use the language.

"But you shouldn't use ternary operators anyway! Use if/switch/polymorphic dispatch/goto/anything else"

True, but still, the feature is there, and its bad. The fact that there are other alternatives doesn't make the PHP ternary operator worse than other languages' ternary operator.

PHP works against you. That's the problem. The ternary operator is not a good example, since there are alternatives. But look at something so simple, so mundane like strpos.

If strpos doesn't find returns false. Every other language returns -1. And if you then use this value elsewhere, PHP will cast it to 0 for you. Boom, your program is broken, and you have to stare at the screen for hours, looking for the error.

"BuT yOU sHoUlD AlwAyS cHEcK tHe rETurN eRRor!"

And even if that's true, if we all must check the return value, does PHP force you to do so? Like checked exceptions in Java? Or all the Option & Result in Rust? throws, throws, throws... unwrap, unwrap, unwrap... (Many) people hate those features

PHP works against you. And that's why its bad.

view more: ‹ prev next ›