Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
jopsozepsi to Programmer Humor@programming.devEnglish · 2 years ago

function {}

message-square
message-square
13
link
fedilink
45
message-square

function {}

jopsozepsi to Programmer Humor@programming.devEnglish · 2 years ago
message-square
13
link
fedilink

alert-triangle
You must log in or # 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@programming.dev
      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@programming.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@programming.dev
          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
    8
    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@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        You don’t ask!

        • silas@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          Why

          • msage@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 years ago

            Damn it Carl!

  • Trebach@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    2 years ago
    function()
    {
        // code
    }
    
    

    forever because you never know how long the parameter list is going to be.

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

    This image is cursed!!

  • CoderKat@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    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@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.

  • 60 users / day
  • 2.81K users / week
  • 9.65K users / month
  • 19.4K users / 6 months
  • 7.51K local subscribers
  • 24.5K subscribers
  • 1.51K Posts
  • 54.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.12-3-gc6677485
  • BE: 0.19.12-4-gd8445881a
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org