8 ms·
Design Principles Behind Smalltalk (1981)
- dschiptsov 11y agoThe key ideas were message passing, isolation and polymorphism, not a hierarchy of classes - it is just one lesser aspect. Drop it, and you would have Erlang.) Notice how original insights were so fundamentally different from this Java we have now.)
- pjmlp 11y agoI don't see it that much difference and I used VisualWorks for Smalltalk at the university, right before Java was announced to the world. Given my experience in OOP frameworks since the early 90's, I would say if Smalltalk had won, we would nowadays have SmalltalkEE.
- ExpiredLink 11y agoJava was heavily influenced by Smalltalk but written by and for old C/C++ hackers. Java's success meant Smalltalk's demise.
- pjmlp 11y agoWhen people complain about JEE, I usually say they should have experimented CORBA.
- CyberDildonics 11y agoTwo wrongs don't make a right unless you are Microsoft's roadmap.
- pjmlp 11y agoRight, the point being that the enterprise culture that created CORBA, will make anything similar regardless of the programming language.
- CyberDildonics 11y agoToo true. Q. How much will this cost? Q. How much computing power will it take? A. How much you got?
- dschiptsov 11y agoNope. It means a completely different thing. Java: the elegant simplicity of C++ and the blazing speed of Smalltalk. – Jan Steinman Basically, they got it all wrong. Erlang got it right.
- pjmlp 11y agoAt least it got the Smalltalk JIT. :)
- ddp 11y agoActually I think it got Self's JIT, at least that the story that the Self people tell. Squeak and Pharo's Morphic UI also came from Self. http://www.selflanguage.org http://www.selflanguage.org
- pjmlp 11y agoI was simplifying. As Self roots are in Strongtalk, wich had as goal making a faster Smalltalk implementation. Now the closest we have to Self is JavaScript, damaged by DOM and its UI hacks to bend documents into applications.
- olavk 11y agoJava the language is much simpler than C++. I sincerely don't understand how anyone could think otherwise.
- coldtea 11y agoAnd it also has blazing speed -- and why its much faster that it initialy was, it was fast enough from the beginning too. The quote sounds funny, but it's actually BS.
- dschiptsov 11y agoThe sarcasm behind the quote is in that instead of focusing on what is really fundamental - message-passing between share-nothing entities (actors) and message-based polymorphism, they take an "inverse" view and focused on class hierarchies and all these irrelevant particulars from C++ which suits a "packer's" mentality. This is precisely why we have all these famous 120-character long methods, Factories of Factories and design patterns. (Norvig has a whole lecture about how good languages doesn't need design patterns). Of course, there were backed by big money marketing memes which helped to create Java cult - packer's fear of "evil" pointers, their strive for "safety", "guarantees", " standardization" without any understanding of underlying principles. Actually, Java ecosystem is the best compliment to the Programmers Stone essays, while Erlang is the same for design approach focused on what is fundamental - the very ideas emphasised in the Smalltalk design principles described above.
- huxley 11y agoNot quite, the influence was mostly indirect. Java was most heavily influenced by Objective-C, Patrick McNaughton was really into NeXTSTEP and almost left Sun for NeXT but was given a carte blanche by Scott McNealy to create something new. Championed by James Gosling and Bill Joy, Stealth/Green/Oak/Java pivoted in a bunch of different directions, but very few of the developers were C/C++ guys, in fact, the project was largely a reaction to Sun's dependence on C/C++. Sources: http://cs.gmu.edu/~sean/stuff/java-objc.html http://cs.gmu.edu/~sean/stuff/java-objc.html http://www.blinkenlights.com/classiccmp/javaorigin.html http://www.blinkenlights.com/classiccmp/javaorigin.html
- pjmlp 11y agoI read somewhere that the inspiration for Java interfaces came from Objective-C protocols.
- huxley 11y agoPatrick McNaughton thought so too: "I'm pretty sure that Java's 'interface' is a direct rip-off of Obj-C's 'protocol' which was largely designed by these ex-NeXT'ers" http://cs.gmu.edu/~sean/stuff/java-objc.html http://cs.gmu.edu/~sean/stuff/java-objc.html
- jrochkind1 11y agoOf course, ObjC was very heavily influenced by smalltalk, but wanting to create something compatible with C led to some basic divergence, with C's "closer to the metal" level than smalltalk. Of languages still in use, I think ruby is probably the most influenced by smalltalk. I don't know if I've read Matz actually revealing this (maybe I just haven't googled hard enough, or maybe it's there in Japanese somewhere), but the influence is pretty evident from the outcome.
- pjmlp 11y agoGroovy also has its share of Smalltalk influence. But no language can really claim the Smalltalk spirit without a similar work environment.
- agumonkey 11y agoIsn't that trend gone since a few years ? Java EE was utterly bad in the early 2Ks, after years of industry remote and components love, then with added UML flavor and XML verbose redundancy, all allowed only by the relative authority of the companies in charge (IBM, Sun, ...). The same culture that gave Eclipse whose class graph was headache inducing. Since then, from the few articles I've read, EE was trimmed down significantly.
- pjmlp 11y agoYes, JEE is quite nice nowadays. The culture that gave us J2EE has moved on to: - SOA - micro-services spaghetti dependencies - JavaScript frameworks and build tools (each month a new one) - MVVM - From XML everywhere into JSON everywhere
- dschiptsov 11y agoYeah, JavaScript is new Java.)
- deleted 11y ago[deleted]
- cmrdporcupine 11y agoThis seems to get posted once a month if not more. It's a great historical document, though.
- ExpiredLink 11y ago> Messages: Computing should be viewed as an intrinsic capability of objects that can be uniformly invoked by sending messages. "Computing ... as an intrinsic capability of objects" - I'd call this the basic misconception of OOP.
- brudgers 11y agoWhy would you call it that? I don't understand.
- klodolph 11y agoWe typically divide programs into data structures and code. The problem with combining them into objects is that there is often code that does not correspond to a single data structure. "Kingdom of nouns" talks at length on the subject. But basically, "object" as "code plus one data structure" is not a design panacea.
- zwieback 11y agoOf course it's not as bad in SmallTalk as it is in Java, to use those two as stand-ins for dynamic vs. static typing and I would change your comment to "The problem with combining them into classes is..." In SmallTalk I would write code that operates on any object that can respond to some set of messages so the coupling is much looser.
- jowiar 11y agoI think you've got it wrong. The degenerate case of this is that you've one object, called a "Computer", which can "compute". We live in a world. It has state. Something needs to manage, check, and hold the state. It's sometimes easier to conceptualize a problem by pretending that state doesn't exist, but it's an abstraction that leaks badly for anything that does not exist in isolation from the world. The misconception that wrecks OOP in the eyes of many is that OOP == "Class Hierarchy". OOP = "Objects" and "Messages". Everything else is negotiable.
- verytrivial 11y agoPlease fix the typo in the title. It does not appear in the original article.
- brudgers 11y agoI read the closing remarks: Natural Selection: Languages and systems that are of sound design will persist, to be supplanted only by better ones. and thought of Bob Martin's What Killed Smalltalk Could Kill Ruby[1]. The technical merits of Smalltalk are such that few claims "to do objects better" are taken seriously. But the lesson of Smalltalk is that "better" isn't just in the technical details. It lives in the model of community that it's speakers adopt. People speak C and JavaScript because they rode along free with Unix and the browser. Even in it's darkest days, Lisp tagged along in AutoCad and Emacs. These languages had practical purposes that let them compete outside of the "what language should I build my next project in" marketplace and outside the segment of professional software developers. Smalltalk was killed by its business models. Without runtime licensing, providing a REPL meant that every application would come with a free copy. Not providing a REPL meant knee-capping the application. [1]: http://www.youtube.com/watch?v=YX3iRjKj7C0 http://www.youtube.com/watch?v=YX3iRjKj7C0
- kevin 11y agoI've never thought about creativity in this way: If a system is to serve the creative spirit, it must be entirely comprehensible to a single individual. As a UX designer and investor, I'm constantly worrying about creeping complexity in interfaces and companies. Cluttered thought and execution has always been the enemy for me, but always in service of better conversion, execution and flow. The limits complexity brings to creative potential...that's a new articulation for me and an exciting one to think about.