this post was submitted on 28 Jul 2024
1306 points (99.0% liked)

Programmer Humor

25395 readers
2067 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] GissaMittJobb@lemmy.ml 13 points 1 year ago (1 children)

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.

[–] h0bbl3s@lemmy.world 5 points 1 year ago (3 children)

gofumpt and gofmt 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.

[–] GissaMittJobb@lemmy.ml 6 points 1 year ago

Go is in a good position, yeah. JavaScript has prettier, which is nice. Java has google-java-format. Python has ruff, which is quite good. Kotlin has ktfmt, 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.

load more comments (2 replies)
[–] bdonvr@thelemmy.club 12 points 1 year ago

Actually that seems great?

[–] clot27@lemm.ee 10 points 1 year ago

looks clean tbh

[–] kamen@lemmy.world 10 points 1 year ago

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.

[–] JimVanDeventer@lemmy.world 9 points 1 year ago (1 children)

Don't threaten me with a good time.

load more comments (1 replies)
[–] p0windah@lemmy.world 8 points 1 year ago

Inspired. Truly.

[–] victorz@lemmy.world 7 points 1 year ago
[–] iAvicenna@lemmy.world 7 points 1 year ago

weird cousin of lisp

[–] nick@midwest.social 5 points 1 year ago

Jesus fucking Christ.

load more comments
view more: ‹ prev next ›