General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
p11
ThePrimeTime
comments
Comments by "p11" (@porky1118) on "Functional Programming IS NO BETTER than Object Oriented Programming | Prime Reacts" video.
33:00 I think, event handling is a workaround for not having function as parameters in OO.
1
4:40 I think, OO is, when you (can) define specializations of non-abstract types.
1
20:50 That's why I hate to work with Unity inbuilt stuff. Their inbuilt Camera for example uses multiple levels of inheritance, each of them just overwriting a single method. That's why inheritance is stupid. Or their shaders. They use so many macros, so if you want to rewrite a shader and you have to change one little thing, you have to expand the macros manually. And in the expansion of the expansion of the expansion you finally find the single line of code you wanted to change...
1
25:20 I agree to some degree. Rust traits or similar are fine. These traits are abstract and you can even have muliple inheritance. But when it comes to specific implementations, you should not be able to inherit from the objects. Or if it was possible, it should not be allowed to override existing methods, except it's just meant as a default implementation.
1
15:20 This whole assumption that functional programming is better for parallelization is complete bullshit. Even map is not parallel. There might be parallel alternatives to map in many functional languages, so a refactor may be less difficult. But I think, that's all. There might be languages which also have a parallel loop construct. I guess the main reason, they don't exist, is a lack of macros in most languages.
1
30:05 I like immutable by default. But I'm not a fan of "Everything is immutable" If I have a list, and I add an element to it, I just want to mutate my current list instead of passing my current list to a function and then get a new list back. Maybe I don't care in this example, but when also having move semantics... Maybe I should just pass everything by value in rust, and see what happens? That would basically mean immutable data structures.
1
3:25 I can't think of any case, where OO is better than anything else. But maybe I just don't know, what OO really means?
1