Lemmy.ca
  • Communities
  • Create Post
  • Create Community
  • Aquileo | heart
    Support Lemmy
  • Aquileo | search
    Search
  • Login
  • Sign Up
Feathercrown@lemmy.world to 196@lemmy.blahaj.zoneEnglish · 2 years ago

fixed (2)_rule_final draft 3

lemmy.world

Aquileo | message-square
29
Aquileo | link
Aquileo | fedilink
220

fixed (2)_rule_final draft 3

lemmy.world

Feathercrown@lemmy.world to 196@lemmy.blahaj.zoneEnglish · 2 years ago
Aquileo | message-square
29
Aquileo | link
Aquileo | fedilink
Aquileo | alert-triangle
You must log in or register to comment.
  • 👍Maximum Derek👍@discuss.tchncs.de
    Aquileo | link
    Aquileo | fedilink
    English
    Aquileo | arrow-up
    43
    ·
    2 years 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
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      21
      ·
      2 years ago

      There there, the monads can’t hurt you here

    • Zewu@lemmy.world
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      15
      ·
      2 years ago

      Haskell is nice. This code style… not so much

    • Match!!@pawb.social
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      6
      ·
      2 years ago

      A distant voice:

      Learn you a Haskell for great good

  • saigot
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    32
    ·
    2 years ago

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

    • damnfinecoffee@lemmy.world
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      3
      ·
      2 years ago

      I prefer to newline after every symbol for better readability

    • crazybrain@lemmy.spacestation14.com
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      2
      ·
      2 years ago

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

  • ambrosiaforest@lemmy.blahaj.zonedeleted by creator
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    28
    ·
    2 years ago

    python user 😔

    • MashedTech@lemmy.world
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      4
      ·
      2 years ago

      Let me explain…

    • yetAnotherUser
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      2
      ·
      2 years ago

      Imagine having to use {}; instead of

  • 9point6@lemmy.world
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    26
    ·
    2 years 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
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    22
    ·
    2 years ago

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

    • zoly@lemmy.world
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      6
      ·
      2 years ago

      The only correct answer

  • Midnight Wolf@lemmy.world
    Aquileo | link
    Aquileo | fedilink
    English
    Aquileo | arrow-up
    17
    ·
    2 years ago

    Allman or gnu, rest are fucking bonkers

    • Metype @lemmy.world
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      16
      ·
      2 years 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
        Aquileo | link
        Aquileo | fedilink
        Aquileo | arrow-up
        6
        ·
        2 years ago

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

      • doctorcrimson@lemmy.todaydeleted by creator
        Aquileo | link
        Aquileo | fedilink
        Aquileo | arrow-up
        4
        ·
        2 years 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.

    • SystemNeo@toast.ooo
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      15
      ·
      2 years ago

      K&R FTW

      • perishthethought@lemm.ee
        Aquileo | link
        Aquileo | fedilink
        English
        Aquileo | arrow-up
        3
        ·
        2 years ago

        Obviously!

    • state_electrician@discuss.tchncs.de
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      9
      ·
      Aquileo | edit-2
      2 years ago

      Lol, you deranged lunatic.

  • kryptonianCodeMonkey@lemmy.world
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    15
    ·
    Aquileo | edit-2
    2 years 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
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      13
      ·
      2 years 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
        Aquileo | link
        Aquileo | fedilink
        Aquileo | arrow-up
        6
        ·
        2 years 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.

  • ZILtoid1991@kbin.social
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    4
    ·
    2 years ago

    OTBS is the only way!

    • pewgar_seemsimandroid@lemmy.blahaj.zone
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      3
      ·
      2 years ago

      no, stealing code is

  • insomniac_lemon@kbin.social
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    4
    ·
    Aquileo | edit-2
    2 years 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
      Aquileo | link
      Aquileo | fedilink
      English
      Aquileo | arrow-up
      2
      ·
      2 years ago

      Nim?

      • insomniac_lemon@kbin.social
        Aquileo | link
        Aquileo | fedilink
        Aquileo | arrow-up
        2
        ·
        Aquileo | edit-2
        2 years 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
          Aquileo | link
          Aquileo | fedilink
          English
          Aquileo | arrow-up
          1
          ·
          2 years ago

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

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: !196@lemmy.blahaj.zone

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:

  • !196@lemmy.world
  • !onehundredninetysix@lemmy.blahaj.zone
Visibility: Public
Aquileo | globe

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

  • 230 users / day
  • 846 users / week
  • 3.5K users / month
  • 6.95K users / 6 months
  • 283 local subscribers
  • 19.5K subscribers
  • 20.2K Posts
  • 230K 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.zonedeleted by creator
  • greembow@lemmy.world
  • remotelove
  • 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
  • qaz@piefed.malplena.net
  • BE: 0.19.20
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org