← Home ← Back to /g/

Thread 106186054

29 posts 6 images /g/
Anonymous No.106186054 >>106186081 >>106186112 >>106186252 >>106186405 >>106186446 >>106187168 >>106187243 >>106188654 >>106188938 >>106189100
why does this exist
why does it get 100M downloads a week
why do over 2k things depend on it
Anonymous No.106186081
>>106186054 (OP)
Webshitters are cooked. Total webshitter death.
Anonymous No.106186112 >>106186432 >>106186446
>>106186054 (OP)
>why?
have you tried reading the very first sentence of the description? i know that's asking a lot, op, but i believe in you.
Anonymous No.106186252
>>106186054 (OP)
prob people who can barely use js need to know if something is an array and this shit shows up first when they search "javascript is array"
Anonymous No.106186405
>>106186054 (OP)
Indians
I simply can't imagine east Asian, white or Slavic person using this thing.
Anonymous No.106186432
>>106186112
It is 7 lines of code.
Anonymous No.106186446
>>106186054 (OP)
>why does this exist
>>106186112
>have you tried reading the very first sentence of the description
lol owned hard by a compat shim
Anonymous No.106187168
>>106186054 (OP)
there must be a 1000 youtube tutorials mentioning it
Anonymous No.106187243 >>106188986 >>106189058 >>106189087
>>106186054 (OP)
If a library is less than 1k lines I rewrite it myself
Feels virtually itchy to have so many 7 lines libraries in a project
Anonymous No.106188654
>>106186054 (OP)
some bigger library has it as it's dependancy
now why does the bigger library have this dependency? possibly somehow injected by the author of this package somehow as a PR somewhere, maybe on an alternate account or something
Anonymous No.106188938
>>106186054 (OP)
it's sleeper malware
when you have hundreds of small dependencies like this one, one one is checking then and you can just slip something unwated there
Anonymous No.106188986 >>106189058
>>106187243
Unemployed mindset
Anonymous No.106189058 >>106189104 >>106189134
>>106187243
based, that's what I've always done as a C and C++ dev and that's what my defense company is forcing me to do anyways.
most of the time we use a very tiny subset of features from a dependency, it's much better to just extract the 1% needed or to rewrite something similar than to use the lib, only exception is openssl.
everyone is a potential terrorist, I don't want to depend on their code, I'll c/p the code I need directly into my project or as a lite version in a third-party folder right next to the makefile or CMakeFiles.txt (anything else is brain damage)
>>106188986
engineer mindset*
ftfy
using a dependency is a last resort effort, it's 99% of the time better to just c/p or rewrite what you need as it's easier to maintain, tailor-made for your use case, easier to build, no deps to manage, easier to enhance.
using a dependency should be justify to your hierarchy and you should be liable if anything wrong happen (jail time, etc)
Anonymous No.106189087
>>106187243

This is the way to go. If it can fit in a single file, you write it yourself. Idk where it was lost in the culture but dependencies are not a good thing, they are to be avoided not sought out.
Anonymous No.106189100
>>106186054 (OP)
Send an email to your professor instead of shitting up the board
Or ask a fucking llm
Anonymous No.106189104 >>106189156 >>106189159
>>106189058
You’re a tryhard cringelord who doesn’t value his time. Unemployed as fuck write less next time
Anonymous No.106189134 >>106189156 >>106189159
>>106189058
No, that anon is right, unemployed mindset.
Anonymous No.106189156
>>106189134
>>106189104

It actually reeks of toy app small timer that you've never experienced the hell of a huge package ridden npm hell situation
Anonymous No.106189159 >>106189183
>>106189104
>You’re a tryhard cringelord who doesn’t value his time
>t.webshitter
you don't know the first thing about software engineering, writing the code is never the hard task, it takes very little effort to extract/rewrite exactly what is necessary adn you can't prove me wrong.
>Unemployed as fuck write less next time
cope harder webshitter, you're the reason we can't have nice things anymore, I can't fucking wait for AI to put you where you belong as a garbage man.
>>106189134
no he is not. mutt brain damage at best, it's not like this in the first world and time spent on a feature (like integrating a dep) isn't wasted, 99% swe are salaried positions anyways.
programming isn't as time-consuming as you think, maybe webshitting is, I would not know as I don't mix myself with subhumans.
Anonymous No.106189183 >>106189187
>>106189159
God damn dude. It’s 8am don’t you have work? Oh wait…
Anonymous No.106189187 >>106189204
>>106189183
it's lunch time in the first world my guy
Anonymous No.106189204 >>106189214
>>106189187
Well you’re clearly not very busy. That’s for sure
Anonymous No.106189214 >>106189222
>>106189204
yep, I'm working from home on fridays and my break ends in 2 minutes at 14h30
Anonymous No.106189217
Someone must have put this shit in a popular package as a joke, and now everyone who installs that downloads this meme.
Anonymous No.106189222 >>106189229
>>106189214
Oh I’m sure :-)
Anonymous No.106189229 >>106189236
>>106189222
have a nice day, my guy
Anonymous No.106189236 >>106189242
>>106189229
Anonymous No.106189241
I don't work with javascript (I have standards), but what is the difference from this:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray

Why would you install something that does exactly the same thing as a native option?
Anonymous No.106189242
>>106189236
ataraxia on your family