• peto (he/him)@lemm.ee
    link
    fedilink
    English
    arrow-up
    134
    ·
    5 days ago

    See the problem with this is that even if I write code with this font, I can’t force people to read it in this font.

  • conditional_soup@lemm.ee
    link
    fedilink
    arrow-up
    24
    ·
    5 days ago

    I… Somehow just realized that I can of course change my editor font. After three years in professional software dev.

    Any recommendations for maximizing readability?

  • LarmyOfLone@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    3 days ago

    Is there some language or “syntax formatter” that turns source code into something more off a visual programming language? Like a WYSIWYG markdown editor.

    Like python doesn’t have curly braces, but you could add some kind of “block illustration”.

    Or you could have illuminated initials for variable names to make them more unique.

    • thevoidzero@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 days ago

      So IDE with syntax highlights? Those blocks things are also pretty much shown in most IDE, what do you use to code?

      I even have prettifying turned on so the keywords like in, lambda, etc are prettified.

      • LarmyOfLone@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        No somthing more than just “mere” syntax highlightinng or prettifying like e.g. in VS Code. Being able to change line height for a “headline” when you declare a new class. Or maybe lines that illustrate how a temp variable is used. But it’s all vague ideas and I can’t picture or describe it well and you’d have to demo this with a graphical design tool I think.

        • thevoidzero@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          I use emacs, and it can change font size and font face similar to the font color during syntax highlights. Like in markdown or LaTeX headings are larger font, math formula have their system where superscript and subscript have higher/lower baseline. In org mode it can even convert the whole latex snippet into formula and display as image, or show inline images. And in rust it has type hints and other information overlayed along side the code you wrote, it even adds little buttons on tests you can click to run them.

          So I think what you want can probably be made easily if you have a solid grasp of what you want. Emacs is basically extensible using a programming language (elisp) so technically there’s nothing you can’t do logic wise, there might be some limitations on displaying things though.

  • Ronno@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    Better start now, the US might need a new one soon. /s

    A smart contract as the declaration of independence would be awesome though.

    • Russ@bitforged.space
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 days ago

      Oh hey, someone else who uses Comic Code - greetings!

      I remember when I first saw it, I laughed - and then it grew on me. Then it turned into “I can’t believe I am buying a derivation of comic sans” but it is actually a really nice monospaced font.

      Only thing I didn’t like was having to figure out how to use Font Patcher to make a copy of it that supports nerd fonts, but it was a one and done process.

      (I also don’t really like how it looks in my IDE the few times I find myself on Windows, but I don’t really blame the font for that one - looks perfect in the same IDE on Linux…)

        • Russ@bitforged.space
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 days ago

          Patching Comic Code? It was quite a while ago unfortunately, so I don’t have the exact commands available, but I used their Font Patcher tool in order to do so.

          From what I recall, the tricky thing was actually getting the dependencies it required to be installed properly, Font Forge would be up and running but then the script’s errors indicated that it couldn’t resolve all of the necessary dependencies. Not sure what OS you’re on so your mileage may vary - but for Linux they now have an AppImage that looks to contain everything it needs, and for macOS/Windows if you have Docker available there also appears to be a pre-built container for it. There’s also quite a few examples that I don’t think were there when I used it, since I also recall not being 100% sure of what flags were needed to run it

    • communism@lemmy.ml
      link
      fedilink
      arrow-up
      31
      ·
      5 days ago

      In this case it’s because part of the joke is the quote tweet. You could also link to the tweet instead of a screenshot but then we need to connect to Musk’s servers at some point (even if through a proxy like nitter)

      • enemenemu@lemm.ee
        link
        fedilink
        arrow-up
        6
        arrow-down
        2
        ·
        edit-2
        5 days ago

        Yes, but he could’ve copy pasted the title.

        You could’ve changed the main title to something like “programming the declaration of independence” or “programming like it’s 1750”

        He mocks op. The gag is not the font anymore.

          • ulterno@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            5 days ago

            Another way is to use a content extractor.

            So

            • the user will select the rectangular region to be extracted
            • Extractor will extract
              • Josh’s profile picture
              • “Josh”
              • The tick mark SVG
              • “@jpshycodes”
              • “Bro is coding …” - the comment text
              • Information that a frame is to be reproduced
              • Ryan Els’s profile picture
              • “Ryan Els”
              • The tick mark SVG again, but this time it will be deduplicated
              • “@RyanEls4”
              • “12h”
              • “Rate my …” - text for the comment inside the frame
              • The jpeg picture inside the frame (yes it’s a jpeg and not a PNG. IDK why. But look at it)

            Then it would convert it into a reproducible package which can then also match your colour scheme for background colour etc.

            Now just need to make such an extractor
            And a corresponding format in Lemmy to display it


            Sure it will be more work, but this way we can retain more fidelity with less space taken.

            It will not be usable as proof, because the thing can be just written, but it’s not like pictures work as a very good proof nowadays, anyway.

        • Zenoctate@lemmy.worldOP
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          5 days ago

          True but I think showing the quoted tweet is better than just in the title cause it is part of the joke in the image.

          Title is normally used as a reaction or just simple text with some reference to the image

          • tauren@lemm.ee
            link
            fedilink
            English
            arrow-up
            3
            ·
            5 days ago

            I still think this format sucks because the punchline comes first.

    • Zenoctate@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      edit-2
      5 days ago

      Cause I reposted stole it from some other internet page

      I just usually download the image than a screenshot when posting