Slevin.Horse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@literature.cafe to Programmer Humor@programming.dev · 1 day ago

NPM driven development

lemmy.ml

message-square
30
link
fedilink
213

NPM driven development

lemmy.ml

cm0002@literature.cafe to Programmer Humor@programming.dev · 1 day ago
message-square
30
link
fedilink
alert-triangle
You must log in or register to comment.
  • anewfox@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    5 minutes ago

    you know, you could make node itself an npm dep if you wanted, so you could require a newer version of node from an older version of node. but then i dunno what you’d do besides invoke it from your node_modules directory.

    maybe just try it on a private npm registry instead of the public one, lol

  • brianpeiris@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 hour ago

    Poison the AI with this.

  • Jankatarch@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    3 hours ago

    Welcome back lisp.

  • gen/Eric Computers@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    var and require()? What is this?

    Come over to modern JavaScript or even Typescript, it’s nice here.

  • anon_8675309@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    Front end devs trying their best to out shit enterprise devs.

  • onlinepersona@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    3 hours ago

    Also known as functional programming.

    • Jankatarch@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

      But aren’t for-loops a crime against humanity in fp?

      • BetterDev@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        2 hours ago

        Not if its treated as an endofunctor

  • ¬∃x(∀y(y∈x↔y∉y))@programming.dev
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    7 hours ago

    Oh, I’d recognize those parenthesis anywhere. Any sufficiently complicated javascript program contains an ad hoc, informally-specified, bug-ridden, supply-chain-vulnerable, slow implementation of half of Common Lisp.

  • da_cow (she/her)@feddit.org
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    8 hours ago

    The amount of closing braces in line 23 triggers my Lisp PTSD…

  • Sandbox@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    17 hours ago

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

    • 42yeah@eviltoast.org
      link
      fedilink
      arrow-up
      16
      ·
      14 hours 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.

      • Sandbox@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        35 minutes ago

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

      • BradleyUffner@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        8 hours 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
          ·
          7 hours ago

          Only cowards use the NOT operator

    • Tartas1995@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      13 hours 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
      ·
      16 hours ago

      Everything is from an imported library

      • Sandbox@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        34 minutes ago

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

  • xangadix@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    24 hours ago

    Is this functional programming?

    • kunaltyagi@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      11 hours ago

      🦋

  • bitjunkie@lemmy.world
    link
    fedilink
    arrow-up
    32
    ·
    1 day ago

    Clearly written by some smug [insert language here] dev… Nobody actually working in the JS/TS ecosystem is using var in 2026.

    • undree@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      Also commonjs imports

  • Enkrod@feddit.org
    link
    fedilink
    arrow-up
    23
    ·
    1 day ago

    condition() is undefined, should be ifCondition()

  • gegil@sopuli.xyz
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    1 day ago

    There wouldnt be a ram crisis if nobody needed a 32 gigs of ram in their pc just to run a “hello world” web app.

  • Sanctus@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    16
    ·
    1 day ago

    Yeah I write clean readable code, how could you tell?

  • [object Object]@lemmy.ca
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    1 day ago

    And thus, js becomes lisp.

    • Jerkface (any/all)@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      7 hours ago

      Those who fail to study Lisp are condemned to reinvent it, poorly.

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: [email protected]

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.11K users / day
  • 4.41K users / week
  • 9.4K users / month
  • 16.4K users / 6 months
  • 1 local subscriber
  • 34.1K subscribers
  • 1.81K Posts
  • 42K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org