codesections · @codesections
2588 followers · 8521 posts · Server fosstodon.org

I have a new appreciation for the holy wars waged over code formatting and tabs-vs-spaces.

That's because I've been hacking on @masukomi's Hey (github.com/masukomi/hey_3), which is a (quite nifty!) time-tracking CLI app. But it uses tabs and snake_case when the normal practice is spaces and kebab-case.

I mean, and there's nothing _wrong_ with those choices. And of course I followed those conventions in my PRs – anything is better than chaos.

But, man, my eyes, my eyes!

#rakulang #TIMTOWTDI

Last updated 2 years ago

Anubhav · @anubhav
7 followers · 339 posts · Server hachyderm.io

A module-global "list" it is ...

import dataclasses

default = [ 2 ]

@dataclasses.dataclass
class Thing:
attr :list[int] = dataclasses.field( default_factory = lambd: list( default ) )

#TIMTOWTDI #python #wart #thorn_in_backside

Last updated 3 years ago

Robert · @rrwo
103 followers · 223 posts · Server fosstodon.org

@stargazersmith @profoundlynerdy

(There is more than one way to do it) is considered a negative feature by some.

It leads to different developer teams coding using very different styles and risks a lot of redundant but different code to do the same thing. This also makes it harder for people to understand and maintain another team's code.

#TIMTOWTDI

Last updated 3 years ago

codesections · @codesections
2553 followers · 8513 posts · Server fosstodon.org

For the third year, I'm organizing a Advent of Code solutions repo for Rakoons to compare our solutions and learn from each other (!)

github.com/codesections/advent

(I'm not sure if I'll be solving the puzzles myself this year, but I still want to make sure it's there either way!)

#rakulang #TIMTOWTDI #adventofcode

Last updated 3 years ago

codesections · @codesections
2588 followers · 8521 posts · Server fosstodon.org

For the third year, I'm organizing a Advent of Code solutions repo for Rakoons to compare our solutions and learn from each other (!)

github.com/codesections/advent

(I'm not sure if I'll be solving the puzzles myself this year, but I still want to make sure it's there either way!)

#rakulang #TIMTOWTDI #adventofcode

Last updated 3 years ago

Digitalcourage e.V. · @digitalcourage
27246 followers · 7332 posts · Server digitalcourage.social

@textbook

So weit muss man nicht gehen. Sagen wir es wie die alten Perl-Programmierer.innen: „There is more than one way to do it.“ /c

#TIMTOWTDI #TMTOWTDI

Last updated 5 years ago