• communism@lemmy.ml
      link
      fedilink
      arrow-up
      33
      ·
      3 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
        3 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
            3 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
          ·
          3 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
            ·
            3 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
      3 days ago

      Cause I reposted stole it from some other internet page

      I just usually download the image than a screenshot when posting

  • peto (he/him)@lemm.ee
    link
    fedilink
    English
    arrow-up
    143
    ·
    3 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.

  • LarmyOfLone@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    2 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
      ·
      2 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
        ·
        10 hours 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
          ·
          9 hours 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.

  • conditional_soup@lemm.ee
    link
    fedilink
    arrow-up
    27
    ·
    3 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?

    • fibojoly@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      Look up a good article on coding fonts and pick your camp! At the moment I have DejaVu installed but I’m not a purist. As long as it’s properly designed for this I’m happy. Ligatures are particularly nifty in some languages but no big deal. I recall one author picking a font so that the italics would be cursive rather than monospace, so that his comments would look like handwritten notes in the margin, but I never got a chance to try it myself. Looked great though!

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      It’s a bit vanilla but I like DejaVu Sans Mono 8pt in my terminal, which is where I edit scripts and things

      Curiously, I don’t think that looks quite as good at larger sizes, so I’ve been using Liberation Mono 9pt or 10pt elsewhere.

      Both of those have distinct glyphs for the usual easily confused candidates. Can’t be having my lowercase L’s and 1s looking similar.

        • Eugene V. Debs' Ghost@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          Comic sans was invented for legibility on CRT screens, and its considered good for younger people to learn the iconography of various Latin characters.

          Its just misused since it was standard in Windows and Apple’s OS X, and used in situations that aren’t meant for such a typeface. It’s perfectly good for what it was invented for, its just often incorrectly used by designers who don’t really know how to design well.

    • AnarchistArtificer@slrpnk.net
      link
      fedilink
      English
      arrow-up
      16
      ·
      3 days ago

      https://www.codingfont.com/ is a fun, tournament style quiz that compares different monospace fonts. It’s far from comprehensive, but I found it useful to gauge what font features I find stylish and readable

      (For the record, my go-to font is Jetbrains Mono)

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        I got Fira Code, which tracks, I’ve used it before. I use Comic Code though. (A monospace comic sans type font.)

      • mcv@lemm.ee
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 days ago

        That was fun. Apparently I’m a JetBrains Mono user. Of course it might be simply what I’m used to, because I’m a long time IntelliJ user. It wouldn’t surprise me if this is already my font.

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

        My go-to has been Fira Code for some time. Just did the test, and Fira Code was the winner. Jetbrains Mono was a close second for me though.

    • balsoft@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      I just use IBM Plex, but that’s mostly because the keycaps my keyboard came with used it :) I also think it’s just fine for readability (i.e. I/l and O/0 are different enough)

    • Zink@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      2 days ago

      I picked up a great little test along the way: type the word ill or illegal followed by 100, using a capital I in illegal and mixing an upper case O and a zero in the number.

      Ill10O

      Can you clearly tell all these characters apart in your editor font?

      I am all about Fira Code, myself

    • Fonzie!@ttrpg.network
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      edit-2
      3 days ago

      Verdana.

      The I/l and O/o/0, 0/8/ø are all distinct, so are all the different kinds of brackets. Also, this isn’t a monospace font, so wide letters such as m and w are wide, instead of being squashed into an unreadable barcode.

      Letters aren’t meant to be monospace, and sans TUI nothing in computers still needs to be.

      If you do need one, ex. for TUI, I second JetBrains Mono!

      Also, Verdana is not a libre font, Noto Sans is a libre font that also has these properties, although code does look much better in Verdana to me.

      • jaybone@lemmy.zip
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        1
        ·
        3 days ago

        You wouldn’t want mono space in languages where indentation matters?

        • Fonzie!@ttrpg.network
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          Nope, indentation is still the same.

          For example eight spaces are going to be twice as big as four spaces in just about any font, and Verdana still accodomodates well to this with its wide spaces.

  • Ronno@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 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.