- peto (he/him)@lemm.eeEnglish2 years
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.
Of course you can. Instead of committing the code to a repository, you just take screenshots of the everything and commit that instead.
- tauren@lemm.eeEnglish2 years
And then you program a runtime that calls an AI to parse images and execute your code in real-time!
- 2 years
Did they use sane or Windows-style newlines? Windows-style line endings are not supported everywhere.
Edit:
Variable-width handwriting is no longer considered a best practice and has been deprecated for some time. If the program did not compile with sane line endings, try rewriting the program in monospace, as support for legacy handwriting styles may have been dropped from non-LTS compiler releases.
- ArsonButCute@lemmy.dbzer0.comdeleted by creator2 years
Hey that’s MY cursed python programming method… I wonder if I still have those books
- Russ@bitforged.spaceEnglish2 years
Oh, so that’s what those Python notebooks are that I’ve heard people talk about!
- 2 years
That way you don’t need Gimp to make edits. I like it, very human!
MostlyBlindGamer@rblind.comEnglish
2 yearsWell, it’s not quite that bad, but it takes a special kind of person to send their very obviously visually impaired coworker screenshots instead of plaintext. And I know a few of them.
- ulterno@programming.devEnglish2 years
The only real way to write protect it is by printing the pdf into pdf (making it a pdf of an image).
- jaybone@lemmy.zipEnglish2 years
And then maybe you could use something like #define in C to map them back to valid characters? Not sure if there’s a good way to do that in other higher level languages.
- 2 years
You could always write your own program that runs before the compiler. Simple character replace for those unicodes to ascii
- 2 years
Many editors can read config files from a file in the repository itself. And oftentimes it has the highest priority. Just gotta know the IDE of your target and they have to click “trust this project”.
- 2 years
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?
- 2 years
I unironically love comic sans derivatives, they’re just super readable to me
- 2 years
Comic sans is a great typeface in my opinion. Just often misused.
- 2 years
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.
- 2 years
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)
- mcv@lemm.eeEnglish2 years
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.worldEnglish2 years
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.
- 2 years
Thanks, I got inconsolata. I’m not a coder but I’m going to use it for other things.
JackbyDev@programming.devEnglish
2 yearsI got Fira Code, which tracks, I’ve used it before. I use Comic Code though. (A monospace comic sans type font.)
- lagoon8622@sh.itjust.worksEnglish2 years
Lol I got Fira Code which is what I actually use. Awesome tool
- 2 years
I use it as well
Is there any other font that has that variety of ligatures?
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.
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.
- 2 years
- 2 years
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
- 2 years
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.
- 2 years
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!
- 2 years
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)
- 2 years
This is great if you don’t want the united states politicians to read it.
- 2 years
reduce the flourishes and/or add more spacing between lines and it would be a lot more readable.
- 2 years
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)
- 2 years
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.devEnglish2 years
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.
- 2 years
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
- 2 years
Cause I
repostedstole it from some other internet pageI just usually download the image than a screenshot when posting
- Ascend910@lemmy.mlEnglish2 years
I really em want to makenit a reality, do anyone here know a 17th century antique monosace font?
- Ronno@feddit.nlEnglish2 years
Better start now, the US might need a new one soon. /s
A smart contract as the declaration of independence would be awesome though.

















