3 ms·
I loved the perl taint mode. In this mode, perl understands what data originates outside the program and puts restrictions on how you use it. Perl also has st
by m463 7y ago
I loved the perl taint mode. In this mode, perl understands what data originates outside the program and puts restrictions on how you use it.
Perl also has strict mode, to tighten up your programming.
Without it you don't have to declare variables, but on it requires variables to be declared before use.
More languages should help programmers like this - sort of a ladder to go beyond just low hanging fruit.
- claytonjy 7y agoPython now has MyPy, a static type-checker which can be tuned to be more or less strict. Pretty cool to see what can be bolted on to a dynamic language.
- hnick 7y agoPerl has various levels of bolted-on type-strictness too AFAIK, I don't have much experience with it due to being stuck on an older version professionally. I personally think it's a great idea. Loose types can get a POC or even early production models up and running quickly while you're changing your opinions on the data every hour, then once it grows to a size that's hard to reason about and static analysis can really pay off, start tightening it up.