News for hackers. Stuff that matters.
Re:JavaScript Is Weird by golergka on Monday June 28, 2021 @06:33AM (#27660067)
Although I like Javascript (Typescript) a lot, I have to bite:

> Dynamic languages are easier to program in.

Only if you don't care about writing correct and maintainable programs. The only thing that dynamic languages make easier is writing code. Or, more specifically, the first couple of versions of it. That's not what typical programming as a process mostly consists of.

Re:JavaScript Is Weird by jiofih on Monday June 28, 2021 @02:42PM (#27665894)
By the definition of formally correct, yes, you’re right. But dynamic programming still allows programs to be functionally correct, and verified by testing, which is more often than not good enough.
Re:JavaScript Is Weird by golergka on Wednesday June 30, 2021 @04:47AM (#27686384)
Writing and maintaining a program in a statically typed language is significantly easier and faster than doing the same in a dynamic language while manually writing all the tests that would cover the same level of correctness that types give you out of the box.