« first day (4489 days earlier)      last day (671 days later) » 

10:17 AM
Hi, 2 things I would like to see implemented in SO are: 1 - button x fullscreen mode x view wrapped embed code (useful x small screen), 2 - a simple button to copy the content of embed code
 
3 hours later…
1:29 PM
@NineCattoRules LOL, it's called "Tamper Monkey"... write a tamper monkey plugin... ironically, they're written in JavaScript, so it should be no trouble. Here's one I wrote for cppreference, the same concepts apply. nt4.com/monkey/cppreference.user.js
@Orwellophile Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
1:44 PM
 
2 hours later…
3:47 PM
Can anyone help me with my question?
https://stackoverflow.com/questions/75281406/in-reactjs-the-threejs-objects-not-showing
 
1 hour later…
5:05 PM
need a cross framework combo box, anyone?
what does that mean
@KevinB Hi Kevin. How are you, man?
i am amazing
It means that headless UI doesn;t exist for my framework

and i need a combobox
@KevinB How's your days going? :))
 
2 hours later…
user11740269
7:31 PM
Hey there! Trying to create a compatibility layer so IDEs different
@HyperNight Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
user11740269
Hey there* Trying to create a compatibility layer so non-VSCode IDEs can use VSCode's ecosystem of extensions. VSCode extensions are ran by the extension host. The extension host provides each extension the 'vscode' module, which is wha tthey use to communicate with VSCode.
user11740269
I'm trying to encapsulate all this in just an npm module, but each IDE that wants to implement this will have to implement their own "vscode" module, which is just a .js module.
user11740269
How would this be done in an npm module? TL;DR; install a module, and let the parent provide a module, so the child can use it.
9:09 PM
o/
 
1 hour later…
10:33 PM
o/
🎅
compiling using npm is a pain sometimes
trying to compile this: github.com/excalidraw/excalidraw
i've grown to resent npm and generally the javascript ecosystem when it comes to modules
too many things depending on other things depending on other things depending on other things...
I'm glad we feel the same on this :)
i tend to avoid includng things that i can reinvent myself with minimal work
10:44 PM
I wish I could do the same. I don't know JS as much as I'd like to. There much more roadblock to me (npm being one of them) hmm
we went from everything being included on the page, to a few external script includes, to dozens of script includes, to compilesteps to merge them, to modules, to deeply nested modules
now we have tree shaking, of course, but that doesn't prevent me from having a folder on my dev machine with 50k files in it
@NordineLotfi Hey, me too!
@VLAZ I knew you felt the same way of course ;)
@KevinB There is "modular" which is, say, similar to LEGO blocks. Then there is npm modules which is like building a sandcastle where each dependency is a sand grain.
@KevinB I noticed this too. I remember once finding out the dependencies for a single small project on github (less than 1MB) took more than 1GB
11:01 PM
@NordineLotfi Want to be entertained? (or horrified - your choice) Have a look at the is-positive-int package. It has *four dependencies. Two direct, two more transitive.
in Userscript newbies and friends, Jan 10 at 10:58, by VLAZ
                is-positive-int
	         /            \
is-safe-integer           number-is-integer
      |                          |
max-safe-integer             is-finite
My attempt at drawing the diagram of dependencies.
But wait, there is more! The build of that package is failing. The dependencies are deprecated (most? I think all. CBA to check).
And the final kicker - this package is created by a JS gold tag badge holder on SO.
i've deleted all the packages i've owned
Well, of course, it was created 5 years ago. Yes, perhaps things were different back then. But here is another thing - let's say maybe it was a bit harder to correctly and conclusively check if a number is an integer between zero and the maximum safe integer by covering all edge cases. I mean, it wasn't but still, let's assume so.
I've never, in my life, needed this functionality.
Like, if I need to verify if something is 1. an integer 2. positive. Then I'd use some more modular validators. That I can write myself, too without needing five NPM packages.
on github if you want to work on an issue you assign it to yourself correct?
but if you start working on it is there a start button that tells others that you are working on it so they don't?
the kicker tho is all you need to do is install another package that does use it
and now those 5 useless things are in your folder
Yes. Then the author removes the package and it's left-pad all over again.
11:08 PM
it's the "Lets build a solution that we can reuse in the future" problem dialed to 11
i feel like when i work on a js project the majority of my time is spent dealing with dependencies rather than writing code
On that note - do you know how hard it was to find that is-positive-int package? That particular one. There is so many like "is positive number", "is safe integer", "is non-negative" and so on.
i mean
i found one in my first search on google, that was by a user with 27k on SO but doesn't have a javascript gold badge
@VLAZ O-O
the fact that this isn't labelled as a joke project is concerning
That particular one is what I put forward as "npm ecosystem is insane". The others at least have the decency to not have 4 dependencies. Although some may have 1-2.
11:37 PM
no one likes github?
why do you all hate github? /s

« first day (4489 days earlier)      last day (671 days later) »