deleted by creator
You win a free trip to the Hague
They don’t even deserve the trial. Straight to gulag.
Still need at least troyka to send to gulag. Or regular court outside of stalinism.
The taxi chauffeur can be judge and do it on the way to the gulag.
Obviously the sentence is predetermined.
Can this be done with emoji?
😫
You can’t be helped, sorry. We will put you to an asylum for people like you
Asylum? We have the electric chair for this.
Yeah, now I see why you want him dead. He used mov after lea
Pack him, boys: https://youtu.be/hHuLZFuugTQ
Thanks. I hate it.
Acceptable, just FYI I added a pre-commit git hook, please rebase your changes.
Looks like Python, but in an editor with a weird TUI scrollbar
Doesn’t python need colons after if/else/for/etc. statements?
Heh, so in Python it’s possible to overload operators in the context of objects. I bet it would be possible to overload tabs to do the same thing as colons inside a context manager, but that’s pure speculation.
IIRC, Python handles whitespace indentation by having the tokenizer convert them to INDENT/DEDENT tokens. The grammar can then handle them equivalently to a curly brace language.
Perhaps I don’t understand you, but I don’t think there’s a way to override spaces in python in any way. The spaces are handled by the parser.
You can define what happens for an object when an operator is applied (like +, /, or -) so that you can obj+obj. I wonder if there’s a way to override “tab” such that it acts like a “:”, but from inside the language (this is trivial if you edit the language itself like you suggest). Thinking about it more, I’m guessing not since “:” isn’t an operator and this doesn’t have a corresponding __operator__ function.
I see. I would love to be proven wrong, but I don’t see a way this would work with tabs/spaces in python.
I low key love it. It’s unconventional, but it’s not hard to read
deleted by creator
I think this could be better for reading but harder for writing. Like you could write a script that converts between this and the easier to write way if you are working on a project with others.
On braces are not used in
if
orfor
statements
What amazes me is that someone either did that manually or wrote a formatter to do that - I doubt that any standard style config would do this.
Automatically enforced deterministic formatting is the best, there’s nothing that beats it. The productivity in just being able to format on save knowing that the code will be in the ideally formatted state, along with the anti-bikeshedding properties of this strategy, makes it unbeatable.
gofumpt
andgofmt
are the best. One of the reasons if I have a choice I’ll code in go. I heard rumblings that rust was working towards having rustfmt be a standard crate.Go is in a good position, yeah. JavaScript has
prettier
, which is nice. Java hasgoogle-java-format
. Python hasruff
, which is quite good. Kotlin hasktfmt
, which I believe made a mistake with their standards by not following the standard formatting guidelines for the language, but whatever. Uniform and deterministic for the win.
I forgot Moses was in Tron
Damn. That’s tidy to the point of inconvenience.
It’s just YAML…
YAML makes you appreciate Python’s 4 spaces indentation.
I thought python allowed whatever indentation you wanted as long as it’s consistent?
It does, but most style guides and autoformatters will use 4
pep8 calls for 4 space but it is a guidance not a rule.
Google internal style guide recommend(ed?) 2 spaces to accomodate the line length limit.
I’d love to see your .editorconfig.
…
…
What’s that in your project root? …pom.xml? Misread that at first as porn.xml.
I’m not the OG on this, just an old reddit post I remembered
https://old.reddit.com/r/ProgrammerHumor/comments/9fhvyl/writing_yaml/
porn.xml
If I had a nickel every time I read it like that
I kinda like it, easy to see unbalanced braces
WE CAN DO THAT!?!??
… whitespace is whitespace.
Or you could replace most of the whitespace with repeating semicolons. Makes the code much clearer!
Last day at the company, pushed over 5,000 commits. Just style changes, still passes all the checks.
This would never pass PR review.
Jokes on you, we don’t have PR review.
Dear god
He can’t hear you all the way down here.
This is fine.
Do your code reviewers subscribe to the didn’t check looks good model? Joking btw.
I’m not a coder, and… Well… Thanks, I hate it.
Even I know this is horrific. Where the fuck does this statement end? Which of these brackets refer to this section of other brackets. Idfk.
I could give a shit less if it was just for a single block per or something but “;}}}” hurts me.
Honestly, looks neat, might adopt this
Auto formatter as part of the expected language tooling is Go’s greatest move, even if their formatter doesn’t go far enough.
Rust does this too I think (or just everyone uses rustfmt).
But I want my bike shed blue…
Pseudo-python