Why indeed - Lemmy.World

Lemmy

It’s the secret sauce, called unnecessary frameworks and user analytics modules.

With that in mind, I LOVE how lean and fast some FOSS apps/projects are. One of my motivations to go searching for FOSS alternatives is when something seems slow for no reason.

It’s not always the case, but it’s often the case

KDE Plasma has been getting so much more efficient with every release that you can almost recommend it for low-end systems.
I remeber using plasma on a weak 2016 160 usd laptop with no issue in 2018, I can only imagine how much better is now
lol i used it last year on a 2011 laptop easily.
User analytics is such an innocent word for spyware.
React

How? Its libraries are a few kilobytes each.

bundlephobia.com/package/[email protected] - 7.3 Kb bundlephobia.com/package/[email protected] - 3.6 Kb

react v19.0.0 ❘ Bundlephobia

Find the size of javascript package react v19.0.0. Bundlephobia helps you find the performance impact of npm packages.

Is that the JS bundle only? I think you’re forgetting the need to ship a rendering engine, a JavaScript engine, and the rest of the JS you inevitably bring in if you’re using something like React.
Oh, I focus mainly on dev. ‘Forgetting’ to ship engines is my bread & butter. lol I see you meant React+Electron.
Skill issue

Nailed it. Things have changed to allow cheaper (interpretable in several ways) developers to create “good enough” software as quickly as possible. If that involves inefficient frameworks, technology, and practices that unlock this, then so be it; if the “best” code is the code that makes money, and money is what corporations prioritize above all else, and there is a way to do that quicker and cheaper, the outcome is obvious and now ubiquitous. Furthermore, if nobody at the top cares, why should anyone on the ground care? The problem compounds.

Priorities are fucked.

If it runs "fast enough" on a completely clean system that would cost the average user $1500, then companies assume that that means that it is a good product.

If you want better software, you have to give developers worse hardware to develop on, and more time to develop.

If you want better software, you have to give developers worse hardware to develop on, and more time to develop.

Shhh. There could be application development managers listening…

If it runs slow on my laptop then there isn’t a chance it will run at all pushed to the cloud. Our cloud servers are…not great. Single core 1.75gb boxes compared to my 16 core, 32gb laptop. We can do a lot with them though. Just takes a decent amount of tinkering. In some ways the cloud was the best thing for performant code.

inefficient frameworks

I’d like to object to that. Frameworks are often built by dedicated and paid developers, so they tend to be above average in terms of efficiency. But being frameworks, they have to facilitate lots of use cases, so they also tend to be bigger than what you would write if you had 6 months to roll your own. And 36 more months to kill all the worms that got out of the can, to mangle a proverb.

I wouldn’t say skill issue, more of time issue. You only get a week to implement something. Quicker to use existing libraries than try to optimise yourself.

It’s both, and they are in a sense the same.

Cheaper less skilled or less experienced programmers take longer to get similar results. One week with a a skilled programmer is a lot more value than one week with an unskilled programmer.

Even more if you want to invest some of that experienced programmer time to get the new guy up to speed.

Don’t worry, vibe coding is going to solve everything 😂

Paypal has 500 mb and just shows a number and you can press a button to send a number to their server.

It’s insane

You made me check it, and on my android device it’s 337 (just the app). Jesus Christ.
Mine has 660MB with 7MB user data, 15MB cache

LMAO, he also made me check it.

347 MB for me, no wonder why I am always struggling with storage for my 128 GB phone (with not expandable storage of course), and I don’t even have that many games, even less ROMs 😅

Check out the apps Hermit and Native Alpha. They make web pages run like an app. I’ve only run into a couple sites where they don’t work right.

Native alpha sounds good since it’s foss and uses vanadium’s webview. Are you still logged in to paypal (any annoying website) a couple of months later. Or does it revoke your rights after a while?

I only use it rarely and I hate providing my info for 5 minutes just to do one transaction.

Dude!! What a badass concept, cannot wait to give this a shot!!

Has to send a number to Apple’s server too! actually not even sure if that’s client side.

Electron everywhere.
And analytics. And offloading as much computation to the client, because servers are expensive and inefficiency is not an issue if your users are the ones paying for it.
I saw an ad request with an inline 1.4 MB game. Like, you could fit Mario in there.
The Samsung shop hands out 1.4mb JSON responses for order tracking, with what I estimate 99% redundant information that is repeated many times in different parts of the structure.

Web “Apps” are also quite bad. Lots of and lots of stuff we’re downloading and it feels clunky.

Sometimes that’s bad coding, poor optimization, third party libraries, or sometimes just including trackers on the page.

I vaguely recall a recent-ish article that an average web page is 30mb. That’s right, thirty megabytes.

It’s amazing how much faster web browsing becomes when I run PiHole and block most of it.

Suddenly the TV is pretty snappy, and all browsers feel so much smoother.

And I’m sitting here uneasy thinking how the hell I’m going to compress my map data any further so that my entire web app is no bigger than 2 mb. 😥
No, you need to go further: 512kb.club
512KB Club

The 512KB Club is an exclusive list of web pages weighing less than 512 kilobytes.

512KB Club
Oh god, I’m not ready for the trauma and the emotional scars… D:

That’s straight up not true. It’s not even remotely close to that.

HTTP Archive: Page Weight

This report tracks the size and quantity of many popular web page resources. Sizes represent the number of bytes sent over the network, which may be compressed.

Some devs will include a whole library for one thing instead of trying to learn another way to do that thing.
A whole library which was meant to to 10 things, but you only use one. And that for x libraries
from * import *
Nowadays libraries are built with tree-shaking in mind, so when it’s time to deploy the app only the code that’s actually used gets bundled.
Ads and trackers
Don’t forget poor optimization
That doesn’t make the software take up more space. Optimizing is likely to result in a slightly larger install that runs more efficiently.
. . . does. Import whole ass library, use one function, once. Probably one of the easiest to implement yourself. Boom, file grew. Repeat.
Lodash wants to know your location
It’s just that we have to make space for our 5,358 partners and the telemetry data they need.
  • legitimate telemetry data
Legitimate interest to train AI

Let me (lemme?) translate this into customer-friendly business language:

Enhanced user experience

That still wouldn’t account for it. The code to collect this is tiny and the data isn’t stored locally. The whole point is for them to suck it up into their massive dataset.
Kinda tired of people referring to my work as “IT”
IT sector

Still no.

I’m not setting up routers or configuring laptops.

I’m designing and building systems.

“IT” being used this way just means “touch computer.”

So you work with information technology? 😉
Agreed, anyone that falls below the CIO gets called IT.
What about the CTO?
What would you prefer?
Feral Developer Level 3
Since I’m an engineer and I engineer things, maybe “engineering.”