Hacker News new | past | comments | ask | show | jobs | submit login

The longer I spend in IT/Software Dev, the more I see a dichotomy between Correctness and Usefulness. You can certainly have both, but different people concentrate on either correctness or usefulness. I think the future of software dev is people who understand both.



The tools make it very hard to do both at the same time. To pick a topic, is there something I could write shell-style scripts in that leans towards correctness?


Yes! F# scripts

Some features:

- open-source

- cross-platform

- quick editing with syntax highlighting, type annotations etc. in VS Code

- run in a single command (‘dotnet fsi script.fsx’)

- type-safe but with global type inference

- grab dependencies using directives in the script (no project manifests or global dependencies)

The added safety of a typed language is fantastic for scripting because it’s not worth writing tests for most scripts.


Haskell (using https://docs.haskellstack.org/en/stable/GUIDE/#script-interp...).

The downside: requires 1. installing stack and 2. waiting for it to install ghc and libs on first run of the script.


Correctness needs a specification. Correctness hates side effects. Shell type scripts are all about side effects.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: