Lemmy Myserv one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Feathercrown@lemmy.world to 196@lemmy.blahaj.zoneEnglish ·
edit-2
1 year ago

fixed (2)_rule_final draft 3

lemmy.world

message-square
29
link
fedilink
220

fixed (2)_rule_final draft 3

lemmy.world

Feathercrown@lemmy.world to 196@lemmy.blahaj.zoneEnglish ·
edit-2
1 year ago
message-square
29
link
fedilink
alert-triangle
You must log in or register to comment.
  • 👍Maximum Derek👍@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    43
    ·
    1 year ago

    Nope, Haskell was just a bad dream I had. It was just a dream, not real, that’s not real. I’m OK.

    • mokus@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      21
      ·
      1 year ago

      There there, the monads can’t hurt you here

    • Zewu@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      Haskell is nice. This code style… not so much

    • Match!!@pawb.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      A distant voice:

      Learn you a Haskell for great good

  • saigot@lemmy.ca
    link
    fedilink
    arrow-up
    32
    ·
    1 year ago

    If all your code isn’t on one line you aren’t a real programmer.

    • damnfinecoffee@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I prefer to newline after every symbol for better readability

    • crazybrain@lemmy.spacestation14.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I wonder if you could have it all on one column.

  • ambrosiaforest@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    28
    ·
    1 year ago

    python user 😔

    • MashedTech@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Let me explain…

    • yetAnotherUser@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Imagine having to use {}; instead of

  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    edit-2
    1 year ago

    OP is clearly a python user incapable of understanding punctuation

    Embrace the brace, you won’t be alone with a semi-colon(…e)

  • Wilzax@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    1 year ago

    Kernighan & Ritchie. This is the hill I choose to die on.

    • zoly@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      The only correct answer

  • Midnight Wolf@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    ·
    1 year ago

    Allman or gnu, rest are fucking bonkers

    • Metype @lemmy.world
      link
      fedilink
      English
      arrow-up
      16
      ·
      1 year ago

      Putting the opening curly brace of a code block on the same line that defines the conditions the code block will run under is bonkers?

      • jwelch55@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        There’s an asymmetry to it that always left me uncomfortable.

      • doctorcrimson@lemmy.today
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        If we’re judging purely on readability then I think Allman probably has the edge, here. You can see at a glance where the encasement starts or ends in a vertical column on the far left. Of course, that’s a moot point if the programmer’s color coding is set up to where it is obvious.

    • Dr. Bluefall@toast.ooo
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 year ago

      K&R FTW

      • perishthethought@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Obviously!

    • state_electrician@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      1 year ago

      Lol, you deranged lunatic.

  • kryptonianCodeMonkey@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    1 year ago

    Reject the code block. Embrace the modularity. If you were going to write a code block, write a function instead.

    • Nat (she/they)@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      If you must avoid code blocks, that means you can only use one line. I don’t think you can be Turing complete if each function can only call one function. I don’t even think you can get a context-free grammar, Chomsky normal form at least allows a variable to expand into two variables.

      • JDubbleu@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Please never bring up CNF again. I’m a year out of college, two years out of finite automata, and I still shudder when it’s brought up.

  • insomniac_lemon@kbin.social
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 year ago

    I might have a personality disorder, but yeah seeing most code/languages (stuff more substantial than the image here) makes me think there’s something really wrong with them or me (or both) because I don’t see how you get into that. Though I know in many cases it probably could’ve been written differently.

    I like 1 language*, but it uses whitespace. I mean that’s not the defining factor, but there aren’t really different styles like this (though there is spaces for indentation depth, and I usually went with 1 space instead of the standard 2 so there is that).

    *=it’s somewhat niche and I never really started with it because… userspace reasons I guess is the best way to put it

    • ReveredOxygen@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Nim?

      • insomniac_lemon@kbin.social
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        You got it. (mirror link)

        I’m not sure if you guessed it or not because I’ve posted about it a few times in different contexts (thus why I try not to name drop now). I mean much of it is on me as well, change a few things about me and I might’ve done more with it.

        • ReveredOxygen@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Nah, it’s just the only language I know with Python syntax, other than Python

  • ZILtoid1991@kbin.social
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    OTBS is the only way!

    • pewgar_seemsimandroid@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      no, stealing code is

196@lemmy.blahaj.zone

196@lemmy.blahaj.zone

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]

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

  • No bigotry (transphobia, racism, etc…)
  • No genocide denial
  • No support for authoritarian behaviour (incl. Tankies)
  • No namecalling
  • Accounts from lemmygrad.ml, threads.net, or hexbear.net are held to higher standards
  • Other things seen as cleary bad

Posting rules:

  • No AI generated content (DALL-E etc…)
  • No advertisements
  • No gore / violence
  • Mutual aid posts are not allowed

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn’t adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196’s:

  • [email protected]
  • [email protected]
Visibility: Public
globe

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

  • 410 users / day
  • 2.17K users / week
  • 5.39K users / month
  • 18.1K users / 6 months
  • 11 local subscribers
  • 17.6K subscribers
  • 12.7K Posts
  • 182K Comments
  • Modlog
  • mods:
  • Moss@lemmy.blahaj.zone
  • greembow@lemmy.blahaj.zone
  • moss@lemmy.world
  • Queue@beehaw.org
  • funky-rodent [he/him]@lemmy.blahaj.zone
  • Peachy [they/she] @lemmy.blahaj.zone
  • threegnomes@lemmy.blahaj.zone
  • greembow@lemmy.world
  • remotelove@lemmy.ca
  • Roflmasterbigpimp@feddit.de
  • A_Very_Big_Fan@lemm.ee
  • qaz@lemmy.blahaj.zone
  • A_Very_Big_Fan@lemmy.world
  • qaz@lemmy.sdf.org
  • qaz@lemmy.world
  • qaz@sh.itjust.works
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org