Code of Sauron
Better start now, the US might need a new one soon. /s
A smart contract as the declaration of independence would be awesome though.
This is great if you don’t want the united states politicians to read it.
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.
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.
I use Comic Code. It’s not free, but it’s so whimsical.
For the curious, here is a similar but free font. https://github.com/belluzj/fantasque-sans
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…)
How’d you do it?
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
JetBrains Mono to the top!
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.
Settle down Satan.
And then you program a runtime that calls an AI to parse images and execute your code in real-time!
Are you my coworkers?
You just said that somebody is in desperate need of a beating
Well, 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.
all code is written down in physical loose leaf notebooks
Hey that’s MY cursed python programming method… I wonder if I still have those books
Oh, so that’s what those Python notebooks are that I’ve heard people talk about!
That way you don’t need Gimp to make edits. I like it, very human!
You can if you paste it into a write protected pdf
The only real way to write protect it is by printing the pdf into pdf (making it a pdf of an image).
I wonder if this font would screw up ocr?
Unless the OCR were made for this font, probably yes.
Yes. The “problem”.
Pretty sure you can use the 𝓾𝓷𝓲𝓬𝓸𝓭𝓮 𝓬𝓱𝓪𝓻𝓪𝓬𝓽𝓮𝓻𝓼
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.
You could always write your own program that runs before the compiler. Simple character replace for those unicodes to ascii
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”.
Just add it for VSCode and Jetbrains and you cover like 75-95% of devs
Iosevka, a variant with slashed zero.
IBM Mono Plex >>> all other, especially this horrible mess
I really em want to makenit a reality, do anyone here know a 17th century antique monosace font?
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?
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
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!
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)
Lol I got Fira Code which is what I actually use. Awesome tool
I got Fira Code, which tracks, I’ve used it before. I use Comic Code though. (A monospace comic sans type font.)
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.
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.
Thanks, I got inconsolata. I’m not a coder but I’m going to use it for other things.
I unironically love comic sans derivatives, they’re just super readable to me
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.
Comic sans can help a lot of people with dyslexia.
Comic sans is a great typeface in my opinion. Just often misused.
Fira Code is my go-to.
I guess it depends on your preference but I love Fira Code
I use it as well
Is there any other font that has that variety of ligatures?
Try JetBrains Mono.
I’m a big fan of GoHuFont
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.
Also, this isn’t a monospace font
Oh no.
You wouldn’t want mono space in languages where indentation matters?
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.
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.
Big fan of jetbrains mono.
My favorite is “Inconsolata”
Me too! I don’t code but I really like it.
i always use the classic 6x13 or 8x16 font
Iosevka, IBM Plex, Fira Code, Space Mono, JetBrains Mono
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)
SideShowBobUUUUGH.wav
std::string independence;
Putting the “no” in zapfino
reduce the flourishes and/or add more spacing between lines and it would be a lot more readable.