lemux
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 1 day ago

Mom can we have Scratch? We have scratch at home. Scratch at home:

lemmy.ml

message-square
29
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
406

Mom can we have Scratch? We have scratch at home. Scratch at home:

lemmy.ml

HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 1 day ago
message-square
29
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • Artyom@lemm.ee
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    9 hours ago

    Remember the meme where all the parentheses are on the right hand side? This meme is the same.

  • SubArcticTundra@lemmy.ml
    link
    fedilink
    arrow-up
    55
    ·
    1 day ago

    Oooh, that is tempting. The main pain would be center justifying the code. Perhaps if it was left justified…

    • KubeRoot@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 hours ago

      I think the main pain would be manually aligning the frames on every line with every change, occasionally having to extend the width and updating every line of code to match it

    • Gobbel2000@programming.dev
      link
      fedilink
      arrow-up
      41
      ·
      1 day ago

      Clearly we need self-centering support from editors.

      • SubArcticTundra@lemmy.ml
        link
        fedilink
        arrow-up
        18
        ·
        20 hours ago

        Just one more reason to do your coding in Word.

        • DragonTypeWyvern@midwest.social
          link
          fedilink
          arrow-up
          3
          ·
          10 hours ago

          Technically that is a reason

  • SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    1 day ago

    My employer’s CI rejects extended ASCII characters :(

    • Ghoelian@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      12 hours ago

      Really? You never use the occasional   or something?

      Edit: my client actually parses the space lol

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        8 hours ago

        Backslashes are not extended ASCII

      • Ghoelian@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        12 hours ago

        Just remembered not all projects have a web interface or an interface at all

    • AnUnusualRelic@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      9 hours ago

      That’s normal, you should just use Unicode in that case.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        8 hours ago

        You misspelled UTF-8

        • AnUnusualRelic@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          1
          ·
          6 hours ago

          Feel free to encode it whichever way suits you best.

          • SpaceNoodle@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            6 hours ago

            Unless it’s ISO 8859-1, apparently.

            • AnUnusualRelic@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 hours ago

              I’m not sure if you’re completely up to date on this whole Unicode thing.

              • SpaceNoodle@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                4 hours ago

                I’m not sure if you’re completely up-to-date on this whole encoding thing.

  • Flipper@feddit.org
    link
    fedilink
    arrow-up
    21
    ·
    1 day ago

    This only half as bad as the emoji soup macros

    • some_random_nick@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      9 hours ago

      Got a link?

  • funkless_eck@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    22 hours ago

    super minor but I always preferred to define fizzbuzz as modulo 3*5 to show adherence to the instructions in the readability of the code without having to think about why

    • ryannathans@aussie.zone
      link
      fedilink
      arrow-up
      5
      ·
      22 hours ago

      Mmm I think they are missing == 0

  • stingpie@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    24 hours ago

    You could do this in basic ASCII, with only three defines. replace "_ " with “{”, replace “_;” with “}”, and “_” with nothing. If your compiler processes macros in the correct order, it will become valid code. (You would use semicolons as the vertical lines)

  • irelephant [he/him]@programming.dev
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    1 day ago

    This would musk to write, but is honestly really readable.

  • notabot@lemm.ee
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    23 hours ago

    Have they #defined out the equals symbol? I don’t think that for loop is going to compile.

    • SteveTech@programming.dev
      link
      fedilink
      English
      arrow-up
      22
      ·
      23 hours ago

      The symbol they defined out is not the equals symbol but rather U+2550, so the for loop is fine.

    • lime!@feddit.nu
      link
      fedilink
      English
      arrow-up
      3
      ·
      23 hours ago

      why not? looks fine

      • notabot@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        23 hours ago

        The #define = line would mean the = would be effectively removed, rendering the for a syntax error. That is, assuming it is an equals sign they’ve redefined, and not similar looking character.

        • lime!@feddit.nu
          link
          fedilink
          English
          arrow-up
          12
          ·
          edit-2
          23 hours ago

          that’s not a =, it’s a ═ (U+2550 BOX DRAWINGS DOUBLE HORIZONTAL). you can tell because == doesn’t connect but ══ does.

          • notabot@lemm.ee
            link
            fedilink
            arrow-up
            3
            ·
            23 hours ago

            Fair point, I wasn’t sure it was the equals, hence my initial question. Drawing boxes with the box drawing characters does make a lot more sense.

        • _____@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          23 hours ago

          It looks like a different symbol of you were to compare the characters length in pixels

          the equals and the horizontal double bars seem different to me.

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: !programmer_humor@programming.dev

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.05K users / day
  • 4.64K users / week
  • 9.13K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.04K Posts
  • 21.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.4
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org