Web 2.0, and its consequences...

3 years ago by ZILtoid1991 to c/programmerhumor

Dirk 159 points 3 years 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.”

path: 0 2336145, hotness: undefined, score: 159, children: 26
MyFairJulia 141 points 3 years 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.

path: 0 2336145 2336255, hotness: undefined, score: 141, children: 25
gabe 58 points 3 years ago

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

path: 0 2336145 2336255 2337376, hotness: undefined, score: 58, children: 5
Totendax 28 points 3 years ago

Oh I love electron

path: 0 2336145 2336255 2337376 2338013, hotness: undefined, score: 28, children: 4
scarilog 7 points 3 years 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.

path: 0 2336145 2336255 2337376 2338013 2341598, hotness: undefined, score: 7, children: 0
roi 4 points 3 years ago

Shhhh, don’t tell anyone

path: 0 2336145 2336255 2337376 2338013 2338031, hotness: undefined, score: 4, children: 0
gabe 3 points 3 years ago

Oh no, I love electron. That's not a dig on it, it's just very much a resource hog.

path: 0 2336145 2336255 2337376 2338013 2343838, hotness: undefined, score: 3, children: 1
CanadaPlus 19 points 3 years 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.

path: 0 2336145 2336255 2338977, hotness: undefined, score: 19, children: 10
mea_rah 21 points 3 years 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.

path: 0 2336145 2336255 2338977 2340112, hotness: undefined, score: 21, children: 1
MyFairJulia 2 points 3 years ago

I am working on an application using DevExpress XAF. It allows you to build a big enterprise application relatively quick by doing a lot of the dirty work you would otherwise do yourself for CRUD stuff. A lot of the application can be modified through mere clicks without touching a single line of code.

It is cool but kinda bloaty. When you simply launch an XAF application, it uses 300 megabytes of RAM. And that's before you even loaded a single byte of business data. You have just reached the login screen.

At least i felt it was "kinda bloaty" until i first booted Void Linux on my gaming PC at home and took a look at htop. IT'S ONLY 400 MEGABYTES AND IT'S READY TO USE! MAYBE ADD 200 MEGABYTES FOR KDE!

ALL THIS BLOATING CANNOT CONTINUE! WE HAVE TO TAKE ACTION IMMEDIATELY OR WE WILL BE FOREVER DOOMED TO UPGRADE OUR RAM LEST WE DON'T WANT EVEN A FUNCTIONING TEXT EDITOR!

path: 0 2336145 2336255 2338977 2340112 2353075, hotness: undefined, score: 2, children: 0
ZILtoid1991 8 points 3 years 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.)
path: 0 2336145 2336255 2338977 2339499, hotness: undefined, score: 8, children: 1
CanadaPlus 4 points 3 years ago

You know, I haven't worked on a super big project, but I feel like every time I've gotten a type error in a static language it's pointed to something wrong with my underlying reasoning.

path: 0 2336145 2336255 2338977 2339499 2344511, hotness: undefined, score: 4, children: 0
vrighter 6 points 3 years ago

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

path: 0 2336145 2336255 2338977 2340231, hotness: undefined, score: 6, children: 4
ZILtoid1991 7 points 3 years 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.

path: 0 2336145 2336255 2338977 2340231 2341146, hotness: undefined, score: 7, children: 2
CanadaPlus 3 points 3 years ago

I was thinking about this a bit. Does that mean you can develop a piece of software much more cheaply now? I have a fear that companies writing software get a 10% discount from writing bloat, while clients wind up using 10,000% the resources and are just so used to it they don't complain.

path: 0 2336145 2336255 2338977 2340231 2344455, hotness: undefined, score: 3, children: 0
renlok 4 points 3 years ago

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.

path: 0 2336145 2336255 2338977 2352234, hotness: undefined, score: 4, children: 0
AnonStoleMyPants 10 points 3 years 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.

path: 0 2336145 2336255 2352825, hotness: undefined, score: 10, children: 0
renlok 8 points 3 years ago

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

path: 0 2336145 2336255 2351964, hotness: undefined, score: 8, children: 0
scurry 3 points 3 years ago

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

path: 0 2336145 2336255 2400213, hotness: undefined, score: 3, children: 0
ivanafterall 2 points 3 years ago

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

path: 0 2336145 2336255 2336720, hotness: undefined, score: 2, children: 4
spez 8 points 3 years ago

...from the Windows Store

who dare speak of the runes?

path: 0 2336145 2336255 2336720 2337193, hotness: undefined, score: 8, children: 2
roi 5 points 3 years ago

