News for hackers. Stuff that matters.
Re:Go command support for embedded static assets (files) by Filligree on Friday July 24, 2020 @07:30AM (#23938197)
Depends on the situation. Python 3 for anything simple, but the way I go about coding is, I first define the data structures and types for a given module - its inputs and outputs, first of all - and only fill in the code afterwards.

Not unexpectedly, this means Rust is one of my favorite languages. Anything with a poor type system makes this approach unbearable, and even Python has better static typing than go.

Re:Go command support for embedded static assets (files) by Thaxll on Friday July 24, 2020 @09:49AM (#23939442)
"Python has better static typing than go." What?

In Python you don't know what you receive and someone could have modified something in an object somewhere in the code that will break down the line in unexpected ways.

Python does not have any type checking those are just annotation it does not enforce anything.

https://docs.python.org/3/library/typing.html

"Note The Python runtime does not enforce function and variable type annotations. They can be used by third party tools such as type checkers, IDEs, linters, etc."

Re:Go command support for embedded static assets (files) by Filligree on Sunday July 26, 2020 @12:22AM (#23954421)
Type checking is achievable. It doesn't matter if I need to use external tools; those tools are available.