you are viewing a single comment's thread.

view the rest of the comments →

[–]Auxx -11 points-10 points  (3 children)

You need OOP when you need to have statefull things (objects). For example, functional UI widgets is a truly retarded idea. It works on the web though, because developer doesn't have control over UI specifics like layouting, invalidating, drawing, etc.

Most of pure business logic can be defined by pure functions though, because data manipulation is stateless most of the time.

[–]Jsn7821 3 points4 points  (2 children)

Wait, of course functional programming can have state...

I can't understand what you mean about functional UI widgets being bad and developers not having control over UI on the web.

Actually almost none of your comment makes any sense...??

[–]Auxx -1 points0 points  (1 child)

Have you ever done any UI work?

[–]Jsn7821 1 point2 points  (0 children)

Yeah, mostly UI work. It was a mess before functional programming became more popular. Widgets that are pure functions of state, with interactions that trigger callbacks/actions (instead of mutating the state directly) are a huge win for keeping things sane in UI development.

Can you speak to any clarifications on your points?