SPEZ!!! I love spez! He’s so nice he did r/place again! Also, windows store?? I only know apt

path: 0 2336145 2336255 2336720 2337193 2338052, hotness: undefined, score: 5, children: 0
neoney 2 points 3 years ago

Why is your profile picture the hyprland logo lmao

path: 0 2336145 2336255 2336720 2337193 2340108, hotness: undefined, score: 2, children: 0
ZILtoid1991 3 points 3 years ago

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

path: 0 2336145 2336255 2336720 2339109, hotness: undefined, score: 3, children: 0
mawkler 76 points 3 years ago

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

path: 0 2337703, hotness: undefined, score: 76, children: 12
grue 58 points 3 years ago

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

path: 0 2337703 2340481, hotness: undefined, score: 58, children: 6
ICastFist 16 points 3 years ago

Electron apps are the vast minority of desktop apps.

"Not for long!" - Multiplatform programmers

path: 0 2337703 2340481 2345442, hotness: undefined, score: 16, children: 0
Simran 14 points 3 years ago

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

path: 0 2337703 2340481 2341136, hotness: undefined, score: 14, children: 1
ZILtoid1991 7 points 3 years ago

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

path: 0 2337703 2340481 2341136 2341201, hotness: undefined, score: 7, children: 0
darcy 8 points 3 years ago

by market share (vscode)

path: 0 2337703 2340481 2343805, hotness: undefined, score: 8, children: 0
Rubennaatje 5 points 3 years 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.

path: 0 2337703 2340481 2355147, hotness: undefined, score: 5, children: 0
dmmeyournudes 2 points 3 years ago

okay. but every game launcher you have is web based. all the software management for my server is done through a web browser. the amount of time i spend in web based programs is many magnitudes more than the time i spend in software that is using other systems. even the games you play have web based interfaces for their ingame stores and other social/news features.

path: 0 2337703 2340481 2344409, hotness: undefined, score: 2, children: 0
Zeth0s 21 points 3 years 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

path: 0 2337703 2339784, hotness: undefined, score: 21, children: 4
ArcticPrincess 14 points 3 years 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.

path: 0 2337703 2339784 2341172, hotness: undefined, score: 14, children: 3
darcy 3 points 3 years ago

which one do u use ?

path: 0 2337703 2339784 2341172 2343823, hotness: undefined, score: 3, children: 2
chocobo13z 2 points 3 years ago

I'm a Tridactyl person, myself

path: 0 2337703 2339784 2341172 2343823 2359024, hotness: undefined, score: 2, children: 1
steal_your_face 63 points 3 years ago

.exe? 🤮

path: 0 2343330, hotness: undefined, score: 63, children: 9
ZILtoid1991 52 points 3 years ago

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

path: 0 2343330 2343464, hotness: undefined, score: 52, children: 7
Andrew15_5 24 points 3 years ago

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

path: 0 2343330 2343464 2344239, hotness: undefined, score: 24, children: 0
nothacking 15 points 3 years ago

.elf is the closest thing we have.

path: 0 2343330 2343464 2343605, hotness: undefined, score: 15, children: 4
RickyRigatoni 29 points 3 years ago

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

path: 0 2343330 2343464 2343605 2348501, hotness: undefined, score: 29, children: 2
hoch 14 points 3 years ago

path: 0 2343330 2343464 2343605 2348501 2350935, hotness: undefined, score: 14, children: 0
Anangrierterrarian 4 points 3 years ago

YES BROTHER KILL THE ELVES

path: 0 2343330 2343464 2343605 2348501 2366550, hotness: undefined, score: 4, children: 0
KSPAtlas 9 points 3 years 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

path: 0 2343330 2343464 2343605 2348409, hotness: undefined, score: 9, children: 0
QuazarOmega 4 points 3 years ago

Roll in the .Appimage boys

path: 0 2343330 2343464 2346899, hotness: undefined, score: 4, children: 0
nomadjoanne 22 points 3 years 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.

path: 0 2343330 2352853, hotness: undefined, score: 22, children: 0
ndsvw 51 points 3 years ago
path: 0 2336507, hotness: undefined, score: 51, children: 6
ivanafterall 33 points 3 years ago

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

path: 0 2336507 2336674, hotness: undefined, score: 33, children: 3
ZILtoid1991 13 points 3 years ago

Textediting2earn

path: 0 2336507 2336674 2336971, hotness: undefined, score: 13, children: 1
Rai 7 points 3 years ago

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

path: 0 2336507 2336674 2336971 2343779, hotness: undefined, score: 7, children: 0
MyFairJulia 3 points 3 years 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

