The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish • 1 year ago

))<>((

mander.xyz

message-square
67
fedilink
1.08K

))<>((

mander.xyz

@fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish • 1 year ago
message-square
67
fedilink
alert-triangle
You must log in or register to comment.
  • rockerface 🇺🇦
    link
    fedilink
    English
    191•
    edit-2
    1 year ago

    As a software developer, the less ambiguous your notation is, the better it is for everyone involved. Not only will I use brackets, I’ll split my expression into multiple rows and use tabs to make it as readable as humanly possible. And maybe throw a comment or 2 if there’s still some black magic involved

    • @MotoAsh@lemmy.world
      link
      fedilink
      English
      9•
      edit-2
      4 days ago

      deleted by creator

    • @dustyData@lemmy.world
      link
      fedilink
      English
      57•1 year ago

      As a professor said, most programming languages don’t care about readability and whitespace. But we care because humans need it to parse meaning. Thus, write code for people, not for the machine. Always assume that someone with no knowledge of the context will have to debug it, and be kind to them. Because that someone might be you in six months when you have completely forgotten how the code works.

      • @Swedneck@discuss.tchncs.de
        link
        fedilink
        English
        10•1 year ago

        Source code is for humans, then the compiler turns it into code for machines.

      • @zalgotext@sh.itjust.works
        link
        fedilink
        English
        16•1 year ago

        Exactly. You read code way more times than you write it, so it makes all the sense in the world to prioritize readability.

      • feinstruktur
        link
        fedilink
        English
        5•1 year ago

        This. Always be kind to your future self.

      • rockerface 🇺🇦
        link
        fedilink
        English
        6•
        edit-2
        1 year ago

        Yep, if you’re writing code for a machine, just do it in binary to save compilation time (/s just in case). Also, you in six months will indeed be someone with no knowledge of the context. And every piece of code you think you write for one-time use is guaranteed to be reused every day for the next 5 years

      • @snowsuit2654@lemmy.blahaj.zone
        link
        fedilink
        English
        2•1 year ago

        Yeah I totally agree. You can minimize and optimize as part of your build procedure/compilation but the source code should be as readable as possible for humans.

    • @Quetzalcutlass@lemmy.world
      link
      fedilink
      English
      49•1 year ago

      I had someone submit a pull request recently that, in addition to their actual changes, also removed every single parenthesis that wasn’t strictly necessary in a file full of 3D math functions. I know it was probably the fault of an autoformatter they used, but I was still the most offended I’ve ever been at a pull request.

      • rockerface 🇺🇦
        link
        fedilink
        English
        27•1 year ago

        Autoformatter? More like obfuscator

    • stebo
      link
      fedilink
      English
      0•1 year ago

      Ok but that’s unrelated to putting some numbers and operations in a calculator. No one is going to proofread that. If anything, you simply calculate it again.

    • @penquin@lemm.ee
      link
      fedilink
      English
      3•1 year ago

      You’re a good human being.

  • @mathic@lemmy.world
    link
    fedilink
    English
    21•1 year ago

    I, my head, shake.

    • RPN user
    • rockerface 🇺🇦
      link
      fedilink
      English
      6•1 year ago

      Also known as: Japanese speaker

  • @SmoothLiquidation@lemmy.world
    link
    fedilink
    English
    12•1 year ago

    This is why every calculator should be a RPN calculator.

    • lemmyng
      link
      fedilink
      English
      5•1 year ago

      I still have my HP 48 series calculator. It’s a sturdy beast.

    • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱
      link
      fedilink
      English
      0•1 year ago

      This is why every calculator should be a RPN calculator

      No, this is why programmers should (re)learn the order of operations rules before writing a calculator.

  • @MotoAsh@lemmy.world
    link
    fedilink
    English
    9•
    edit-2
    4 days ago

    deleted by creator

    • @itsralC@lemm.ee
      link
      fedilink
      English
      2•1 year ago

      Counterpoint: C function pointers (or just C in general)

    • @dejected_warp_core@lemmy.world
      link
      fedilink
      English
      1•1 year ago

      Also: sometimes, a mathematician just has to invent some concept or syntax to convey something unconventional. The specific use of subscript/superscript, whatever ‘phi’ is being used for, etc. on whatever paper you’re reading doesn’t have to correlate to how other work uses the same concepts. It’s bad form, but sometimes its needed, and if useful enough is added to the general canon of what we call “math”. Meanwhile, you can encapsulate and obfuscate things in software, sure, but you can always get down to the bedrock of what the language supports; there’s no inventing anything new.

      • @MotoAsh@lemmy.world
        link
        fedilink
        English
        1•
        edit-2
        4 days ago

        deleted by creator

        • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱
          link
          fedilink
          English
          -1•1 year ago

          Math should be just as deterministic as programming, but it’s not in some situations

          Maths is 100% deterministic for order of operations. The issue is people not following all of the rules. Order of operations thread index

          • @MotoAsh@lemmy.world
            link
            fedilink
            English
            0•
            edit-2
            4 days ago

            deleted by creator

            • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱
              link
              fedilink
              English
              0•1 year ago

              The syntax is arbitrary in some edge cases

              Such as?

  • @Omega_Haxors@lemmy.ml
    link
    fedilink
    English
    13•
    edit-2
    1 year ago

    (I used(LISP)one time(and it(permanently))changed the way I (program(computers)))

    • @henfredemars@infosec.pub
      link
      fedilink
      English
      3•1 year ago

      Did it change it in a positive way?

  • @unexposedhazard@discuss.tchncs.de
    link
    fedilink
    English
    24•1 year ago

    Also works if you dont trust yourself with correctly ordering your operations.

  • @Qkall@lemmy.ml
    link
    fedilink
    English
    21•1 year ago

    Iykyk

    https://youtu.be/KQoJo81lujk

    • @PoisonedPrisonPanda@discuss.tchncs.de
      link
      fedilink
      English
      2•1 year ago

      Ok man. Wtf did I just watch…

      I get it. We are here on the somehow dark side of the internet…

      But THIS… without any context. i mean. Im questioning live here man. What do you want to express with that?

      • @janNatan@lemmy.ml
        link
        fedilink
        English
        8•1 year ago

        I’m pretty sure it’s just a reference to when the kid types ))<>((

        Btw, it’s not from the dark side of the Internet. This was a very popular video at the time.

      • ASeriesOfPoorChoices
        link
        fedilink
        English
        1•1 year ago

        🤦‍♂️ read the post body, my lad.

        • @PoisonedPrisonPanda@discuss.tchncs.de
          link
          fedilink
          English
          1•1 year ago

          Thanks. Im blind AF

  • @MeDuViNoX@sh.itjust.works
    link
    fedilink
    English
    10•1 year ago

    (‿!‿) (‿O‿)

    • @The_Cunt_of_Monte_Cristo@lemmy.world
      link
      fedilink
      English
      5•1 year ago

      ( . ) ( . ) ( . Y . )

  • @Voyajer@lemmy.world
    link
    fedilink
    English
    11•1 year ago

    Improved readability is always good

  • ASeriesOfPoorChoices
    link
    fedilink
    English
    19•1 year ago

    back and forth, forever.

    • @RinseDrizzle@midwest.social
      link
      fedilink
      English
      1•1 year ago

      Suuuuuch a weird movie lol

  • @seriousconsideration@lemmy.dbzer0.com
    link
    fedilink
    English
    3•
    edit-2
    1 year ago

    deleted by creator

    • @Daxtron2@startrek.website
      link
      fedilink
      English
      8•1 year ago

      sounds like work for a compooter

  • @unlucky@lemmy.world
    link
    fedilink
    English
    1•1 year ago

    me using sbcl for everything

  • @survivalmachine@beehaw.org
    link
    fedilink
    English
    1•1 year ago

    My calculator uses a stack instead of brackets. #RPN4Life

  • @ooli@lemmy.world
    link
    fedilink
    English
    3•
    edit-2
    8 months ago

    deleted by creator

    • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱
      link
      fedilink
      English
      2•1 year ago

      I just used the calc on window… it cannot respect order of operation

      Yeah, I’ve tried several times to get Microsoft to fix their calculators. I’ve given up trying now - eventually you have to stop banging your head against the wall.

  • @Kowowow@lemmy.ca
    link
    fedilink
    English
    3•1 year ago

    Ooh I love brackets

Science Memes@mander.xyz

!science_memes@mander.xyz
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: !science_memes@mander.xyz

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don’t throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

  • !spiders@lemmy.world

Other Mander Communities

Science and Research

  • !academia@mander.xyz
  • !science@mander.xyz
  • !scicomm@mander.xyz

Biology and Life Sciences

  • !abiogenesis@mander.xyz
  • !animal-behavior@mander.xyz
  • !anthropology@mander.xyz
  • !arachnology@mander.xyz
  • !balconygardening@slrpnk.net
  • !biodiversity@mander.xyz
  • !biology@mander.xyz
  • !biophysics@mander.xyz
  • !botany@mander.xyz
  • !ecology@mander.xyz
  • !entomology@mander.xyz
  • !fermentation@mander.xyz
  • !herpetology@mander.xyz
  • !houseplants@mander.xyz
  • !medicine@mander.xyz
  • !microscopy@mander.xyz
  • !mycology@mander.xyz
  • !nudibranchs@mander.xyz
  • !nutrition@mander.xyz
  • !palaeoecology@mander.xyz
  • !palaeontology@mander.xyz
  • !photosynthesis@mander.xyz
  • !plantid@mander.xyz
  • !plants@mander.xyz
  • !reptiles and amphibians@mander.xyz

Physical Sciences

  • !astronomy@mander.xyz
  • !chemistry@mander.xyz
  • !earthscience@mander.xyz
  • !geography@mander.xyz
  • !geospatial@mander.xyz
  • !nuclear@mander.xyz
  • !physics@mander.xyz
  • !quantum-computing@mander.xyz
  • !spectroscopy@mander.xyz

Humanities and Social Sciences

  • !archaeology@mander.xyz
  • !folklore@mander.xyz
  • !history@mander.xyz
  • !old_maps@mander.xyz

Practical and Applied Sciences

  • !exercise-and sports-science@mander.xyz
  • !gardening@mander.xyz
  • !self sufficiency@mander.xyz
  • !soilscience@slrpnk.net
  • !terrariums@mander.xyz
  • !timelapse@mander.xyz

Memes

  • !bushrat_confidential@slrpnk.net
  • !science_memes@mander.xyz

Miscellaneous

  • !answered@mander.xyz
  • !mander@mander.xyz
  • 61 users / day
  • 311 users / week
  • 1.47K users / month
  • 4.37K users / 6 months
  • 1 subscriber
  • 5.3K Posts
  • 75.9K Comments
  • Modlog
  • mods:
  • Salamander
  • @fossilesque@mander.xyz
  • SciBot
  • @fossilesque@lemmy.dbzer0.com
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org