Lemmy @ 60708090.xyz
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@piefed.world to Programmer Humor@programming.devEnglish · 3 days ago

You typical Node project

lemmy.ml

message-square
68
link
fedilink
571

You typical Node project

lemmy.ml

cm0002@piefed.world to Programmer Humor@programming.devEnglish · 3 days ago
message-square
68
link
fedilink
  • fahfahfahfah@lemmy.billiam.net
    link
    fedilink
    English
    arrow-up
    33
    ·
    3 days ago

    And this is why tree shaking exists.

    • candyman337@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      3 days ago

      What is that?

      • NewDark@lemmings.world
        link
        fedilink
        arrow-up
        42
        ·
        3 days ago

        If you import 1% of your module code, you only compile the actual used code. Tree shaking is removing dead code paths that aren’t used.

        • candyman337@lemmy.world
          link
          fedilink
          arrow-up
          13
          ·
          3 days ago

          Ah ok gotcha

      • Nat (she/they)@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        14
        ·
        2 days ago

        Dead code elimination but with a different name for some reason

        • QuazarOmega@lemy.lol
          link
          fedilink
          arrow-up
          4
          ·
          2 days ago

          Because we’re monkeys

          • mathiouchio@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            We ARE all apes

    • kamen@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      It’s great when it works, yeah.

    • sheepishly@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      I feel like the end result of tree shaking would be the image here https://fedia.io/m/[email protected]/t/2547352/CSS-Gardening

      • I Cast Fist@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        Gotta fix that link

        • sheepishly@fedia.io
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          22 hours ago

          Works on my machine…

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
Visibility: Public
globe

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

  • 2.47K users / day
  • 4.92K users / week
  • 8.78K users / month
  • 15.4K users / 6 months
  • 1 local subscriber
  • 25.7K subscribers
  • 750 Posts
  • 12.3K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org