path: 0 2336507 2336674 2342765, hotness: undefined, score: 3, children: 0
Veraxus 7 points 3 years ago

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

path: 0 2336507 2345354, hotness: undefined, score: 7, children: 0
T156 6 points 3 years 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.

path: 0 2336507 2350437, hotness: undefined, score: 6, children: 0
Midnitte 38 points 3 years ago path: 0 2338722, hotness: undefined, score: 38, children: 2
MyFairJulia 30 points 3 years 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.

path: 0 2338722 2342825, hotness: undefined, score: 30, children: 1
prr 5 points 3 years ago

You missed the part where tokens are stolen.

path: 0 2338722 2342825 2345339, hotness: undefined, score: 5, children: 0
aluminium 27 points 3 years 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.

path: 0 2336745, hotness: undefined, score: 27, children: 7
TheOldRazzleDazzle 50 points 3 years 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.

path: 0 2336745 2337509, hotness: undefined, score: 50, children: 1
squigglycunt 0 points 3 years ago

pihole and unbound dns babyyyyyy

path: 0 2336745 2337509 2354749, hotness: undefined, score: 0, children: 0
grue 36 points 3 years 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.

path: 0 2336745 2340583, hotness: undefined, score: 36, children: 1
Takumidesh 13 points 3 years 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.

path: 0 2336745 2340583 2343850, hotness: undefined, score: 13, children: 0
ZILtoid1991 14 points 3 years ago

Wait until you meet with Javascript and WebAssembly viruses!

path: 0 2336745 2336939, hotness: undefined, score: 14, children: 1
nick 1 point 3 years ago

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

path: 0 2336745 2336939 2356304, hotness: undefined, score: 1, children: 0
BurnedOliveTree 3 points 3 years ago

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

path: 0 2336745 2338667, hotness: undefined, score: 3, children: 0
Commiunism 22 points 3 years ago

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

path: 0 2343807, hotness: undefined, score: 22, children: 12
knobbysideup 13 points 3 years ago

bc -l

path: 0 2343807 2350126, hotness: undefined, score: 13, children: 2
OrangeXarot 2 points 3 years ago

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?

path: 0 2343807 2350126 2355120, hotness: undefined, score: 2, children: 1
knobbysideup 1 point 3 years ago

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

path: 0 2343807 2350126 2355120 2452892, hotness: undefined, score: 1, children: 0
stebo02 13 points 3 years ago
path: 0 2343807 2353686, hotness: undefined, score: 13, children: 7
ZILtoid1991 9 points 3 years ago

Use google to mean "web search" in general!

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

path: 0 2343807 2353686 2356144, hotness: undefined, score: 9, children: 2
nonfuinoncuro 4 points 3 years ago

lose*

path: 0 2343807 2353686 2356144 2358535, hotness: undefined, score: 4, children: 0
stebo02 2 points 3 years ago
path: 0 2343807 2353686 2356144 2357222, hotness: undefined, score: 2, children: 0
squigglycunt 2 points 3 years ago

gaggle?

path: 0 2343807 2353686 2354791, hotness: undefined, score: 2, children: 2
stebo02 1 point 3 years ago
path: 0 2343807 2353686 2354791 2355976, hotness: undefined, score: 1, children: 1
Klear 2 points 3 years ago

gargle

path: 0 2343807 2353686 2354791 2355976 2356082, hotness: undefined, score: 2, children: 0
Hovenko 1 point 3 years ago

giggle?

path: 0 2343807 2353686 2355003, hotness: undefined, score: 1, children: 0
loudWaterEnjoyer 11 points 3 years ago

Are you aware how much more electricity your calculation is consuming

path: 0 2343807 2353759, hotness: undefined, score: 11, children: 0
Pitchfork 3 points 3 years ago

Looking at you IDX

path: 0 2362292, hotness: undefined, score: 3, children: 0
xyzinferno 1 point 3 years ago

I just stick a single line of HTML in the address bar and use that as a text editor. It's just a giant test field taking up the page with a dark background and white text.

Useful if I just want to write text without any need to format it.

path: 0 2576128, hotness: undefined, score: 1, children: 0
JohnDClay -16 points 3 years ago

Harder to get a virus from a website

path: 0 2341033, hotness: undefined, score: -16, children: 1
LoafyLemon 26 points 3 years ago

Given that JavaScript stands as one of the most prevalent vectors for infections, I am inclined to disagree.

path: 0 2341033 2341434, hotness: undefined, score: 26, children: 0
programmerhumor
programmerhumor

@lemmy.ml

login for more options
43801
1628
1576

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.

go to feed...