|
|
|
|
|
by xyzzy4747
1381 days ago
|
|
I used a lot of Perl at various jobs. Nowadays I have my own startup and my code is a mixture of JavaScript, TypeScript, and Rust. Rust is good for anything sufficiently complex that you want to run quickly, have a small footprint, and want to be sure it works, while allowing for easy refactoring due to the strong type safety. JavaScript is good for anything you want to write quickly and the code quality doesn't matter as much (e.g. test scripts). It's also much easier to write than Perl syntax-wise and has great async support (unlike Perl). Also it has a much larger ecosystem of libraries and easy to use in IDEs like VSCode. Obviously JS/TS can also be used in both the frontend and backend which is another big advantage. TypeScript is sort of in between - if the JS codebase gets too large it should be written in TS instead. This makes the code less "write-only". Perl and PHP were pretty good solutions as scripting languages until JS added good async/await support, map/filter/reduce, and destructuring syntax in my opinion. JS probably requires the least lines of code to get a program working. |
|