programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
jopsozepsi@lemmy.world to Programmer HumorEnglish · 2 years ago

function {}

message-square
message-square
12
link
fedilink
39
message-square

function {}

jopsozepsi@lemmy.world to Programmer HumorEnglish · 2 years ago
message-square
12
link
fedilink

alert-triangle
You must log in or register to comment.
  • GrishAix@feddit.de
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 years ago
    function {
    }
    

    Is for cheaters who want to squeeze as much code as possible onto one screen.

    • zygo_histo_morpheus
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      only good thing about javascript is that it forces people to put the squiggly brackets on the right

      • bcrussin_dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        I thought you could put curly brackets on a new line in js? Although I know when returning an object it has to be on the same line… fuck JavaScript man

        • zygo_histo_morpheus
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          Exactly, your options are either mixing curly brackets or putting them all on the right and most people aren’t crazy enough to mix then

  • Björn Tantau@feddit.de
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    2 years ago
    function {
    }
    

    but

    method
    {
    }
    

    Don’t ask me why.

    • sguerrini97@feddit.it
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      2 years ago

      Why

      • msage
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        You don’t ask!

        • silas
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          Why

          • msage
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 years ago

            Damn it Carl!

  • snake_case@feddit.uk
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    2 years ago

    This image is cursed!!

  • CoderKat@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    I’m sorry, are you saying you indent the braces? Cause if that’s not unintentional, those are both horrifying!

Programmer Humor

programmer_humor

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.

  • 1.18K users / day
  • 4.1K users / week
  • 8.24K users / month
  • 18K users / 6 months
  • 2.39K local subscribers
  • 23.3K subscribers
  • 1.38K Posts
  • 51.8K Comments
  • Modlog
  • mods:
  • adr1an
  • Feyter
  • BurningTurtle
  • Pierre-Yves Lapersonne
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org