this post was submitted on 12 Aug 2023
722 points (96.3% liked)

Programmer Humor

32356 readers
425 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
[–] Dirk@lemmy.ml 151 points 1 year ago (1 children)

Web 2.0 or: “Instead of loading all code from the same URL the website now needs a dozen of different scripts from a dozen of different URLs, gives a shit about CSP and only shows a blank page when JS and/or cookies are disabled.”

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

Don't worry, texteditor.com is also available as an app on Windows, macOS and Linux thanks to Electron.

It only needs 300 megabytes and you can style it with CSS.

load more comments (2 replies)
[–] mawkler@lemmy.ml 79 points 1 year ago (2 children)

I'm not sure which is worse. I mean most desktop programs are just glorified web browsers anyway (i.e Electron)

[–] grue@lemmy.ml 57 points 1 year ago (4 children)

What do you mean, "most?" Electron apps are the vast minority of desktop apps.

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

Electron apps are the vast minority of desktop apps.

"Not for long!" - Multiplatform programmers

[–] Simran@lemm.ee 12 points 1 year ago* (last edited 1 year ago) (1 children)

They are probably referring to the amount of progressive web apps that are out now.

[–] ZILtoid1991@kbin.social 8 points 1 year ago

As long as you don't check the task manager.

[–] darcy@sh.itjust.works 8 points 1 year ago

by market share (vscode)

[–] Rubennaatje@feddit.nl 5 points 1 year ago

I mean look at the most used applications these days, discord, Spotify, teams, steam, vscode, slack, etc

They might not all exactly be electron but theyre all secretly browsers.

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

But you can use more shortcuts!

I hate editors in browser. With Chrome at least --kiosk turns them in proper apps. In Firefox it's impossible to turn off browser shortcuts and use them to work.

What barbarian do they think I am, using a mouse to do stuff on my editor. I need long complex absurd keyboard shortcuts to function

[–] ArcticPrincess@lemmy.ml 12 points 1 year ago (1 children)

Allow me to introduce: Firefox vim keybindings extensions. So many more shortcuts if you don't need to worry about typing characters in normal mode.

[–] darcy@sh.itjust.works 3 points 1 year ago (1 children)
[–] chocobo13z@pawb.social 2 points 1 year ago (1 children)

I'm a Tridactyl person, myself

load more comments (1 replies)
[–] steal_your_face@lemmy.ml 57 points 1 year ago (2 children)
[–] ZILtoid1991@kbin.social 51 points 1 year ago (2 children)

Linux doesn't have a standard file extension for executable files, and that wouldn't have been good for this meme.

[–] Andrew15_5@mander.xyz 26 points 1 year ago

You can: ./texteditor, ./bin/texteditor, "texteditor binary", "(local) texteditor program".

[–] nothacking@discuss.tchncs.de 14 points 1 year ago (2 children)

.elf is the closest thing we have.

[–] RickyRigatoni@lemmy.ml 29 points 1 year ago (2 children)

I hate elves. If I see any elves in my computer I'm throwing it in the forge.

YES BROTHER KILL THE ELVES

[–] KSPAtlas@sopuli.xyz 10 points 1 year ago

Eh, .elf is more for really low level ELF files, so a program would just be named program, a kernel would be named kernel.elf

[–] nomadjoanne@lemmy.world 21 points 1 year ago

Oh they're just making a general point.

My gf did ask me why there wasn't an "exe" on my linux system though. But that's another story.

[–] ndsvw@feddit.de 38 points 1 year ago (3 children)

Todo for me: Create a texteditor in the Web3.0 blockchain

[–] ivanafterall@kbin.social 34 points 1 year ago (2 children)

Award me a proprietary Ethereum-based crypto token for editing my text with your tool and I'm sold.

[–] ZILtoid1991@kbin.social 13 points 1 year ago (2 children)
[–] Rai@lemmy.dbzer0.com 7 points 1 year ago

We use users’ text to train LLMs as well, right?

[–] acastcandream@beehaw.org 2 points 1 year ago

God it’s so easy

[–] MyFairJulia@lemmy.world 2 points 1 year ago

