170 points

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.”

permalink
report
reply
134 points
*

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.

permalink
report
parent
reply
59 points

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

permalink
report
parent
reply
31 points

Oh I love electron

permalink
report
parent
reply
21 points
*

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.

permalink
report
parent
reply
21 points

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.

permalink
report
parent
reply
9 points

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.)
permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
4 points

It’s not really inevitable, it’s just a consequence that develops can get away with being lazy because the hardware can cope with it.

permalink
report
parent
reply
10 points

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.

permalink
report
parent
reply
8 points

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

permalink
report
parent
reply
2 points

I like that you can just install it straight from the Windows Store, no need to even bother opening Edge to download it.

permalink
report
parent
reply
8 points

…from the Windows Store

who dare speak of the runes?

permalink
report
parent
reply
4 points

And the app is just a chromium browser without the ability of typing in your own URL.

permalink
report
parent
reply
2 points

That’s a very lightweight one. Stakeholders say it needs to be at least 600mb.

permalink
report
parent
reply
81 points

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

permalink
report
reply
63 points

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

permalink
report
parent
reply
19 points

Electron apps are the vast minority of desktop apps.

“Not for long!” - Multiplatform programmers

permalink
report
parent
reply
15 points
*

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

permalink
report
parent
reply
8 points

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

permalink
report
parent
reply
8 points

by market share (vscode)

permalink
report
parent
reply
5 points

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.

permalink
report
parent
reply
19 points
*

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

permalink
report
parent
reply
15 points

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.

permalink
report
parent
reply
3 points

which one do u use ?

permalink
report
parent
reply
65 points

.exe? 🤮

permalink
report
reply
56 points

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

permalink
report
parent
reply
27 points

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

permalink
report
parent
reply
17 points

.elf is the closest thing we have.

permalink
report
parent
reply
29 points

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

permalink
report
parent
reply
10 points

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

permalink
report
parent
reply
22 points

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.

permalink
report
parent
reply
44 points
Deleted by creator
permalink
report
reply
36 points

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

permalink
report
parent
reply
15 points

Textediting2earn

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
2 points

God it’s so easy

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
7 points

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

permalink
report
parent
reply
6 points
*

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.

permalink
report
parent
reply
41 points

Is web3.0 just https://texteditor.exe?

permalink
report
reply
24 points

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.

permalink
report
parent
reply
6 points

You missed the part where tokens are stolen.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.8K

    Monthly active users

  • 1.4K

    Posts

  • 32K

    Comments