Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Code bloat has become astronomical

views
     
TSflashang
post Jul 22 2022, 09:53 PM, updated 4y ago

Casual
***
Junior Member
355 posts

Joined: Aug 2021


Code bloat has become astronomical
June 5, 2022 cliffski

Code bloat has become astronomical – Cliffski's Blog

Using library is "easy", but how many people choose the right library wisely ?
Sometime, we may just want to have a vehicle which could run on the road, floating on the water, and fly across the river...
But we might just "want" the features, not use it.

How many % does people understand about their own code ?

hmm.gif


Roadwarrior1337
post Jul 22 2022, 10:37 PM

Enthusiast
*****
Junior Member
979 posts

Joined: Jan 2022
With github everyone can code
silverhawk
post Jul 23 2022, 12:17 AM

Eyes on Target
Group Icon
Elite
4,956 posts

Joined: Jan 2003


Obligatory: https://qz.com/646467/how-one-programmer-br...-piece-of-code/

Anyone working with nodejs knows the pain of npm dependency hell.
FlierMate1
post Jul 23 2022, 08:37 AM

Getting Started
**
Validating
139 posts

Joined: Jun 2022
One comment under the article worth mentioning:

QUOTE
Have you ever tried generating an EMPTY Angular project? Well, I tried a couple of years ago (honesty note: I don’t know if things got better now) and it was over 300 MB. I mean: an empty project!


Yeah, that's really bloated, if empty project is already 300MB.

And there is another remark from other forum:
QUOTE
in this age where "coding" means "plumbing 500 library calls together" instead of making your own algorithms.


This post has been edited by FlierMate1: Jul 23 2022, 08:39 AM
TSflashang
post Jul 23 2022, 11:18 AM

Casual
***
Junior Member
355 posts

Joined: Aug 2021


QUOTE(Roadwarrior1337 @ Jul 22 2022, 10:37 PM)
With github everyone can code
*
Copy paste is easy.
To understand what have been copied may not.

user posted image

hmm.gif



This post has been edited by flashang: Jul 23 2022, 11:23 AM
15cm
post Jul 23 2022, 02:35 PM

Casual
***
Junior Member
423 posts

Joined: Apr 2022
really long article and its saturday and i dont feel like reading

whats it about ? that programmers would rather use readily made library than writing simple code themselves?

young programmers not paying attention to processing power and memory usage? thats normal lolz

This post has been edited by 15cm: Jul 23 2022, 02:38 PM
FlierMate1
post Jul 23 2022, 03:54 PM

Getting Started
**
Validating
139 posts

Joined: Jun 2022
QUOTE(silverhawk @ Jul 23 2022, 12:17 AM)
Obligatory: https://qz.com/646467/how-one-programmer-br...-piece-of-code/

Anyone working with nodejs knows the pain of npm dependency hell.
*
“An 11 line npm package called left-pad with only 10 stars on github was unpublished…it broke some of the most important packages on all of npm.”

ohmy.gif
TSflashang
post Jul 24 2022, 11:59 PM

Casual
***
Junior Member
355 posts

Joined: Aug 2021


QUOTE(FlierMate1 @ Jul 23 2022, 03:54 PM)
“An 11 line npm package called left-pad with only 10 stars on github was unpublished…it broke some of the most important packages on all of npm.”

ohmy.gif
*
Should we suspect those "programmer" who not using simple method to left-pad are either lousy, lazy, or both ?

sad.gif



This post has been edited by flashang: Jul 25 2022, 12:00 AM
TSflashang
post Jul 25 2022, 12:05 AM

Casual
***
Junior Member
355 posts

Joined: Aug 2021


QUOTE(15cm @ Jul 23 2022, 02:35 PM)
really long article and its saturday and i dont feel like reading

whats it about ? that programmers would rather use readily made library than writing simple code themselves?

young programmers not paying attention to processing power and memory usage? thats normal lolz
*
Just workable mindset only make a working product,
Hard to make a good product.

sad.gif


FlierMate1
post Jul 25 2022, 01:13 AM

Getting Started
**
Validating
139 posts

Joined: Jun 2022
QUOTE(flashang @ Jul 24 2022, 11:59 PM)
Should we suspect those "programmer" who not using simple method to left-pad are either lousy, lazy, or both ?

sad.gif
*
I think most programmers are not using left-pad directly, it happens just because one of the package depends on it.


This post has been edited by FlierMate1: Jul 25 2022, 01:24 AM
Imaizumi
post Aug 22 2022, 07:28 AM

Getting Started
**
Junior Member
266 posts

Joined: Oct 2004
But the alternative should be discussed too. Every single line of code should come with written unit, integration and system tests.

Hence, if you want to reduce dependency on external components, would these functions be written from scratch with the accompanied written tests?

1. Effort / risk writting the test vs using external dependency (with the problems with it)
2. Based on the language feature / framework, solution such modularization (using only package needed within the library itself) could minimize this?

This post has been edited by Imaizumi: Sep 7 2022, 10:04 AM

 

Change to:
| Lo-Fi Version
0.0204sec    0.68    5 queries    GZIP Disabled
Time is now: 25th December 2025 - 01:08 AM