News for hackers. Stuff that matters.
Re:“I'm basically giving myself a permanent vacation from be... by woah on Thursday July 12, 2018 @01:33PM (#17516818)
Thinking that linting and static typing will stop all errors is foolish (although I prefer both, myself). Cargo culting "best practices" is often useless, and is sometimes used as a crutch by developers who are bad at the much more important and much less quantifiable things, like code readability and architectural simplicity.

Wanting your pet coding preferences to be enforced by criminal law is a sadomasochistic fantasy.

Re:“I'm basically giving myself a permanent vacation from be... by vehementi on Friday July 13, 2018 @02:26AM (#17520898)
> Thinking that linting and static typing will stop all errors is foolish

Did you reply to the wrong post?

Re:“I'm basically giving myself a permanent vacation from be... by jcelerier on Thursday July 12, 2018 @02:47PM (#17517481)
> Thinking that linting and static typing will stop all errors is foolish (although I prefer both, myself).

Thinking that putting a seatbelt will prevent death in a crash is foolish, and yet they are still mandatory

Re:“I'm basically giving myself a permanent vacation from be... by mkesper on Thursday July 12, 2018 @04:41PM (#17518410)
Re:“I'm basically giving myself a permanent vacation from be... by jcelerier on Thursday July 12, 2018 @05:51PM (#17518926)
that's exactly what I mean. Seatbelts won't save you every time but they save you enough times that they are mandatory.

> In another study that examined injuries presenting to the ER pre- and post-seat belt law introduction, it was found that 40% more escaped injury and 35% more escaped mild and moderate injuries.[83]

I don't know how many bugs can use of all possible explicit typing and compiler warnings avert but I'd wager that it would be at least as high a percentage.

Re:“I'm basically giving myself a permanent vacation from be... by wrmsr on Thursday July 12, 2018 @08:38PM (#17519733)
And as a former motorcyclist the idea of putting a seatbelt on a bike is terrifying, but under the umbrella of 'mandatory' I'd have to risk getting cut in half in a fender bender 'because that's how it's done'. If you blindly follow guidelines without understanding why they were put in place and when they should be circumvented you do more harm than good. In this context specifically, a python thread, I've not even found formatters that 'just work' in python to the degree that they do in java - I get and support significant whitespace but that combined with the crazy calling convention frequently lead me to just have to suffix spans of lines with noqa because I'm communicating to the reader something that a dumb bot doesn't understand. And that's not even getting into the heavier stuff, I type annotate everything but mypy is beyond useless for my relevant codebases - it no longer just outputs walls of useless noise it straight up crashes, from the most minimal use of even descriptors much less metaclasses. Tools and policies are essential but at the end of the day humans and situations are still currently authoritative.