this post was submitted on 10 Oct 2023
826 points (96.9% liked)

Programmer Humor

32740 readers
675 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] randomaccount43543@lemmy.world 111 points 1 year ago (9 children)
load more comments (9 replies)
[–] jmcs@discuss.tchncs.de 92 points 1 year ago (3 children)

*Badly outdated Chrome with a bunch of critical vulnerabilities.

Don't forget every Electron app comes with its own Chrome.

[–] qaz@lemmy.world 42 points 1 year ago* (last edited 1 year ago) (2 children)

Last time I checked the version Electron used by Discord was severely out of date causing several issues that had been solved months ago upstream. That’s the fault of Discord, not Electron but there are several issues with Chromium that I have to deal with on every Electron app I use. Compose sequences are still partially broken. I reported it at Chromium but they responded with a video of them testing it on Windows (not with a VM), said they couldn’t reproduce the issue (with a Linux specific input method?!) and then marked it as unreproducible.

[–] jmcs@discuss.tchncs.de 23 points 1 year ago (3 children)

Wait, you're telling me that Discord is probably still vulnerable to the Webp RCE vulnerability?

[–] SmoothIsFast@citizensgaming.com 19 points 1 year ago

They use plain text and there biggest shareholder is the Tencent (the CCP let's be real) are you surprised? It's literally a data farm for China...

[–] dinckelman@lemmy.world 7 points 1 year ago

They updated to a version that included a patch for that exploit, however it doesn't matter in the grand scheme of things, because they're still on 22.x, support for which has already been terminated

[–] qaz@lemmy.world 7 points 1 year ago

They probably manually added the patch.

[–] halva@discuss.tchncs.de 10 points 1 year ago (1 children)

Problem is, for any somewhat big project (like discord) updating Electron without something breaking is a nightmarishly complex venture as Electron doesn't seem to care about backwards compatibility.

[–] ICastFist@programming.dev 12 points 1 year ago (1 children)

The error is in picking Electron in the first place. One particular case that I've had with several Electron apps are zombie processes. You close the window, but you check the task manager and see 4-5 processes hanging in there, eating resources for no reason.

[–] qaz@lemmy.world 3 points 1 year ago* (last edited 1 year ago) (1 children)

I agree that it’s silly to package your app as a website with a browser but what other options do you have? GTK is difficult to get working on Windows, wxwidgets requires installing libraries on every system and Qt is either paid or LGPL. The only real crossplatform options seem to be Flutter and some .NET frameworks.

[–] ICastFist@programming.dev 4 points 1 year ago

FreePascal + Lazarus have been desktop crossplatform for many years. "But it's Pascal! Nobody uses Pascal! And the defaults are fugly!", fair enough, but it offers compatible crossplatform UI with a single codebase.

Java also lets you write UI stuff and keep a single codebase for multiple platforms, thanks to the JVM. It always looks "weird" or "ugly" next to whatever OS's default UI is and also needs a compatible JRM installed, but it works.

Nowadays, web/javascript projects can opt for Tauri or Neutralinojs instead of Electron. They use the OS's native HTML renderer, no browser required.

[–] RacoonVegetable@reddthat.com 10 points 1 year ago

And they thought snaps were dumb

[–] rdri@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

Steam is using CEF v85 (not Electron but still). Should have gone "please be aware to not visit even slightly shady websites until we update it" but instead went "oh you must like security, so we announce that we will drop Windows 7/8 support in half a year (because ~~CEF~~ Microsoft doesn't support it anymore) so you could play your games more securely".

[–] Vincent@kbin.social 53 points 1 year ago (3 children)

Y'all, there's a full video, this single image doesn't do it justice: https://birdbutt.com/@barnibu/110995778137311940

[–] solivine@sopuli.xyz 22 points 1 year ago

Lol edge at the end got me

[–] HKayn@dormi.zone 14 points 1 year ago

The fact that the frame rate of the camera pan doesn't match up with the frame rate of the props is kinda nauseating ngl

load more comments (1 replies)
[–] RacoonVegetable@reddthat.com 51 points 1 year ago (2 children)

Screw chromium! All my homies hate chromium!

[–] cheerjoy@lemmy.world 38 points 1 year ago (1 children)

Please don't screw chromium, you might cut yourself on the edges.

[–] RacoonVegetable@reddthat.com 16 points 1 year ago* (last edited 1 year ago)

😳 thanks for the heads up. Because if I’m gonna cut myself down there I’m gonna scream like I’m in a Vivaldi Opera. And you know me — I was definitely Brave enough to have some Steamy “Noah get the Ark” action with it, so you literally saved me.

BTW I heard that Chrome is bad for the environment because it’s so resource intensive. That’s why me and car manufacturers are getting rid of it.

Plus I hate how it looks and feels. I would much rather get stranded in a Safari than have to stand how chrome looks.

[–] Illecors@lemmy.cafe 13 points 1 year ago (2 children)

It is not clear from this pictures whether these drums are finger size or building size. Need more perspective!

[–] RacoonVegetable@reddthat.com 7 points 1 year ago

Least scuffed Aliexpress experience

load more comments (1 replies)
[–] technologicalcaveman@kbin.social 46 points 1 year ago (5 children)

'Ate chrome
'Ate system d
'Ate GNOME (not racist just don't like it)

