784
top 50 comments
sorted by: hot top controversial new old
[-] Dirk@lemmy.ml 170 points 11 months ago

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 134 points 11 months ago* (last edited 11 months ago)

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.

[-] gabe@literature.cafe 60 points 11 months ago

It also only takes a single gigabyte of RAM per file being edited, Isn't that fantastic?

[-] Totendax@feddit.de 30 points 11 months ago
[-] scarilog@lemmy.world 8 points 11 months ago

Man it's not lightweight, but damn, if CSS and JS isn't a really easy way to build cross platform UIs than other options like Qt. There's a reason why electron is so popular.

load more comments (3 replies)
[-] CanadaPlus@lemmy.sdf.org 21 points 11 months ago* (last edited 11 months ago)

So was all this bloat inevitable as hardware got better, or is there a way to go back? It feels like a ripoff that our computers are 1000x better but they're maybe 10x faster once all the shitty software is taken into consideration.

[-] mea_rah@lemmy.world 21 points 11 months ago

Perhaps it's kind of inevitable to have some bloat. For example apps these days handle most of the languages just fine including emoji, LTR/RTL and stuff. Some have pretty decent accessibility support. They can render pretty complicated interface at 8k screen reasonably fast. (often accelerated in some way) There is a ton of functionality baked in - your editor can render your html or markdown side by side with source code as you edit it. You have version control, terminal emulator, language servers, etc..

But then there's Electron, which just takes engine capable of rendering anything and uses it to render UI, so as a result there's not much optimization you can do. Button is actually a bunch of DOM elements wrapped in CSS.. Etc.. It's just good enough for the "hardware is cheap" approach.

I think Emacs is a good example to look at. It has a ton of built in functionality and with many plugins (either custom configuration or something like Doom Emacs) you can have very capable editor very comparable to the likes of VS Code. Decades back Emacs had this reputation of being bloated, because it used Megabytes of RAM. These days it's even more "bloated" due to all the stuff that was added since. But in absolute numbers it does not need as much resources as its Electron based peers. The difference can easily be order of magnitude or more depending on configuration.

load more comments (1 replies)
[-] ZILtoid1991@kbin.social 9 points 11 months ago

I have a few suggestions:

  1. Better education. Don't scare people who're learning programming away from the lower-level stuff, especially as people are even getting scared to use type declarations, not just the pointers (of which I was fearmongered with in college, as they told me Java is the future).
  2. Better portable APIs. Thanks to WebAssembly, one could easily have both something portable in a web browser and as a native desktop app, except instead we get browsers running said applications. I had some thinking about such a project, but then I remembered my iota project (a D-native replacement of SDL/SFML/GLFW, but without bloat by including standard library features), and then stopped thinking about it immediately, since a much smaller project already causes me too much headache. (Someone has a handy guide on win32 API? I have issues on getting certain messages produced, like input language change, and I don't know if I glimpsed over some functions that enable them and just weren't included in the documentation of the input language change event codes.)
load more comments (1 replies)
[-] vrighter@discuss.tchncs.de 6 points 11 months ago

nope. The bloat is there mainly because it makes the job easier for the devs.

[-] ZILtoid1991@kbin.social 7 points 11 months ago

In the short run, yes. In the long run, this just makes a bunch of coders that are now afraid of type declarations, because they were scared away from it with the "what if you have to choose?" tagline, thus making turning back to the proper way of doing things harder.

load more comments (2 replies)
load more comments (1 replies)
load more comments (1 replies)
[-] AnonStoleMyPants@sopuli.xyz 10 points 10 months ago

Of course! And it definitely does not try to pry all info about the user that it can and definitely the company behind would not use that in any way.

[-] renlok@lemmy.ml 8 points 10 months ago

And then youll only need a near 16gb of ram to text a text file.

load more comments (6 replies)
[-] mawkler@lemmy.ml 81 points 11 months ago

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

[-] grue@lemmy.ml 63 points 11 months ago

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

[-] ICastFist@programming.dev 19 points 10 months ago

Electron apps are the vast minority of desktop apps.

"Not for long!" - Multiplatform programmers

[-] Simran@lemm.ee 15 points 11 months ago* (last edited 11 months ago)

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

[-] ZILtoid1991@kbin.social 8 points 11 months ago

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

[-] darcy@sh.itjust.works 8 points 11 months ago

by market share (vscode)

[-] Rubennaatje@feddit.nl 5 points 10 months 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 11 months ago* (last edited 11 months ago)

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 15 points 11 months ago

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.

load more comments (3 replies)
[-] steal_your_face@lemmy.ml 64 points 11 months ago
[-] ZILtoid1991@kbin.social 56 points 11 months ago

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 27 points 10 months ago

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

[-] nothacking@discuss.tchncs.de 17 points 11 months ago

.elf is the closest thing we have.

[-] RickyRigatoni@lemmy.ml 30 points 10 months ago

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

[-] hoch@lemmy.world 13 points 10 months ago
load more comments (1 replies)
[-] KSPAtlas@sopuli.xyz 10 points 10 months 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 22 points 10 months 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.

[-] Midnitte@kbin.social 41 points 11 months ago
[-] MyFairJulia@lemmy.world 24 points 11 months ago

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 10 months ago

You missed the part where tokens are stolen.

[-] aluminium@lemmy.world 26 points 11 months ago

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 50 points 11 months ago

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 37 points 11 months ago* (last edited 11 months ago)

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 11 months 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 14 points 11 months ago

Wait until you meet with Javascript and WebAssembly viruses!

load more comments (1 replies)
load more comments (1 replies)
[-] Commiunism@lemmy.wtf 23 points 11 months ago* (last edited 10 months ago)

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

[-] stebo02@lemmy.dbzer0.com 14 points 10 months ago

you can also just g**gle your calculations

[-] ZILtoid1991@kbin.social 9 points 10 months ago

Use google to mean "web search" in general!

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

load more comments (2 replies)
load more comments (4 replies)
[-] loudWaterEnjoyer@lemmy.dbzer0.com 11 points 10 months ago

Are you aware how much more electricity your calculation is consuming

load more comments
view more: next ›
this post was submitted on 12 Aug 2023
784 points (96.4% liked)

Programmer Humor

31251 readers
911 users here now

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

Rules:

founded 4 years ago
MODERATORS