this post was submitted on 29 Feb 2024
715 points (98.2% liked)

Programmer Humor

32410 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
all 23 comments
sorted by: hot top controversial new old
[–] TrickDacy@lemmy.world 52 points 1 year ago

So it's just a wrapper for prettier?

[–] midori@lemmy.world 34 points 1 year ago (1 children)
[–] Toldry@lemmy.world 64 points 1 year ago (3 children)
[–] HangingFruit@lemmy.world 21 points 1 year ago
[–] Omega_Haxors@lemmy.ml 1 points 1 year ago

The addition of comments makes this radioactive to the one kind of person who wouldn't mind reading ugly code.

[–] nachtigall@feddit.de 24 points 1 year ago

So basically GNU style formatting?

[–] OpenStars@startrek.website 21 points 1 year ago

Someone seems to have run this on the UI of Twitter during its conversion into X.

And Reddit too.

[–] eatham@aussie.zone 11 points 1 year ago (1 children)

Is this available for Android studio

[–] gingernate@lemmy.world 15 points 1 year ago

It is android studio

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

I expect this to be non-deterministic with random amounts of whitespace each time you run it

[–] Magister@lemmy.world 9 points 1 year ago

Like the good old BASIC compactor we had in the 80s, and this also exists for Javascript, replace all variables with a to z then aa to az etc if more than 26, compact every line with ';' etc in the end it's uneradable

[–] mesamunefire@lemmy.world 8 points 1 year ago

Any recommendations? I think a collection of tools like this would make for a hilarious local meetup.

[–] arudesalad@sh.itjust.works 6 points 1 year ago (2 children)

It didn't change anything for me...

[–] hakunawazo@lemmy.world 4 points 1 year ago (1 children)

I think it's only worrying if it makes your code look better.

[–] Rinna@lemm.ee 1 points 1 year ago* (last edited 1 year ago)

Wonder what will happen if we put Yandere Simulator's code in there.

[–] Rivalarrival@lemmy.today 1 points 1 year ago

I got an email from the devs asking for style advice.

[–] bstix@feddit.dk 6 points 1 year ago (2 children)

Honestly.. clean code can be hard to read. It's sometimes easier to recognise certain parts in shitty code because it has a more distinctive appearance.

[–] brian@programming.dev 16 points 1 year ago

this guy writes shitty code

[–] theneverfox@pawb.social 2 points 1 year ago

... What? Code quality is "does it work" followed by readability, only then do you get into performance and other things

Good code is better than shitty code by definition.

[–] 7heo@lemmy.ml 3 points 1 year ago