I've been wondering which crypto product i should work on. What do you think is the most promising project?

KateKash, Nanocoins, VimBucks, NotePetz++ (i heard cryptobros love ERC-20 based lifeforms), M$ WorDillars

[–] Veraxus@kbin.social 7 points 1 year ago

🤮🤮🤮🤮🤮🤮🤮🤮🤮🤮🤮🤮

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

Considering the tiny token size (1MB?), you might be able to squeeze an editor into an NFT. Heavens knows why you would, but you can.

[–] Midnitte@kbin.social 38 points 1 year ago (1 children)
[–] MyFairJulia@lemmy.world 22 points 1 year ago (1 children)

Kind of. First you have to buy a Texteditor token and then the license says you're permitted to open the IPFS link in order to use Texteditor.

[–] prr@lemmy.world 6 points 1 year ago

You missed the part where tokens are stolen.

[–] aluminium@lemmy.world 24 points 1 year ago (4 children)

Bruh, I actually prefer the "Web 2.0" solution. That way the god damn editor can't just start accessing all the shit on my drive.

[–] TheOldRazzleDazzle@lemm.ee 45 points 1 year ago (1 children)

Lol but included in the source for www.texteditor.com is analytics, beacons, etc from Google, Microsoft, Facebook, Twitter, Cloudfare, and a bajillion different ad networks that send the content of your text file to AI models.

load more comments (1 replies)
[–] grue@lemmy.ml 31 points 1 year ago* (last edited 1 year ago) (1 children)

My text editor doesn't access shit on my drive (unless I ask it to) because it's Free Software and my Linux distro package maintainers audit it to make sure it doesn't contain malware like that.

You're praising a pathological solution to a problem that shouldn't exist to begin with.

[–] Takumidesh@lemmy.world 14 points 1 year ago

Forever audits of free software are unsustainable in my opinion.

To truly audit every piece of software, you need an independent party to spend time (often more than the development) to look through the code, that person needs to be equally or more experienced than the developers of the software, and have specific knowledge for vulnerabilities and malicious techniques.

They then need to audit and monitor all of the channels of distribution for that software, including various websites and repositories. This needs to be done constantly.

You effectively need to double or more the total level of effort for all software.

Yes, high profile software (sometimes) gets audited regularly, but the assumption that anything you grab from your package manager has been truly audited leads to a false sense of security, additionally the assumption that an audit being performed means there are no issues with the code also leads to problems.

The reality is that most open source software doesn't get audited because it is too much work.

[–] ZILtoid1991@kbin.social 12 points 1 year ago (1 children)

Wait until you meet with Javascript and WebAssembly viruses!

[–] nick@campfyre.nickwebster.dev 2 points 1 year ago

WebAssembly is sandboxed and deterministic. Any impure code has to be triggered via message passing with the host language.

[–] BurnedOliveTree@lemmy.world 3 points 1 year ago

That’s why there is sandboxing on macOS and in Flatpacks

[–] Commiunism@lemmy.wtf 23 points 1 year ago* (last edited 1 year ago) (3 children)

I shamelessly use calculator.net instead of installing a calculator on my system lmao

[–] stebo02@lemmy.dbzer0.com 14 points 1 year ago (5 children)

you can also just g**gle your calculations

[–] ZILtoid1991@kbin.social 7 points 1 year ago (2 children)

Use google to mean "web search" in general!

Let them loose their trademark over the name google by generalization!

[–] stebo02@lemmy.dbzer0.com 2 points 1 year ago

isnt that what we've been doing for years

load more comments (1 replies)
load more comments (4 replies)
[–] knobbysideup@lemm.ee 13 points 1 year ago (1 children)
[–] OrangeXarot@sh.itjust.works 2 points 1 year ago (1 children)

I checked the manual to see what the -l switch does and it says you can choose the math library you want to use? in what cases should I use it?

[–] knobbysideup@lemm.ee 1 points 1 year ago

without -l, default behavior is integer results. Probably not what you want in most calculations.

Are you aware how much more electricity your calculation is consuming

load more comments
view more: next ›