Alien Top
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@literature.cafe to Programmer Humor@programming.dev · 2 days ago

NPM driven development

lemmy.ml

message-square
32
link
fedilink
226

NPM driven development

lemmy.ml

cm0002@literature.cafe to Programmer Humor@programming.dev · 2 days ago
message-square
32
link
fedilink
  • Sandbox@lemmy.zip
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

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

    • 42yeah@eviltoast.org
      link
      fedilink
      arrow-up
      16
      ·
      1 day ago

      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.

      • BradleyUffner@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day ago

        My favorite was IsEven. An entire library to tell you if a number is even. And then IsOdd, that does the opposite, which takes IsEven as a dependenxy.

        • filcuk@feddit.uk
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          Only cowards use the NOT operator

      • Sandbox@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        18 hours ago

        That’s…amazing haha thank you for your reply!

    • Tartas1995@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      Bad JavaScript Code to make fun of npm.

      But it is just bad code and consequently it weakens the critic that npm deserves.

    • aldhissla@beehaw.org
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      Everything is from an imported library

      • Sandbox@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        18 hours ago

        I for one support local libraries. They’re an invaluable resource for the community and I support them 100%

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.91K users / day
  • 4.2K users / week
  • 9.33K users / month
  • 16.4K users / 6 months
  • 15 local subscribers
  • 34.1K subscribers
  • 2.61K Posts
  • 83.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • adr1an@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.17
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org