DEV Community

Discussion on: What's wrong with code in 2022? πŸ€·πŸ»β€β™€οΈ

Collapse
 
bangyslower profile image
Bangy Slower

Just look at the calculator, which used to require less than a megabyte, but now it eats up more than 150 MB of RAM at a time with the same functionality.
I don’t know, maybe in Photoshop this is justified: there is a new useful and diverse functionality, albeit bloated code for its implementation. But in the case of a calculator, this is really just indecent.

Collapse
 
igibsonconor profile image
Conor Gibson

I have a better example. To turn off the RGB lighting of the Aorus graphic card (Gigabyte vendor), I need to install 0.5GB of software. It's that shitty soft... 400 megabytes to turn off the RGB.

Thread Thread
 
bangyslower profile image
Bangy Slower

It's funny. How much does the installer weigh? And how much space does the installed utility take up?

Thread Thread
 
igibsonconor profile image
Conor Gibson

RGBFusion2.0 installer 253 MB.
When installing and uninstalling the program, it says that it takes 170MB.
In fact, 2 utilities are needed there, and as I understand it, the 2nd one used to be separate, and then became a plugin for the first one. 0.5GB is the total weight of the installers.

Thread Thread
 
igibsonconor profile image
Conor Gibson

That is, you must first install the aorus engine so that it installs RGB fusion. If you install RGB Fusion separately, it doesn't work for some reason. Moreover, with this utility installed separately, aorus engine will not install it. Such crap...

Thread Thread
 
bangyslower profile image
Bangy Slower

500 MB is about the weight of Windows 2000 installation files, in which there is "a little" more functionality πŸ™ƒ

 
mariamarsh profile image
Maria 🍦 Marshmallow

Can't you physically disconnect the RGB cable?

Thread Thread
 
igibsonconor profile image
Conor Gibson

In my case, the card must be disassembled for this.
It would suck to lose the warranty.

Thread Thread
 
mariamarsh profile image
Maria 🍦 Marshmallow

It's a pity... on some of them, the wire can be traced and unhooked without unscrewing a single screw.

Thread Thread
 
moopet profile image
Ben Sinclair

I have a Gigabyte card like this too. I'm pretty sure you can install the software, use it, then uninstall it and the light settings will remain (not really the content of this thread, I know).

When I mentioned .25GB for React, I was mostly talking about the total size of files it added to my node_modules directory. The "installer" was technically only a few MB, the compressed files it downloaded might have been (guessing) 50MB, but after unpacking all of them to text files, and using up a zillion inodes, and creating directory structures you need a rope and a torch to explore, the end effect is a lot more than the initiator.

I think it'd be benefitial to talk about all these things separately (size of download, size of installation, amout of resources uses when running) because if the installation process only downloaded the files it needed, and everything else was run with libraries existing on the system, then that would be... great? Right? But you can have an application which behaves that way during installation and turns out to chew its way through all your available RAM when running, for example. And these things are different, and if they were the responsibility of different actors, they might be better optimised?

Thread Thread
 
mariamarsh profile image
Maria 🍦 Marshmallow

This is a similar topic, but I think that you are right and it is better to consider it separately, since my page will not withstand as many comments of such a discussion 😁

Thread Thread
 
cubiclesocial profile image
cubiclesocial

There's no need to install a 500MB application to turn off RGB lighting. A piece of electrical tape works wonders. It's non-conductive and comes in a variety of colors with black being the most popular.

I use painters tape, electrical tape, and even the sticky part of sticky notes to cover up the blindingly-bright LEDs that all modern technology gadgets seem to come with. Depends on how much light I want to let through that decides which route I go with to cover up the LEDs. When I want nothing showing, electrical tape gets used to great effect.

Thread Thread
 
igibsonconor profile image
Conor Gibson

Using electrical tape for such purposes is an incredible bullshit, I'd rather install 0.5 GB of software. My video card is not 4090, of course, but that's how much you have to disrespect your hardware to do such things with it.

Thread Thread
 
mariamarsh profile image
Maria 🍦 Marshmallow

Here I can support you, I would not do such "modifications" with my hardware, in my opinion it is "village custom". But for someone a PC is just a working machine, then this is quite an effective option.

Collapse
 
amyswen451 profile image
Amanda Swensen

A 20-year-old calculator did not have to think about hidpi, 4k, multi-monitor configurations, touch control, support for a dozen interface themes, synchronization to the cloud, loading exchange rates from the Internet and a whole lot of functionality that an individual user may not need, but others users do, and writing millions of versions for each is unprofitable.

Thread Thread
 
bangyslower profile image
Bangy Slower

The fact is that a modern calculator does not have to think about it either. All these themes/touchs/hidpi and others like them β€” all this is resolved by the libraries of the operating system. And in terms of functionality, it has not gone too far from a 20-year-old calculator, but it eats resources like AutoCAD or MathLab 20 years ago.

Thread Thread
 
amyswen451 profile image
Amanda Swensen

It is precisely the libraries that are part of the calculator that occupy those megabytes

Thread Thread
 
bangyslower profile image
Bangy Slower

They are part of the OS, why separate them? And it is highly doubtful that touch control support will increase the code by 40-50 MB.
This is the characteristic mindset of some modern programmers, justifying bloat with incredible complexity: all those "touchs/hidpi/unicode" is just a mantra to stop thinking. "What are you doing? Don't go there! It’s difficult, there are touch, hidpi, currency conversion and some other important things!”

Collapse
 
cubiclesocial profile image
cubiclesocial • Edited

SpeedCrunch: 4MB RAM. Has a portable version in the Portable Apps platform.

It does way more than Windows Calculator. The only thing it doesn't do is graph equations. For graphing, I will occasionally fire up:

desmos.com/calculator

I still run Calculator though when I need "as soon as I type it in" conversions between bases (binary, decimal, octal, and hex). That's something SpeedCrunch doesn't do very well.

Thread Thread
 
mariamarsh profile image
Maria 🍦 Marshmallow

They look like really useful tools, thanks for the recommendation πŸ€—
4MB are much better than 150