TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Object Model of Self

144 pointsby xkriva11about 5 years ago

6 comments

scrootabout 5 years ago
Anyone interested in prototype-based languages should also checkout io [1], which is a really clever implementation that doesn&#x27;t get enough love. And unlike Self it will work with your favorite teletype emulation environments.<p>[1] <a href="https:&#x2F;&#x2F;iolanguage.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;iolanguage.org&#x2F;</a>
评论 #22770652 未加载
artemonsterabout 5 years ago
Really nice explanation. Having read almost all papers on this endless debate &quot;Classes vs Prototypes&quot; you&#x27;d get a feeling that prototype-based object system wins in any aspects (expressiveness, flexibility, whatever), and yet almost all prototype-based languages in the end include crude class implementations (as Class for a signle namespace to contain all related traits, constructor method and&#x2F;or prototypical instance for cloning) - interesting, why so? Is this model ingrained in our brains by our education or we do really think that way (i.e. with sets of related entities).
评论 #22768099 未加载
评论 #22767803 未加载
评论 #22767125 未加载
评论 #22774419 未加载
评论 #22772753 未加载
tyingqabout 5 years ago
I really like Perl&#x27;s setup where objects are nothing more than namespaces&#x2F;packages (usable and helpful in non-oo Perl) and one function...bless()[1].<p>It makes it very easy to follow exactly how the OO works, what it is, and is not.<p>[1] <a href="https:&#x2F;&#x2F;perldoc.perl.org&#x2F;functions&#x2F;bless.html" rel="nofollow">https:&#x2F;&#x2F;perldoc.perl.org&#x2F;functions&#x2F;bless.html</a>
dborehamabout 5 years ago
Came here to read a psychology article..
k__about 5 years ago
I learned the object model of Smalltalk at university and after that I couldn&#x27;t take most class based OOP languages seriously anymore.<p>Everything felt like a hack.<p>Protoypical OOP was the only savior left, haha.
h8hawkabout 5 years ago
Very nice article. It seems most developers don&#x27;t likes how prototype based object model works in JS. I wonder how Javascript object system compare to Self, or similar language IO?
评论 #22768254 未加载
评论 #22768167 未加载
评论 #22770538 未加载