this post was submitted on 08 Jan 2025
1093 points (98.1% liked)

Programmer Humor

22291 readers
963 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
1093
Good guy clippy (lemmy.zip)
submitted 3 months ago* (last edited 3 months ago) by Maven@lemmy.zip to c/programmer_humor
 
top 50 comments
sorted by: hot top controversial new old
[–] Pechente@feddit.org 147 points 3 months ago* (last edited 3 months ago) (7 children)

For anyone considering Electron: take a look at Tauri. It’s another way to build cross-platform apps with web tech. It will use the OS‘s web rendering engine instead of shipping Chromium which results in much smaller binaries and faster startup times and less RAM usage. You can also write native code in Rust. It’s like Electron but good.

[–] OmegaLemmy@discuss.online 55 points 3 months ago (3 children)

Bad for Linux at the moment...

That being said, it won't improve just by saying it's bad for Linux, if you work as a maintainer in a distro, or know a lot about Linux and rust to help their development then please reach out!!!

The sooner tauri is usable everywhere the more people will prefer it

[–] Pechente@feddit.org 27 points 3 months ago

I didn't try out a Tauri app on linux yet, I just know that it's generally supported. What doesn't work (well) as of now?

[–] asdfasdfasdf@lemmy.world 16 points 3 months ago (1 children)

First I've heard of this. What's wrong on Linux?

[–] OmegaLemmy@discuss.online 13 points 3 months ago* (last edited 3 months ago)

Outdated theming and ~~several widgets(?)that aren't implemented~~ general instability such as random crashes, code not behaving similarly to Mac or Windows, slowdowns, missing packages in builds, a lot of window resizing issues and uh, fuck load of appimage issues

load more comments (1 replies)
[–] bulwark@lemmy.world 20 points 3 months ago (1 children)

There's actually a pretty cool music player project I'm keeping an eye on called Audioling that's built on Tauri. I currently use one called Feishin which is pretty good.

load more comments (1 replies)
load more comments (5 replies)
[–] some_guy@lemmy.sdf.org 75 points 3 months ago (1 children)

Electron apps are a crime against computing.

[–] ZILtoid1991@lemmy.world 7 points 3 months ago (1 children)

A crime commited by techbros of the early 2010's, who envisioned an end to desktop applications, and them being replaced by websites.

load more comments (1 replies)
[–] AlexWIWA@lemmy.ml 37 points 3 months ago (9 children)

Electron and unreal have been disasters for their industries

[–] Thcdenton@lemmy.world 16 points 3 months ago (1 children)

Bruh i rant against both weekley

[–] AlexWIWA@lemmy.ml 17 points 3 months ago (2 children)

Everything runs like shit now. My old xp retro gaming pc feels snappier than my new one.

[–] marcos@lemmy.world 13 points 3 months ago

I think there's a very large correlation between people that decide to use electron and people that write unusable, broken, tortoise-speed software.

Because it really doesn't need to be slow for user-interacting software. In fact, I don't think any platform exists that is so bloated that it can make modern computers slow for user-interaction.

[–] mindbleach@sh.itjust.works 7 points 3 months ago

Some people are still waiting on a text editor that never lags.

load more comments (8 replies)
[–] mlg@lemmy.world 37 points 3 months ago (4 children)

I think VSCode is the only stable electron application and even then it took them like 5 years to reach passable stability lol.

Used to crash and combust all the time when I first tried it.

[–] Scrollone@feddit.it 15 points 3 months ago

Zed is native and it has way better performance! You can tell it's not Electron!

[–] kshade@lemmy.world 9 points 3 months ago* (last edited 3 months ago) (3 children)

Etcher seems stable! But it's also a well over 100 MB download for a disk image writer. Rufus does more in less than 1% of the download size and also has a GUI.

load more comments (3 replies)
load more comments (2 replies)
[–] umbraroze@lemmy.world 25 points 3 months ago (1 children)
  • Yes
  • Yes, and also delete Electron
  • That, and also make me forget I ever even heard about Electron in the first place
[–] mindbleach@sh.itjust.works 21 points 3 months ago

HTML5 applications goddamn well ought to be first-class programs, as a totally platform-agnostic realization of Turing completeness.

Instead you get every application bundled with its own whole-ass operating system and virtual machine. For a fucking webpage. Yep! No other way to run that on a modern computer!

[–] aliser@lemmy.world 19 points 3 months ago (5 children)

what's are the alternatives? I want ease of writing UIs js/CSS/HTML gives, especially with frameworks like svelte.

[–] Maven@lemmy.zip 24 points 3 months ago* (last edited 3 months ago) (1 children)

I'd highly recommend Tauri. It's much much much faster and you can use svelte for the front end and enjoy all of those benefits.

The "downside" is that all of the backend is written in rust which can be trouble to learn... (Downside is in quotes because rust is my favorite language and I would legally marry it if the law cared about the true meaning of love) However! If you don't care much about the backend stuff or most of that is gonna be simple anyway... Just use it. It's better in every way

Edit for context: I'm the lead developer of a "popular" (it's as popular as you can be as a niche tool for a niche community) open source project that uses Tauri with a svelte front end and rust in the back end.

load more comments (1 replies)
[–] riodoro1@lemmy.world 18 points 3 months ago (1 children)
[–] renzev@lemmy.world 12 points 3 months ago

Or, get this, a PWA.

load more comments (3 replies)
[–] Gladaed@feddit.org 19 points 3 months ago (3 children)

The checkbox should be grayed out.

load more comments (3 replies)
[–] 30p87@feddit.org 17 points 3 months ago (2 children)

When gecko electron?

(Yes, I know that there has been effort to that, but at one point having gecko and FF seperate was too much work, so it was merged further, so that it's now even harder to create a gecko-based electron. So basically just create a clean FF profile, add all addons you want (uBlock and noscript are useful for some apps), and make a desktop shortcut to open the web page in that specific profile. Funnily enough, it's more lightweight!)

[–] __nobodynowhere@startrek.website 10 points 3 months ago

XULRuner use to exist. I ran Chatzilla under it at one point in time.

load more comments (1 replies)
[–] serenissi@lemmy.world 11 points 3 months ago (2 children)

Any tech college kid can write an app in common frameworks. I'll admit llm code generators are great when they can translate electron apps to say tauri or even better to QT at reasonable cost :)

[–] ZILtoid1991@lemmy.world 11 points 3 months ago (3 children)
load more comments (3 replies)
[–] flying_sheep@lemmy.ml 10 points 3 months ago (2 children)
  • Qt “cute” (the UI framework)
  • QT “cutie” (QuickTime the Apple media framework)
[–] Maven@lemmy.zip 10 points 3 months ago

QT "cutie" (you 😊😳)

[–] pool_spray_098@lemmy.world 8 points 3 months ago

Well that would be even more impressive.

[–] wise_pancake@lemmy.ca 10 points 3 months ago (2 children)

I’m experimenting with a game and rather than deal with platform specific graphics I’m just targeting wasm and webgl and plan to embed my game in a browser runtime.

It feels less terrible than the mess that is linking platform specific logic and code.

[–] MonkderVierte@lemmy.ml 11 points 3 months ago (6 children)

Or use a real cross-platform UI toolkit.

load more comments (6 replies)
load more comments (1 replies)
[–] httperror418@lemmy.world 8 points 3 months ago (3 children)

But I'll build an electron app, and have support for Linux /s

[–] frosty@pawb.social 7 points 3 months ago (1 children)

will it also have blackjack and hookers?

[–] Lemminary@lemmy.world 15 points 3 months ago

It'll only have blackjack and hookers.

load more comments (2 replies)
load more comments