Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
cm0002 ( cm0002@literature.cafe )  to Programmer Humor@programming.dev · 21 days ago

NPM driven development

lemmy.ml

message-square
20
link
fedilink
175

NPM driven development

lemmy.ml

cm0002 ( cm0002@literature.cafe )  to Programmer Humor@programming.dev · 21 days ago
message-square
20
link
fedilink
alert-triangle
You must log in or register to comment.
  • Enkrod ( Enkrod@feddit.org ) 
    link
    fedilink
    arrow-up
    20
    ·
    21 days ago

    condition() is undefined, should be ifCondition()

  • gegil ( gegil@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    20
    ·
    21 days 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.

  • [object Object] ( panda_abyss@lemmy.ca ) 
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    21 days ago

    And thus, js becomes lisp.

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

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

  • Sanctus ( Sanctus@anarchist.nexus ) 
    link
    fedilink
    English
    arrow-up
    13
    ·
    21 days ago

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

  • eah ( eah@programming.dev ) 
    link
    fedilink
    arrow-up
    8
    ·
    20 days 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.

  • flango ( flango@lemmy.eco.br ) 
    link
    fedilink
    arrow-up
    8
    ·
    21 days ago

    standard Javascript experience

    • Tartas1995 ( Tartas1995@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      6
      ·
      20 days ago

      Only if you write bad js.

    • anewfox ( anewfox@lemmy.zip ) 
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      5 days ago

      deleted by creator

  • Marmotte ( Jakylla@jlai.lu ) 
    link
    fedilink
    arrow-up
    5
    ·
    21 days ago

    Satan is taking notes…

  • onlinepersona ( onlinepersona@programming.dev ) 
    link
    fedilink
    arrow-up
    5
    ·
    20 days ago

    Also known as functional programming.

  • da_cow (she/her) ( cows_are_underrated@feddit.org ) 
    link
    fedilink
    arrow-up
    3
    ·
    20 days ago

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

  • Sandbox ( Sandbox@lemmy.zip ) 
    link
    fedilink
    arrow-up
    3
    ·
    21 days ago

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

    • 42yeah ( 42yeah@eviltoast.org ) 
      link
      fedilink
      arrow-up
      15
      ·
      20 days 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 ( Sandbox@lemmy.zip ) 
        link
        fedilink
        arrow-up
        3
        ·
        20 days ago

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

    • aldhissla ( aldhissla@beehaw.org ) 
      link
      fedilink
      arrow-up
      5
      ·
      20 days ago

      Everything is from an imported library

      • Sandbox ( Sandbox@lemmy.zip ) 
        link
        fedilink
        arrow-up
        2
        ·
        20 days ago

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

        • aldhissla ( aldhissla@beehaw.org ) 
          link
          fedilink
          arrow-up
          2
          ·
          18 days ago

          Hehehe, ok.

          Those require lines there, they’re importing code written elsewhere. We call that code a library. Take the first one:

          var zero = require("number-zero");

          defines a variable called zero, imports a library called number-zero (not a real library btw, just a joke), and assigns its value (assumed to be the constant 0) to the variable. Later in line 19, zero is read.

          The joke is that you wouldn’t even write line 2 and use a simple 0 instead of zero in line 19. The code is full of unnecessary imports of basic language components.

    • Tartas1995 ( Tartas1995@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      4
      ·
      20 days ago

      Bad JavaScript Code to make fun of npm.

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

  • anewfox ( anewfox@lemmy.zip ) 
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    5 days ago

    deleted by creator

  • gen/Eric Computers ( generic_computers@lemmy.zip ) 
    link
    fedilink
    arrow-up
    2
    ·
    20 days ago

    var and require()? What is this?

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

  • brianpeiris ( brianpeiris@lemmy.ca ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    20 days ago

    Poison the AI with this.

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.

  • 286 users / day
  • 2.11K users / week
  • 4.25K users / month
  • 8.37K users / 6 months
  • 465 local subscribers
  • 34.4K subscribers
  • 1.69K Posts
  • 28K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code