4 ms·
I would say that is simply down you you not being experienced with writing code this way. Once you begin writing functional code more regularly, you will get m
by socialdemocrat 6y ago
I would say that is simply down you you not being experienced with writing code this way.
Once you begin writing functional code more regularly, you will get much the opposite way of thinking. Today I find it frustrating that I need an object first. In my mind, I already know what action I want to do. I know what function I want to call. I start with that and look at what arguments it takes in.
OOP programming is frustrating now, because instead of going straight for the function I have to locate the appropriate object first. That is like a big detour.
> If you write your code as a bag of data structures and a bag of functions that you pass those ad-hoc data structures to, it is less clear which things play together.
Noting suggest you need to write code like that. People who write functional code tend to have a lot of well defined data types. I use well defined data types in Julia. Haskell and OCaml developers use well defined data types. We are not using using dictionaries or something.
- digianarchist 6y agoThis is exactly how I felt after learning Elixir and then coming back to Python. Object orchestration is painful.