Outline ·
[ Standard ] ·
Linear+
Code bloat has become astronomical
|
TSflashang
|
Jul 22 2022, 09:53 PM, updated 4y ago
|
|
Code bloat has become astronomical June 5, 2022 cliffski Code bloat has become astronomical – Cliffski's BlogUsing 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 ?
|
|
|
|
|
|
Roadwarrior1337
|
Jul 22 2022, 10:37 PM
|
|
With github everyone can code
|
|
|
|
|
|
silverhawk
|
Jul 23 2022, 12:17 AM
|
Eyes on Target
|
Obligatory: https://qz.com/646467/how-one-programmer-br...-piece-of-code/Anyone working with nodejs knows the pain of npm dependency hell.
|
|
|
|
|
|
FlierMate1
|
Jul 23 2022, 08:37 AM
|
Getting Started

|
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
|
Jul 23 2022, 11:18 AM
|
|
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. This post has been edited by flashang: Jul 23 2022, 11:23 AM
|
|
|
|
|
|
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
This post has been edited by 15cm: Jul 23 2022, 02:38 PM
|
|
|
|
|
|
FlierMate1
|
Jul 23 2022, 03:54 PM
|
Getting Started

|
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.”
|
|
|
|
|
|
TSflashang
|
Jul 24 2022, 11:59 PM
|
|
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.”  Should we suspect those "programmer" who not using simple method to left-pad are either lousy, lazy, or both ? This post has been edited by flashang: Jul 25 2022, 12:00 AM
|
|
|
|
|
|
TSflashang
|
Jul 25 2022, 12:05 AM
|
|
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.
|
|
|
|
|
|
FlierMate1
|
Jul 25 2022, 01:13 AM
|
Getting Started

|
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 ?  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
|
Aug 22 2022, 07:28 AM
|
Getting Started

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