Yeah, used a bunch of (static) code analysis tools: goimports, misspell, deadcode, errcheck, govet, ineffassign, staticcheck, structcheck, typecheck, varcheck, bodyclose, dupl, goconst, gosec, unconvert, unparam. To name "just a few" π
Notices by muesli (fribbledom@mastodon.social), page 5
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 09:37:58 EDT
muesli
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 09:36:03 EDT
muesli
I wouldn't go as far as saying it's ignorance - or at least that's not what I intended to say π
Yes, it can be difficult to find the right set of tools, but on the upside: it's just so difficult to pick and choose because there really are quite a bunch of useful helpers operating on #golang's AST. I really wish we were in that situation for other languages, too.
Check out golangci-lint, btw.
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 09:32:30 EDT
muesli
Posts like yours are the medals I collect π
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 09:29:11 EDT
muesli
GitHub has given up on catching up with me π
"19 repositories not shown"
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 09:24:05 EDT
muesli
Yeah, it'd be a lot more challenging and time intensive. Just think of all those compile / build cycles π
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 09:17:50 EDT
muesli
Other things I've learned tonight:
- all those context switches between dozens of projects are a lot more exhausting and mentally draining than you could possibly imagine
- this would have been a lot worse without #golang's strict coding style and formatting conventions
- many projects have a CI pipeline set up, but ignore lots of the brilliant code analysis tools the Go ecosystem provides
- Maybe C++ projects next? Not sure that's a good idea for my mental health π
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 09:07:35 EDT
muesli
Tried identifying the most common #golang mistakes and went on a little bug hunting mission tonight:
Fixed hundreds of bugs & issues across 39 of the most popular Go projects, and created more than 100 pull requests. 28 of which have already been merged in the past couple of hours!
Here's what I most commonly encountered:
- typos
- unnecessary conversions
- ineffectual assignments
- tautological errors
- missing error handlingHere's the full list: https://github.com/pulls?q=is%3Apr+author%3Amuesli (login required)
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 06:33:02 EDT
muesli
Prints in one go, no assembly required!
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 05:54:24 EDT
muesli
A PLA chain-mail π
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 05:06:41 EDT
muesli
That's why they're called business socks!
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 05:00:58 EDT
muesli
"Wrong turns on the path to success are not failures, they are simply iterations. Both science and art are iterative processes that include wrong turns. And those wrong turns aren't outliers, they are part of that process"
-- Adam Savage
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 04:31:58 EDT
muesli
You can use '-tabs=false' with gofmt, but let's just say it's not the recommend way π
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 04:29:33 EDT
muesli
Just a heads up: sent a pull request your way over on GitHub π
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 04:26:34 EDT
muesli
Gets printed in place, no assembly required!
-
muesli (fribbledom@mastodon.social)'s status on Friday, 19-Jul-2019 03:25:16 EDT
muesli
Playing with 3D-printed fabrics. Feels really weird & funny but pleasant in the hands.
-
muesli (fribbledom@mastodon.social)'s status on Wednesday, 17-Jul-2019 13:28:27 EDT
muesli
Recycle your droids, save the galaxy!
-
muesli (fribbledom@mastodon.social)'s status on Wednesday, 17-Jul-2019 12:55:45 EDT
muesli
Bricking iPhones like it's a toy:
https://bugs.chromium.org/p/project-zero/issues/detail?id=1826
-
muesli (fribbledom@mastodon.social)'s status on Wednesday, 17-Jul-2019 04:27:19 EDT
muesli
Das ist der Japanische Garten in Augsburg
-
muesli (fribbledom@mastodon.social)'s status on Wednesday, 17-Jul-2019 03:43:00 EDT
muesli
Heaven is just a place around the corner. Soul soothingly good
-
muesli (fribbledom@mastodon.social)'s status on Wednesday, 17-Jul-2019 01:24:57 EDT
muesli
Good morning to you, too! π