- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
It took me way too long to notice the horror on the right
My humanity.
DwangoAC and the TASBot crew are maniacs in the best possible way. I would like to continue having a high opinion of him, hence I will pretend that this post does not exist.
I like python like really really like it. But this should be a warcrime
Wow, so this is possible.
Formatting is so damn arbitrary. Somebody has to have tried storing just the parse tree on disk, right?
If you do that, you lose formatting and comments every time you load the source from disk
Losing formatting other than what you’ve set in your deparser would be the point. Losing comments would be bad, but that seems easily fixable just by giving each comment block a symbol that points to it’s contents.
To me it just looks like you do not need the braces at all
Hang on, this is just a C++ joke slapped onto Rust.
You could say they have rewritten the joke in Rust
But you get the joke faster now.
My eyes! My eyes!!!
My medication mostly.
rustfmt
is stopping me from writing code like this, and I have never been more happier using it after viewing this.
I’m going to write a tool that automatically adds the braces and semicolons to the column as you edit the code.
I will call it
rustfml
Please do, I’m waiting for it to get ported to other languages.
Crap, thats what I was thinking.
It could be run after git checkout and then rustfmt before commit.
Slow down satan
This makes my deeply uncomfortable, like an itch I can’t quite scratch.
More like a scratch you just can’t itch.
I’m good at Python, and I don’t know Rust. This looks fine to me. I’ve fully missed the joke.
Same. Until you notice the column of curly braces and semi colons in the right margin.
Oh, so Rust is like JavaScript!
No, Rust lacks the semicolon elision rules of Javascript which make everyone always use semicolons in javascript because they’re so horribly broken.
Rust is like ML, quite literally, not just by ancestry: The syntax is palpably ugly, but at least it’s sane, regular, and concise where it matters.
Undervalued comment right there. This is better than the OP
Pretty sure javascript is like c but I I can’t be mad at the js devs for the awful language they write.
Lgtm ship it to prod
Lgtm? Let’s go to Madrid?
You never review code when you have no time to do an actual review? Looks good to me :)
You never review code when you have no time to do an actual review?
Nope. Then again, I never review code at all 🤷😁
Don’t review, don’t write tests, and don’t even do QA. All of those tasks are overhead. It’s time you could be spending completing more story points. All that matters is story points, not the customer, not your coworkers, not your happiness, not your sanity. Just story points.
Then some jerk runs rustfmt and ruins all your hard work!
Can’t you fix the default format to this?
I hate it with every fibre of my being but also secretly calmed by that column of statement terminators and brackets.
It’s like the code representation of the Vancouver riots kiss photo.
Why would that cause the same feeling?
I’m not sure if you’re taking the piss or not but I’m going to choose to believe you’re asking in good faith!
The code just feels… messy, unfamiliar, almost chaotic - but the semicolons and curly brackets in a neat little row, formatted in a satisfying way, is like an island of calm and order in the middle of a formatting clusterfuck.
A moment of serenity in the middle of a riot, one may think.
Ohhhh thanks for the explanation, I’m a bit stupid :3
Also, I didn’t mean it in a bad way, a genuine question. Thanks for assuming it’s in good faith ^^
This is why python has to be putdown