Elektrine lite

← Feed

@Sandbox@lemmy.zip

2026-11-12 02:55 UTC

Coding noob here. What am I looking at? I want to laugh too. :(

Replies (3)

  • @aldhissla@beehaw.org 2026-11-12 03:56

    Everything is from an imported library

    Open ##5521970

  • @42yeah@eviltoast.org 2026-11-12 06:34

    npm, or node js by extension, is famous (infamous?) for having a library for however simple something is to implement. For example a whole library to trim spaces of a string, but only for the left side. Here the joke takes it to the extreme and even import numbers, if conditions, etc., features that are already available in the core language, from external npm libraries, and use that to write a code snippet.

    Open ##5522439

  • Bad JavaScript Code to make fun of npm. But it is just bad code and consequently it weakens the critic that npm deserves.

    Open ##5522567