3 ms·
> the object-oriented architecture Stopped reading here. Good luck with your shared mutable state! Enjoy!
by jdmoreira 1y ago
> the object-oriented architecture
Stopped reading here.
Good luck with your shared mutable state! Enjoy!
- emorning3 1y ago[dead]
- whalesalad 1y agoYou can leverage objects in an immutable and shared-nothing type of way. These ideas are not mutually exclusive. https://www.destroyallsoftware.com/screencasts/catalog/functional-core-imperative-shell https://www.destroyallsoftware.com/screencasts/catalog/funct...
- jdmoreira 1y agoYes you can and I do often. Would I build my new high-level lang around OOP? Nop
- pjmlp 1y agoSeems to work alright for all major GUI platforms in use in the market.
- jdmoreira 1y agoNot true for react, swiftui, jetback compose, etc. Everything else was built in the 90s or early 00s which was peak OOP
- pjmlp 1y agoJavascript is a protoype based OOP language, and the DOM that any Web UI depends on is OOP. All commercial browsers are written in a mix of JavaScript OOP and C++, nowadays they might have some tiny percentage of Rust, which might be using traits and dynamic dispatch anyway. Kotlin runs on top of a OOP based VM, and uses a OOP class library. Compose has plenty of classes on its implementation and Android Studio interop. SwiftUI infrastructure relies on OOP code written in Objective-C and macOS frameworks. People are usually so eager to bash OOP that they overlook the details.
- jdmoreira 1y agoSo? Is OOP widespread? Yes of course it is. Besides that what is really the point you are making? That you can write software using Smalltalk or CLOS or any of their bastard offspring? Yes, you can and people did and still do. So what?
- pjmlp 1y agoThe point was all your examples are flawed and there is no mainstream UI that doesn't have OOP concepts powering their execution, either via the programming language, the standard library, or OS APIs being used across the stack.