Avatar

philm

philm@programming.dev
Joined
0 posts • 15 comments
Direct message

Yeah, but unironic…

If your code needs comments, it’s either because it’s unnecessarily complex/convoluted, or because there’s more thought in it (e.g. complex mathematic operations, or edge-cases etc.). Comments just often don’t age well IME, and when people are “forced” to read the (hopefully readable) code, they will more likely understand what is really happening, and the relevant design decisions.

Good video I really recommend: https://www.youtube.com/watch?v=Bf7vDBBOBUA

permalink
report
parent
reply

SUUUUUUUUURE!!!11 I"M oN ITTTTTTTT

permalink
report
parent
reply

We’re at 22.8̅2̅8̅7̅8̅4̅1̅1̅9̅1̅0̅6̅6̅9̅9̅7̅5̅1̅8̅6̅1̅0̅4̅2̅1̅8̅3̅6̅2̅2̅% slowly gaining rainbow ground

permalink
report
parent
reply

I just calculated exact subpixel accuracy, for me it’s exactly 20.5̅9̅5̅5̅3̅3̅4̅9̅8̅7̅5̅9̅3̅0̅5̅2̅1̅0̅9̅1̅8̅1̅1̅4̅1̅4̅3̅9̅2̅0̅ % that is still missing to fill the whole comment body with rainbows, way to go!

permalink
report
parent
reply

Plenty of space for me still (browser version on desktop)

permalink
report
parent
reply

Rookie numbers, it’s probably 15% on my screen, There’s space for a lot more rainbows

permalink
report
parent
reply

And we’re about to enter the fourth rainbow dimension in the next comment…

permalink
report
parent
reply

We’re in the third rainbow, keep building more stripes lol

permalink
report
parent
reply

I’m totally aware of the benefits of encapsulation, but the way java does it seems so unnecessarily boilerplatey (C# is better, functional programming makes encapsulation even simpler, but that’s a different paradigm…)

I like how Rust approaches this via the module system and crates (you have pub for the public interface, pub(crate) for crate/lib wide access and no modifier for being only allowed to access in the current module and submodules of that module)

permalink
report
parent
reply