3 ms·
> So what makes Functional Programming any different? It prevents bad programmers to fall into messy OOP. Languages are less about readability and features, b
by jokoon 8y ago
> So what makes Functional Programming any different?
It prevents bad programmers to fall into messy OOP.
Languages are less about readability and features, but always about what it allows the programmer to do, so that it prevents him for writing bad code.
I came with the idea that a programming language is a frame that surrounds the programmer, and only allows him to do things in a certain way that is tolerable and not abusive in term of design.
I'm not a fan of rust, but all the ckecks rust is doing, are very rigid, yet it is exactly what I am talking about: you help the programmer to avoid doing things he might regret and not know about.
- mpweiher 8y ago> prevents him for writing bad code Aka "the Wirth school of non-programming". There's an easier way to do that: just don't program.
- stcredzero 8y agoLanguages are less about readability and features, but always about what it allows the programmer to do, so that it prevents him for writing bad code. You can write bad engineering student FORTRAN code in any language. I've seen it done in Smalltalk. In all fairness, most functional languages make this painful enough, that all but the dimmest don't bother. I came with the idea that a programming language is a frame that surrounds the programmer, and only allows him to do things in a certain way that is tolerable and not abusive in term of design. That's bankrupt. The best you can really do is to encourage and reward the programmer for doing it the right way. If you earnestly try to block every way of doing something bad, you just wind up with a system that's unusable.