this post was submitted on 08 Jan 2025
1033 points (98.0% liked)

Programmer Humor

19918 readers
1909 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
1033
Good guy clippy (lemmy.zip)
submitted 1 day ago* (last edited 1 day ago) by [email protected] to c/[email protected]
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 1 day ago (3 children)

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

[–] [email protected] 7 points 1 day ago (1 children)

will it also have blackjack and hookers?

load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 17 points 1 day 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!)

[–] [email protected] 9 points 1 day ago

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

[–] [email protected] 2 points 1 day ago

Can I get a browser built entirely on Electron?

[–] [email protected] 10 points 1 day 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.

[–] [email protected] 11 points 1 day ago (2 children)

Or use a real cross-platform UI toolkit.

[–] [email protected] 2 points 1 day ago (1 children)
[–] [email protected] 0 points 23 hours ago
[–] [email protected] 1 points 1 day ago* (last edited 1 day ago) (2 children)

Do you have suggestions?

Last time I looked at QT I didn’t like it

For what it’s worth, I’m not looking at electron but something like an embedded browser mode. I think qt has that

[–] [email protected] 1 points 23 hours ago

I even forgot how that one i liked years ago was named. But Wikipedia has a (likely slightly outdated) list. Just google "cross platform ui toolkit".

[–] [email protected] 2 points 1 day ago (1 children)

Qt is overkill if all you're using it for is to create a window you render into, something like SDL would be better.

[–] [email protected] 1 points 20 hours ago* (last edited 19 hours ago)

That’s how I feel, and I was between SDL and just writing GL code myself.

The problem is I run Mac and OpenGL is at best neglected and is deprecated. If I use webgl and wasm I done have to worry about any of that, and they have sdl for wasm.

Edit: my game is going to be 2d and the UI isn’t going to be more complex than raylib. I’m just playing around but also building an idea I’ve had for years.

[–] [email protected] 2 points 1 day ago

The vast majority of game engines already have seamless cross platform support. Nothing need be done beyond selecting your target when compiling. Use Vulkan instead of dx11/12 and good to go

[–] [email protected] 5 points 1 day ago* (last edited 1 day ago) (3 children)

And yet, the most popular, and desired (and one of the most admired) IDEs that developers use all day, everyday, is built using Electron:

https://survey.stackoverflow.co/2024/technology/#2-integrated-development-environment

[–] [email protected] 13 points 1 day ago* (last edited 1 day ago) (3 children)

~~vscode isn't an IDE, but an actual IDE written in electron would be horrible.~~

I don't want to argue about this anymore. I admit i had a bad take, and this whole thread is just arguing about semantics at this point. Does it even really matter if vscode is an IDE or not? If it works, it works.

[–] [email protected] 12 points 1 day ago (1 children)

It's literally listed in stack overflow's section on IDEs, and functions as a replacement for an IDE. Insisting that it's not an IDE in this context isnt helping anyone communicate, it's just being pedantic.

[–] [email protected] 27 points 1 day ago* (last edited 1 day ago) (1 children)

They also list vim and notepad++ as IDEs, pretty sure they just meant code editors in general.

Fucking NANO is on the list 😂

[–] [email protected] 1 points 22 hours ago

With enough plugins vim can have almost all of the features of an ide. Not that I recommend using it like that tho.

[–] [email protected] 12 points 1 day ago (2 children)

What functionality is Vscode lacking for it to be an IDE?

[–] [email protected] 11 points 1 day ago* (last edited 1 day ago) (4 children)

IDEs come bundled with tooling, such as debuggers, intelligent code completion, and OOTB language support, and language servers.

vscode out of the box doesn't have any of these, you install them with plugins. jetbrains products, for example would be IDEs, but editors like vscode and neovim aren't. Those are code editors.

[–] [email protected] 10 points 1 day ago (1 children)

What’s different between Vscode and other editors like Vim is how easy it is to make it a fully fledged IDE. Usually a notification pops up about analyzers being available, and if you click accept it’s done. Just one click of a button.

With Vim it’s not that easy. You need to install many separate plugins just to make it a fraction of an IDE.

[–] [email protected] 2 points 1 day ago* (last edited 1 day ago)

I agree. I was mainly thinking of neovim, but i guess vim works in this example, too.

I was talking about the base editor itself, though. In the end it doesn't even matter what we consider VSCode to be, i feel this thread has just devolved into arguing about semantics and bikeshedding, and there's no correct solution.

I think i'll just be deleting my main comment, admit I had a bad take and move on. i'm tired of arguing about this.

[–] [email protected] 10 points 1 day ago (1 children)

Seems unnecessarily pedantic 🤷

[–] [email protected] 3 points 1 day ago* (last edited 1 day ago) (5 children)

I don't think it really matters, but the implication you can write a whole IDE in electron is just insane.

It is pretty pedantic, i agree. I don't want to start an argument about something as pointless as this, though.

load more comments (5 replies)
[–] [email protected] 4 points 1 day ago* (last edited 1 day ago) (1 children)

You could call vscode a "DIY IDE Building Kit" because everybody is using it that way.

After you put all the extensions together you basically got a fully featured "IDE" for most languages out there.

Nobody I know uses vscode like a simple "code editor".

[–] [email protected] 3 points 1 day ago

I agree, neither do i. I was talking about base vscode, but i don't think it even matters anymore. There's really no proper answer. Some people use it like a notepad, some people use it like a fully fledged IDE. I'm just tired of arguing over this, and i admit i had a bad take.

[–] [email protected] 3 points 1 day ago (1 children)

I think that whether it needs plugins or not to do the job isn’t really relevant.

You can develop software in a large number of languages including writing the code (with intelligent code completion), building it, committing it to source control and running and debugging it.

If it didn’t use plugins to do that then it’d huge and take ages to start up.

[–] [email protected] 2 points 1 day ago

I didn't mean it in a bad way. I prefer how vscode does it. and i think you're right.

load more comments (1 replies)
[–] [email protected] 5 points 1 day ago

This distinction is not useful since the creation of language servers.

[–] [email protected] 9 points 1 day ago (7 children)

I'm keeping an eye on Zed: https://zed.dev/

Yeah, AI, whatever. It's written in Rust and looks pretty great.

load more comments (7 replies)
[–] [email protected] 4 points 1 day ago

Why is Spacemacs listed separately to Emacs when it's just a fancy Emacs' config?

[–] [email protected] 4 points 1 day ago
load more comments
view more: ‹ prev next ›