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 (https://github.com/masukomi/hey_3), which is a (quite nifty!) time-tracking CLI app. But it uses tabs and snake_case when the normal #rakulang practice is spaces and kebab-case.
I mean, #timtowtdi 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!
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
@stargazersmith @profoundlynerdy
#TIMTOWTDI (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.
For the third year, I'm organizing a #rakulang Advent of Code solutions repo for Rakoons to compare our solutions and learn from each other (#timtowtdi!)
https://github.com/codesections/advent-of-raku-2022
(I'm not sure if I'll be solving the #adventOfCode puzzles myself this year, but I still want to make sure it's there either way!)
#rakulang #TIMTOWTDI #adventofcode
For the third year, I'm organizing a #rakulang Advent of Code solutions repo for Rakoons to compare our solutions and learn from each other (#timtowtdi!)
https://github.com/codesections/advent-of-raku-2022
(I'm not sure if I'll be solving the #adventOfCode puzzles myself this year, but I still want to make sure it's there either way!)
#rakulang #TIMTOWTDI #adventofcode
So weit muss man nicht gehen. Sagen wir es wie die alten Perl-Programmierer.innen: „There is more than one way to do it.“ #TMTOWTDI #TIMTOWTDI /c