29 points · by sebastianconcpt · 12y ago · 52 comments
Here a simply equation. In terms of mental fortitude…
CTOs would pay Gartner millions of dollars to have them confirm their bias to go 100% Java/Windows/IBM.
Not that ParcPlace did themselves any favors.
Now, nearly all programming languages are free :-)
Pharo Smalltalk (based on Squeak) is very nice, and runs on Mac, Windows, or Linux box using very little resources.
Smalltalk is still used, as is Common Lisp, Scheme, etc. Just because languages are only used for < 1% of commercial projects does not mean that people skilled in their use shouldn't use them. My go-to languages right now are Clojure, Java, and JavaScript, but, I still like to code occasionally in Pharo Smalltalk (good online tutorials, BTW, if you want to play with Pharo).
In a lot of ways, I'm still programming in Smalltalk... just in other languages.
It seems like Ruby is a better Perl than Perl, a better Smalltalk than Smalltalk, and a better Python than Python.
It's slow (though that's getting better) but otherwise it allows genuinely beautiful system design.
Smaller language, more coherent, first-class blocks, clearer messaging syntax, message cascading, conditions, …
> a better Smalltalk than Smalltalk
Not by a long shot no.
> and a better Python than Python
Not that one either.
As someone who's quite the Ruby fan, this is the only one on the list I'd object to.
There's a very real philosophical difference between the two, which I'd identify as being their attitude to "magic". Ruby is OK with a certain level of increased complexity and semi-hidden behaviour if it means more expressivity. Python, on the other hand, prefers simplicity and explicitness.
It's not the most radical divide, and I don't really think either one is the One True Philosophy; they're just different. And neither is better at embodying the other's philosophy.
If you think pry is a cool tool for Ruby, you gotta see any smalltalk platform.
The concepts of live coding originated in Lisp and Smalltalk environments.
Smalltalk was the birth of IDEs and unit testing. Also its sucessors StrongTalk and SELF were the first environments to have JIT compilers.
Finally, having Smalltalk as OS made the computers quite interactive.
- https://www.youtube.com/watch?v=Wh0BHJ7fUoc
- http://www.infoq.com/news/2008/05/MagLevAtRailsConf
Weird that it never got any steam or buzz ..
(a) drawRect(50, 50, 10, 21)
(b) aRect drawAtX: 50 andY: 50 width: 10 height: 21
But having gone from c++ to Ruby to C++, I think the benefits of this expressiveness may not really be there.
This construction makes each line of the whole program that much longer, it asks that every functions arguments be meaningful outside the context of the function as well as within. Basically, this syntax may show you that certain calls are wrong but there are many other calls it won't prevent and it gives you larger amount of code to page through to find those other errors.
Remember, a good program wouldn't be using 10 as a function input except if there was some reason it's meaning was clear. And a rect would take two points rather than four ambiguous ints.
So what you can have is drawRect(Pt(screenLeft, screenTop), Pt(screenRight, screenBottom) if you want a rect covering the screen and you want expressiveness.
drawRectOrigin: 50@50 extent: 10@21.
drawRectOrigin: 50@50 corner: 60@71.
If you really wanted, on class Point you could define method ',' with parameter 'otherPoint' as follows... , otherPoint
^ Rectangle origin: self corner: otherPoint.
then you could do draw rectangles like this... drawRect: (50@50),(60@71).
drawRect: (screenLeft@screenTop),(screenRight@screenBottom). aRect.Draw(x:50, y:50, width:10, height:21);So with that (mis)feature, eliding commas would make a lot of code harder to reader.
aRect.Draw({x:50, y:50, width:10, height:21}) enumerateObjectsUsingBlock: aBlock
to Smalltalk's do: aBlock
or NSDictionary's objectForKey: aKey
to Smalltalk's at: aKeyI find it faster to read since I don't have to glance at API docs at the same time.
If you're interested in the idea though, F-Script was actually pretty close to "Smalltalk for Cocoa," though it's more designed as a developer tool for Objective-C programs than an applications development language in its own right. It has an object browser and everything.
However Smalltalk lost the enterprise place it got, but its spirit lives partially[1] on modern dynamic languages.
[1] Without live coding experience, it isn't a full Smalltalk descendent.
http://www.youtube.com/watch?v=sypkOhE-ufs
It's obviously only a very simple example, but hopefully shows the potential.