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

    • Zink@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      29 minutes 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

    • fibojoly@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      17 hours 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!

    • AnarchistArtificer@slrpnk.net
      link
      fedilink
      English
      arrow-up
      16
      ·
      1 day 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
        ·
        5 hours ago

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

      • SuperIce@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        23 hours 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.

      • mcv@lemm.ee
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 day 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.

        • Eugene V. Debs' Ghost@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours 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.

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      3
      ·
      1 day 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.

    • Fonzie!@ttrpg.network
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      edit-2
      1 day 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
        ·
        1 day ago

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

        • Fonzie!@ttrpg.network
          link
          fedilink
          arrow-up
          1
          ·
          6 hours 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.

    • balsoft@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 day 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)