Love me firefox
Love me openrc
Love me TTY and DWM
Love me Gentoo

[–] redhilsha@lemmy.ml 11 points 1 year ago (8 children)

wayland is the future old man

[–] Dirk@lemmy.ml 4 points 1 year ago (3 children)

Wayland can't even remap keys to other characters.

load more comments (3 replies)
load more comments (7 replies)
[–] Gentoo1337@sh.itjust.works 7 points 1 year ago (1 children)
[–] technologicalcaveman@kbin.social 7 points 1 year ago* (last edited 1 year ago) (1 children)

Flex your makeopts jobs amount. I've got 30.

[–] Gentoo1337@sh.itjust.works 5 points 1 year ago (1 children)

I don't know why but you comment reminded me that I haven't updated in a week 💀

I use gentoo on a laptop so I have 4 makeopts jobs only.

[–] technologicalcaveman@kbin.social 4 points 1 year ago (1 children)

Ow. I didn't use gentoo until I had good enough hardware that updates wouldn't take 2 days to finish. I used arch or freebsd when I only had a laptop available.

[–] Gentoo1337@sh.itjust.works 3 points 1 year ago (1 children)

Surprisingly, it only takes a couple of minutes. Except if I have to update firefox or nodejs or clang or llvm or gcc, those take 4 hour minimum and it's worse when they all have to update at the same time. It's spring where I live and I don't want to know what will happen to my laptop when i try to update on summer.

I think for me, it takes around 45 minutes to do a full system update when I run it. I usually run it every 3 days or so.

[–] Gleddified@lemmy.ca 5 points 1 year ago
[–] gronjo45@lemm.ee 4 points 1 year ago (1 children)

I want to get better at using TUIs and all the lot of lighter-weight software, but I've quite frankly been too stupid to learn it.

I downloaded Gentoo onto an old Chromebook with the Mr Chromebox script. Currently am trying to make it into a sandbox for me to learn more about how init systems, compilers, and other lower level OS details.

Other than reading the Wikis, are there any projects that you'd suggest to increase one's ability in those realms? Thanks!

Really what got me to learn to use the terminal more was downloading systems without tons of gui apps. Most base systems will be like that. In general my only gui apps are a file browser, web browser, and audio tools. Debian, arch, gentoo, nix. Avoid stuff like mint or endeavour if you want to force yourself into learning the terminal. The more you use it, the better you'll get. Using gui apps isn't bad, sometimes it just works better for specific actions. But knowing how to use the terminal helps for when nothing else works.

load more comments (1 replies)
[–] Mandy@sh.itjust.works 38 points 1 year ago (2 children)

Future?, we basically living it already

[–] superduperenigma@lemmy.world 19 points 1 year ago

The future is now, old man!

load more comments (1 replies)
[–] thepiguy@lemmy.ml 27 points 1 year ago (1 children)

Leave me in the "past" with my gtk4 applications please.

[–] TCB13@lemmy.world 17 points 1 year ago (3 children)

Isn't that Webkit as well? lol

[–] jackmarxist@lemmy.ml 20 points 1 year ago (1 children)

Is there a Firefox powered framework like electron?

[–] sheogorath@lemmy.world 21 points 1 year ago* (last edited 1 year ago) (1 children)

gluonjs could be an alternative. IIRC there's another framework similar to Electron that uses native system WebView for rendering and Rust for interfacing directly with the OS, the name escapes me for the moment though.

Edit: I remembered the name! It's Tauri

[–] ICastFist@programming.dev 15 points 1 year ago (4 children)

NeutralinoJS is an option similar to Tauri. You don't need to bundle a whole fucking browser just to run a couple of webpages with some javascript.

load more comments (4 replies)
[–] dgbbad@lemmy.zip 11 points 1 year ago

Cyberpunk 2077 proves this to be true.

[–] trailing9@lemmy.ml 10 points 1 year ago

All refs load into ChRome.

[–] Saigonauticon@voltage.vn 4 points 1 year ago (2 children)

It was the best scene in Mad Max.

load more comments (2 replies)
load more comments
view more: next ›