4 ms·
I learned Java in high school with BlueJ! That takes me back. > it falsely assumes OOP is a good approach I'd say the bigger unspoken assumption there is that
by crabmusket 4y ago
I learned Java in high school with BlueJ! That takes me back.
> it falsely assumes OOP is a good approach
I'd say the bigger unspoken assumption there is that Java is good at OOP!
- andrekandre 4y agoi can't remember who said it, but its been claimed java isn't even an oop: its more class oriented programming... i.e your not really dealing with objects all the time like in smalltalk but just "blueprints" that are a far shadow of what things should be (if i remember the claim correctly)
- the_doctah 4y agoEverything is literally a descendant of Object...
- ghosty141 4y agoHavent used Java for ages but are ints amd double for example really objects? Iirc they are primitives
- mindcrime 4y agoThose types exist as both classes and primitive types. Eg, "double" (primitive) vs "Double" (class which inherits from Object).
- chao- 4y agoYes, and in Java, capital-O Object is primarily used as a class, not as an object that you work with directly! Alan Kay himself said he regrets coining the term as "object" oriented, and wishes he had emphasized "messages": https://wiki.c2.com/?AlanKayOnMessaging https://wiki.c2.com/?AlanKayOnMessaging
- cies 4y agoAnd Object, in this case (big O), is the name of a class. Not everything is an object, as someone said, there are also primitives. There are many other "things" in Java that are not objects (operators, statements, etc.). Kotlin does set some of this straight. Everything inherits (indirectly) from the Any class. And primitives do not exist in Kotlin (as in Ruby or Smalltalk).
- 0x445442 4y agoJames Coplien
- andrekandre 4y agoyes, that was it thanks!