@thor Way to fan my insecurity :D
I started learning how to code when I was maybe 25? Seems like I'm very late to the party.
But I can't say I'm surprised, I've seen so many YT tutorials by coders with >10 years of experience who could be my youngest brother...
Notices by The Doctor :fedora: :rust: (thedoctor@fosstodon.org)
-
The Doctor :fedora: :rust: (thedoctor@fosstodon.org)'s status on Friday, 04-Mar-2022 11:17:03 UTC The Doctor :fedora: :rust: -
The Doctor :fedora: :rust: (thedoctor@fosstodon.org)'s status on Tuesday, 08-Feb-2022 17:36:29 UTC The Doctor :fedora: :rust: Taking a paid online course on Python made me realize that there's much more depth and complexity to the language than I realized previously. This is of course due to it being my first language and so on.
On a side note: is it just me or is the unittest builtin pretty clunky to use? I mean writing a class each time you wanna test for something feels like a lot of boilerplate.
And yes, I'm aware of pytest :) -
The Doctor :fedora: :rust: (thedoctor@fosstodon.org)'s status on Wednesday, 12-Jan-2022 15:56:47 UTC The Doctor :fedora: :rust: @floppy @ghost_letters I mean to say: in my case, tests are essential because without them I would have to spend a LOT of time debugging stuff so I actually save time with it.
And it's still just a small-ish solo project. -
The Doctor :fedora: :rust: (thedoctor@fosstodon.org)'s status on Wednesday, 12-Jan-2022 15:56:46 UTC The Doctor :fedora: :rust: @floppy @ghost_letters Also I realized the value of writing modular and composable code so whenever I shift something around the whole application doesn't break down like a house of cards.
I suppose this ties into your musings of writing functions without side effects. -
The Doctor :fedora: :rust: (thedoctor@fosstodon.org)'s status on Wednesday, 12-Jan-2022 15:56:35 UTC The Doctor :fedora: :rust: @floppy @ghost_letters From my personal experience: I've been writing a personal CLI app in Rust that consists of 3000 SLOC now. I've refactored it a gazillion times over the course of a few months and whenever I did I broke the unit tests I had in place because I forgot to change things in my code that the refactors had affected.
It depends on the project, I suppose, but testing gives me more peace of mind that my code does what it should. Also a built-in testing framework helps...