{"id":167457,"date":"2013-01-29T22:24:03","date_gmt":"2013-01-29T18:24:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=167457"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=167457","title":{"rendered":"<span class=\"post_title\">Ruby, SmallTalk \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<i>\u0421\u0442\u0430\u0442\u044c\u044f, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u041f\u0430\u0442\u0430 \u0428\u043e\u043d\u0430\u0441\u0438 (Pat Shaughnessy), \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u0437\u0432\u0443\u0447\u0430\u0449\u0435\u0439 \u043a\u0430\u043a <a href=\"http:\/\/patshaughnessy.net\/2012\/12\/17\/ruby-smalltalk-and-class-variables\">Ruby, Smalltalk and Class Variables<\/a><\/i>.<\/p>\n<p>  \u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 <a href=\"http:\/\/erniemiller.org\/2012\/11\/29\/ruby-tidbit-include-vs-extend-with-module-class-variables\/\">\u0441\u0442\u0430\u0442\u044c\u044f \u042d\u0440\u043d\u0438 \u041c\u0438\u043b\u043b\u0435\u0440\u0430<\/a> (Ernie Miller) \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430 \u043c\u0435\u043d\u044f \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441: \u0430 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0420\u0443\u0431\u0438? \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0414\u0436\u043e\u043d \u041d\u0443\u043d\u043c\u0435\u0439\u043a\u0435\u0440 (John Nunemaker) \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e <a href=\"http:\/\/railstips.org\/blog\/archives\/2006\/11\/18\/class-and-instance-variables-in-ruby\/\">\u00ab\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u0432 \u0420\u0443\u0431\u0438\u00bb<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0430\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f 2006 \u0433\u043e\u0434\u043e\u043c \u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u0441\u0435\u0439\u0447\u0430\u0441. \u0424\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u0430\u043c\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u0438 \u0432\u0441\u0435\u043c\u0438 \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u2013 \u043a\u0430\u043a \u0414\u0436\u043e\u043d \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b \u0435\u0449\u0435 \u0448\u0435\u0441\u0442\u044c \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434, \u0438 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0441\u0442\u0438 \u043a \u043d\u0435\u0440\u0430\u0437\u0431\u0435\u0440\u0438\u0445\u0435 \u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u043a\u043e\u0434\u0430.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u0436\u0435 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: \u201c\u041f\u043e\u0447\u0435\u043c\u0443?\u201d. \u041f\u043e\u0447\u0435\u043c\u0443 \u0420\u0443\u0431\u0438 \u0434\u0435\u043b\u0438\u0442 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438? \u041f\u043e\u0447\u0435\u043c\u0443 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430? \u041e\u0442\u043a\u0443\u0434\u0430 \u044d\u0442\u0438 \u0438\u0434\u0435\u0438 \u043f\u0440\u043e\u0438\u0437\u0440\u043e\u0441\u0442\u0430\u044e\u0442? \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u043e\u0441\u0442: \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0432 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0434\u0440\u0435\u0432\u043d\u0435\u043c \u044f\u0437\u044b\u043a\u0435, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u043c <a href=\"http:\/\/en.wikipedia.org\/wiki\/Smalltalk\">Smalltalk<\/a>. Smalltalk \u0431\u044b\u043b \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 1970\u0445 \u0438\u0437\u0432\u0435\u0441\u043d\u044b\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u043c \u0443\u0447\u0435\u043d\u044b\u043c <a href=\"http:\/\/en.wikipedia.org\/wiki\/Alan_Kay\">\u0410\u043b\u0430\u043d\u043e\u043c \u041a\u0435\u0435\u043c<\/a> (Alan Kay) \u0438 \u0433\u0440\u0443\u043f\u043f\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u0433, \u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0438\u0445 \u0432 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u0438 <a href=\"http:\/\/www.parc.com\/\">Xerox PARC<\/a>. \u0421 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435\u043c Smalltalk, \u0410\u043b\u043b\u0430\u043d \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u043e\u0431\u0440\u0435\u043b \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f; \u043e\u043d \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0432\u0441\u044e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u041e\u0431\u044a\u0435\u043a\u0442\u043d\u043e \u041e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u041e\u041e\u041f) \u0438 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u0435\u0435. \u0425\u043e\u0442\u044f \u0438 \u043d\u0435 \u0448\u0438\u0440\u043e\u043a\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d \u0441\u0435\u0439\u0447\u0430\u0441, Smalltalk \u043f\u043e\u0432\u043b\u0438\u044f\u043b \u043d\u0430 \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0448\u0438\u0440\u043e\u043a\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u044b \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u043c\u0438 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u041e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0439 C \u0438 \u0420\u0443\u0431\u0438.<\/p>\n<p>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0447\u0443 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 Smalltalk, \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438, \u043a\u0430\u043a \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 \u0420\u0443\u0431\u0438. \u0412\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435, \u0447\u0442\u043e \u0438\u0434\u0435\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430 \u2014 \u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0437 Smalltalk. \u0411\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0420\u0443\u0431\u0438 \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u043b\u0430 \u0432\u0437\u044f\u0442\u0430 \u0438\u0437 Smalltalk.<\/p>\n<h4>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0420\u0443\u0431\u0438<\/h4>\n<p>  \u0421\u043f\u0435\u0440\u0432\u0430, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0433\u043b\u044f\u043d\u0435\u043c, \u0447\u0442\u043e \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430, \u0438 \u043a\u0430\u043a \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 \u0420\u0443\u0431\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <a href=\"http:\/\/railstips.org\/blog\/archives\/2006\/11\/18\/class-and-instance-variables-in-ruby\/\">\u043f\u0440\u0438\u043c\u0435\u0440 \u0414\u0436\u043e\u043d\u0430 \u041d\u0443\u043d\u043c\u0435\u0439\u043a\u0435\u0440\u0430 2006 \u0433\u043e\u0434\u0430<\/a>: \u0432\u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0420\u0443\u0431\u0438 \u043a\u043b\u0430\u0441\u0441, <code>Polygon<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043a\u043b\u0430\u0441\u0441\u0430 <code>@@sides<\/code>.<\/p>\n<pre><code class=\"ruby\">class Polygon \t@@sides = 10 \tdef self.sides \t\t@@sides \tend end  puts Polygon.sides =&gt;10 <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439: <code>@@sides<\/code> \u2014 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043b\u044e\u0431\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0438\u043b\u0438 \u043c\u0435\u0442\u043e\u0434 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Polygon<\/code>. \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, <code>sides<\/code> \u2014 \u043c\u0435\u0442\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442.<br \/>  \u041d\u0430 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435, \u0432\u043d\u0443\u0442\u0440\u0438, \u0420\u0443\u0431\u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <code>@@sides<\/code> \u0441 \u0442\u0435\u043c \u0436\u0435 \u0443\u0447\u0430\u0441\u0442\u043a\u043e\u043c \u043f\u0430\u043c\u044f\u0442\u0438, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438 <code>Polygon<\/code> \u043a\u043b\u0430\u0441\u0441:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/951\/ef6\/308\/951ef630897b03fbad231915ef2ad7ab.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441; \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0414\u0436\u043e\u043d\u0430:  <\/p>\n<pre><code class=\"ruby\">class Triangle &lt; Polygon \t@@sides = 3 end  puts Triangle.sides =&gt;3 puts Polygon.sides =&gt;3 <\/code><\/pre>\n<p>  \u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447\u0442\u043e \u043e\u0431\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430, <code>Triangle.sides<\/code> \u0438 <code>Polygon.sides<\/code>, \u0431\u044b\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430 3. \u041f\u043e \u0441\u0443\u0442\u0438, \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0431\u044f \u0420\u0443\u0431\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442 \u043e\u0431\u0430 \u043a\u043b\u0430\u0441\u0441\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b01\/59f\/238\/b0159f238c12aedd6d1a422950b54ea6.jpg\" alt=\"image\"\/><\/p>\n<p>  \u042f \u043c\u043e\u0433\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0420\u0443\u0431\u0438 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u043e\u0441\u0442\u0435 \u043c\u043e\u0435\u0433\u043e \u0431\u043b\u043e\u0433\u0430, \u043d\u043e \u043f\u043e\u043a\u0430 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0435 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u0438 \u0443\u0437\u043d\u0430\u0435\u043c \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e Smalltalk\u2026<\/p>\n<h4>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Smalltalk?<\/h4>\n<p>  \u041a\u0430\u043a \u044f \u0441\u043a\u0430\u0437\u0430\u043b \u0432\u044b\u0448\u0435, \u0410\u043b\u0430\u043d \u041a\u0435\u0439 \u0438\u0437\u043e\u0431\u0440\u0435\u043b Smalltalk \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432 Xerox PARC \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 1970\u0445. \u042d\u0442\u043e \u0442\u0430 \u0436\u0435 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044f, \u0447\u0442\u043e \u0438\u0437\u043e\u0431\u0440\u0435\u043b\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440, \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438 Ethernet \u0438 \u043c\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0435\u0449\u0435\u0439. \u041d\u0430 \u044d\u0442\u043e\u043c \u0444\u043e\u043d\u0435 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u041e\u041e\u041f \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430\u0438\u043c\u0435\u043d\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u043c \u0438\u0437 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0439!<\/p>\n<p>  \u0412 Smalltalk, \u041a\u0435\u0439 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044e \u0438 \u0438\u0434\u0435\u0438, \u0440\u0430\u0437\u0443\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u0430\u043c\u0438 \u0441\u043e\u0431\u043e\u0439 \u0441\u0435\u0433\u043e\u0434\u043d\u044f. \u041a\u0430\u0436\u0434\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 Smalltalk, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u044f\u0437\u044b\u043a\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0431\u043b\u043e\u043a\u0438, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Smalltalk \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u043f\u0443\u0442\u0438 \u0438\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f; \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430 Smalltalk, \u0432\u044b &#8216;\u0448\u043b\u0435\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435&#8217; \u043e\u0431\u044a\u0435\u043a\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e. \u0412 Smalltalk \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f &#8216;\u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438&#8217;. \u041e\u0431\u044a\u0435\u043a\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0441\u0435\u0440\u0438\u044e \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0437\u0432\u0443\u0447\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0435, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435.<\/p>\n<p>  \u0421 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430, \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u041e\u041e\u041f \u041a\u0435\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u043b\u0430 \u0438\u0434\u0435\u044e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 &#8216;\u043a\u043b\u0430\u0441\u0441&#8217;. \u041e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0431\u044b\u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u044b, \u043a\u0430\u043a \u0441\u0435\u0440\u0438\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0439 (\u043c\u0435\u0442\u043e\u0434\u043e\u0432), \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0433 \u0431\u044b\u0442\u044c \u0432\u044b\u0437\u0432\u0430\u043d. Smalltalk \u0442\u0430\u043a\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u2018\u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u044b\u2019, \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u2018\u0441\u0443\u043f\u0435\u0440\u043a\u043b\u0430\u0441\u0441\u043e\u0432\u2019. \u0412\u0441\u0435 \u044d\u0442\u0438 \u043f\u043e\u043d\u044f\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u0435\u0433\u043e\u0434\u043d\u044f, \u0431\u044b\u043b\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u044b \u041a\u0435\u0435\u043c \u0438 \u0435\u0433\u043e \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c\u0438 40 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434.<\/p>\n<p>  Smalltalk, \u043e\u0434\u043d\u0430\u043a\u043e, \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u0446\u0435\u043b\u0430\u044f \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u042f \u0441\u0447\u0438\u0442\u0430\u044e Smalltalk \u043f\u0440\u0435\u0434\u0432\u0435\u0441\u0442\u043d\u0438\u043a\u043e\u043c Visual Studio \u0438 XCode, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u043c, \u043a\u043e\u0433\u0434\u0430 Microsoft \u0438 Apple \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e, \u0432 \u043c\u0438\u0440\u0435, \u0433\u0434\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445. \u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u044e\u0449\u0430\u044f \u0446\u0435\u043b\u044c \u0410\u043b\u0430\u043d\u0430 \u041a\u0435\u044f \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b Smalltalk, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e, \u0431\u044b\u043b\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0435\u0442\u0435\u0439 \u0432 \u0448\u043a\u043e\u043b\u0430\u0445. \u042d\u0442\u043e \u043f\u043e-\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f!<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0438 \u0437\u0430\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u0438 Smalltalk, \u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043a \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e \u2018\u0420\u0430\u043d\u043d\u044e\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u044e Smalltalk\u2019 (<a href=\"http:\/\/www.smalltalk.org\/smalltalk\/TheEarlyHistoryOfSmalltalk_Abstract.html\">html<\/a>, \u0438\u043b\u0438 <a href=\"http:\/\/www.smalltalk.org\/downloads\/papers\/SmalltalkHistoryHOPL.pdf\">pdf<\/a>, \u0438\u043b\u0438 <a href=\"http:\/\/samizdat.cc\/shelf\/documents\/2004\/08.02-historyOfSmalltalk\/historyOfSmalltalk.pdf\">pdf \u043d\u043e \u0431\u0435\u0437 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c<\/a>), \u0440\u0435\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043e\u0431\u0437\u043e\u0440 \u041a\u0435\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u0432 1990\u0445. \u042d\u0442\u043e \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u041a\u0435\u0439 \u0438 \u0435\u0433\u043e \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u0438\u0434\u0435\u0438 \u0434\u0430\u0436\u0435 \u0438\u0437 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e, \u043d\u043e \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0442\u044f\u0436\u0435\u043b\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0439, \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u043e\u0439, \u0433\u0434\u0435 \u0447\u0438\u0441\u0442\u044b\u043c \u0442\u0430\u043b\u0430\u043d\u0442\u043e\u043c \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u0448\u0430\u0433 \u0432\u043f\u0435\u0440\u0435\u0434 \u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0438\u044e \u0432 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u043c \u043d\u0430\u0443\u0447\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u0438\u0445 \u0434\u043d\u0435\u0439, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0438 \u043d\u0430\u0448\u0438\u0445.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u0443\u044e \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Smalltalk \u0410\u043b\u0430\u043d \u041a\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u043b \u0432 1972 \u0433\u043e\u0434\u0443 \u2013 \u043f\u043e \u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u043b\u043e\u0432\u0430\u043c, \u0432\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e:<br \/>  <i>\u042f \u043e\u0436\u0438\u0434\u0430\u043b, \u0447\u0442\u043e \u043d\u043e\u0432\u044b\u0439 Smalltalk \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c, \u0438 \u0435\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0437\u0430\u0439\u043c\u0435\u0442 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u0432\u0430 \u0433\u043e\u0434\u0430, \u043d\u043e \u0432 \u043f\u043b\u0430\u043d\u044b \u0432\u043c\u0435\u0448\u0430\u043b\u0430\u0441\u044c \u0441\u0443\u0434\u044c\u0431\u0430. \u0412 \u043e\u0434\u0438\u043d \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0434\u0435\u043d\u044c, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0442\u0438\u043f\u0438\u0447\u043d\u043e\u0433\u043e \u043c\u0443\u0436\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 \u0432 \u043f\u0440\u0438\u0445\u043e\u0436\u0435\u0439 PARC, \u0422\u0435\u0434 \u041a\u043e\u044d\u043b\u0435\u0440 (Ted Kaehler), \u0414\u044d\u043d \u0418\u043d\u0433\u043b\u0437 (Dan Ingalls) \u0438 \u044f \u0441\u0442\u043e\u044f\u043b\u0438 \u0438 \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u043b\u0438 \u043e \u044f\u0437\u044b\u043a\u0430\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u043c\u043e\u0449\u044c \u044f\u0437\u044b\u043a\u0430 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044f\u0437\u044b\u043a \u0441\u0443\u043f\u0435\u0440\u043c\u043e\u0449\u043d\u044b\u043c. \u0420\u0438\u0441\u0443\u044f\u0441\u044c \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c\u0438, \u044f \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u2018\u0441\u0430\u043c\u044b\u0439 \u043c\u043e\u0449\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0432 \u043c\u0438\u0440\u0435\u2019 \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u0442\u044c \u2018\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u0441 \u043a\u043e\u0434\u043e\u043c\u2019. \u0418\u0445 \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u0431\u044b\u043b\u0430: \u2018\u0441\u043e\u0437\u0434\u0430\u0439 \u043b\u0438\u0431\u043e \u0437\u0430\u0442\u043a\u043d\u0438\u0441\u044c\u2019. \u0422\u0435\u0434 \u0443\u0448\u0435\u043b \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 CMU, \u043d\u043e \u0414\u044d\u043d \u0432\u0441\u0435 \u0435\u0449\u0435 \u0431\u044b\u043b \u0440\u044f\u0434\u043e\u043c \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b \u043c\u0435\u043d\u044f \u0442\u043e\u043b\u043a\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0432\u0435 \u043d\u0435\u0434\u0435\u043b\u0438 \u044f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b \u0432 PARC \u0432 \u0447\u0435\u0442\u044b\u0440\u0435 \u0447\u0430\u0441\u0430 \u0443\u0442\u0440\u0430 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0434\u043e \u0432\u043e\u0441\u044c\u043c\u0438, \u0437\u0430\u0442\u0435\u043c \u0414\u044d\u043d \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 \u0413\u0435\u043d\u0440\u0438 \u0424\u0443\u043a\u0441\u043e\u043c (Henry Fuchs), \u0414\u0436\u043e\u043d\u043e\u043c \u0428\u043e\u043a\u043e\u043c (John Shoch), \u0438 \u0421\u0442\u0438\u0432\u043e\u043c \u041f\u0435\u0440\u0441\u0435\u043b\u043e\u043c (Steve Purcell) \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u042f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0445\u0432\u0430\u0441\u0442\u0430\u043b\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u041b\u0418\u0421\u041f (LISP) \u041c\u0430\u043a\u043a\u0430\u0440\u0442\u0438 (John McCarthy) \u0431\u044b\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u041b\u0418\u0421\u041f-\u0435. \u0420\u0435\u0447\u044c \u0448\u043b\u0430 \u043e \u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u2018\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0441 \u043a\u043e\u0434\u043e\u043c\u2019, \u0438 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u043c\u043e\u0449\u044c \u044f\u0437\u044b\u043a\u0430 \u0440\u043e\u0441\u043b\u0430, \u043e\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0432\u0441\u0435\u043c \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432. \u042f \u0431\u044b\u043b \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0441\u043c\u043e\u0433\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432.<\/i><\/p>\n<p>  \u0422\u0443\u0442 \u041a\u0435\u0439 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 <a href=\"http:\/\/en.wikipedia.org\/wiki\/John_McCarthy_(computer_scientist)\">\u0414\u0436\u043e\u043d\u0430 \u041c\u0430\u043a\u043a\u0430\u0440\u0442\u0438<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0437\u043e\u0431\u0440\u0435\u043b \u041b\u0418\u0421\u041f \u0434\u0435\u0441\u044f\u0442\u044c\u044e \u0433\u043e\u0434\u0430\u043c\u0438 \u0440\u0430\u043d\u0435\u0435. \u041a\u0435\u044e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435\u0433\u043e \u0432\u043e\u0441\u0435\u043c\u044c \u0443\u0442\u0440, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Smalltalk:<br \/>  \u041f\u0435\u0440\u0432\u044b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0441\u0438\u0439 \u0438\u043c\u0435\u043b\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u0440\u043e\u043c\u043a\u043e \u043a\u0440\u0438\u0442\u0438\u043a\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0433\u0440\u0443\u043f\u043f\u043e\u0439. \u041d\u043e \u043a \u0432\u043e\u0441\u044c\u043c\u043e\u043c\u0443 \u0443\u0442\u0440\u0443, \u0438\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u043e\u043a\u043e\u043b\u043e \u0442\u043e\u0433\u043e, \u043a\u043e\u0434 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u2026<\/p>\n<p>  \u042f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u044b\u043c, \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c \u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u043a\u0430\u043a\u0438\u043c\u0438 \u0410\u043b\u0430\u043d \u041a\u0435\u0439 \u0438 \u0435\u0433\u043e \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u043f\u043e PARC \u0431\u044b\u043b\u0438 40 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434.<\/p>\n<h4>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 Smalltalk<\/h4>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c, \u043a\u0430\u043a \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 Smalltalk, \u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b GNU Smalltalk, \u0432\u0435\u0440\u0441\u0438\u044e \u044f\u0437\u044b\u043a\u0430, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043d\u0430 \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043b\u0435\u0433\u043a\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434 Linux Box. \u0412\u043d\u0430\u0447\u0430\u043b\u0435, Smalltalk \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c \u0438 \u043d\u0435\u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u044b\u043c; \u0435\u0433\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u0435\u043d \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044f \u043c\u0435\u0442\u043e\u0434 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432\u2026\u0431\u0435\u0437 \u0438\u043c\u0435\u043d\u0438 \u043c\u0435\u0442\u043e\u0434\u0430! \u042f \u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u2013 \u044d\u0442\u043e \u0438\u043c\u044f \u043c\u0435\u0442\u043e\u0434\u0430, \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e. \u041d\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439 \u044f \u043f\u0440\u0438\u0432\u044b\u043a \u043a \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443, \u0438 \u044f\u0437\u044b\u043a \u0441\u0442\u0430\u043b \u0431\u043e\u043b\u0435\u0435 \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u043c\u0435\u043d\u044f.<\/p>\n<p>  \u0412\u043e\u0442, \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 Polygon \u2013 \u043a\u043e\u0434 \u043d\u0430 Smalltalk \u0441\u043b\u0435\u0432\u0430, \u043d\u0430 \u0420\u0443\u0431\u0438 \u0441\u043f\u0440\u0430\u0432\u0430.  <\/p>\n<table>\n<tr>\n<td>\n<pre><code class=\"smalltalk\">Object subclass: Polygon [   Sides := 10. ]  Polygon class extend [   sides [ ^Sides ] ]  Polygon sides printNl. =&gt; 10 <\/code><\/pre>\n<p>  <\/td>\n<td>\n<pre><code class=\"ruby\">class Polygon   @@sides = 10   def self.sides     @@sides   end end  puts Polygon.sides =&gt; 10 <\/code><\/pre>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043a\u043e\u0434 \u043d\u0430 Smalltalk \u0434\u0435\u043b\u0430\u0435\u0442:<br \/>  \u2022 <code>Object subclass: Polygon<\/code> \u2013 \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043f\u043e\u0441\u044b\u043b\u043a\u0443 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0443 Object \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0438\u043c\u0435\u043d\u0438 Polygon. \u042d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0430 Object. \u042d\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f class Polygon &lt; Object \u0432 \u0420\u0443\u0431\u0438. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432 \u0420\u0443\u0431\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 Object, \u043a\u0430\u043a \u0441\u0443\u043f\u0435\u0440\u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<br \/>  \u2022 <code>Sides := 10.<\/code> \u2013 \u0442\u0443\u0442 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043a\u043b\u0430\u0441\u0441\u0430 Sides, \u0438 \u0435\u0439 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0420\u0443\u0431\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441: @@sides.<br \/>  \u2022 <code>Polygon class extend<\/code> \u2013 \u0442\u0443\u0442 \u2018\u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442\u0441\u044f\u2019 \u043a\u043b\u0430\u0441\u0441 Polygon; \u0442.\u0435. \u043a\u043b\u0430\u0441\u0441 Polygon \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c \u043c\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430. \u0412 \u0420\u0443\u0431\u0438 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e: class Polygon; def self.sides<br \/>  \u2022 <code>printNl<\/code> \u043c\u0435\u0442\u043e\u0434 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c; \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u0430\u043a puts \u0432 \u0420\u0443\u0431\u0438, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u0435\u0442\u043e\u0434 printNl \u2013 \u044d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <code>Sides<\/code>. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432 <code>@@sides.puts<\/code> \u0432 \u0420\u0443\u0431\u0438!<\/p>\n<p>  \u041f\u043e\u043c\u0438\u043c\u043e \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u044b\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0448\u0430\u0433 \u043d\u0430\u0437\u0430\u0434 \u0438 \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u0442\u0435, \u0442\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u0435, \u043a\u0430\u043a \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0445\u043e\u0436\u0438 Smalltalk \u0438 \u0420\u0443\u0431\u0438! \u041e\u0431\u0430 \u044f\u0437\u044b\u043a\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430, \u043d\u043e \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 Polygon, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043d\u0438\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e. \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e \u0420\u0443\u0431\u0438, \u043a\u0430\u043a \u043e \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Smalltalk \u0441 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u043c, \u0438 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c!<\/p>\n<p>  \u041a\u0430\u043a \u044f \u0441\u043a\u0430\u0437\u0430\u043b \u0432\u044b\u0448\u0435, Smalltalk \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438, \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0420\u0443\u0431\u0438. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u044f \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441 Triangle \u0432 Smalltalk \u0438 \u0420\u0443\u0431\u0438.  <\/p>\n<table>\n<tr>\n<td>\n<pre><code class=\"smalltalk\">Polygon subclass: Triangle [ ] Triangle class extend [   set_sides: num [ Sides := num ] ]  Polygon sides printNl. =&gt; 10  <\/code><\/pre>\n<p>  <\/td>\n<td>\n<pre><code class=\"ruby\">class Triangle &lt; Polygon   def self.sides=(num)     @@sides = num   end end  puts Triangle.sides =&gt; 10 <\/code><\/pre>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  \u0422\u0443\u0442 \u044f \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441 Triangle \u0438 \u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043b\u0430\u0441\u0441\u0430. \u0422\u0435\u043f\u0435\u0440\u044c, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u0430.  <\/p>\n<table>\n<tr>\n<td>\n<pre><code class=\"smalltalk\">Triangle set_sides: 3. Triangle sides printNl. =&gt; 3 <\/code><\/pre>\n<p>  <\/td>\n<td>\n<pre><code class=\"ruby\">Triangle.sides = 3 puts Triangle.sides =&gt; 3 <\/code><\/pre>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  \u0411\u0435\u0437 \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u0432; \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u043c\u0435\u0442\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 set_slides (<code>slides=<\/code> \u0432 \u0420\u0443\u0431\u0438), \u044f \u043c\u043e\u0433\u0443 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a Triangle \u0438 Polygon \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043a\u043b\u0430\u0441\u0441\u0430, \u0442\u043e \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u0438 \u043a\u043b\u0430\u0441\u0441 Polygon \u0442\u0430\u043a\u0436\u0435:  <\/p>\n<table>\n<tr>\n<td>\n<pre><code class=\"smalltalk\">Polygon sides printNl. =&gt; 3 <\/code><\/pre>\n<p>  <\/td>\n<td>\n<pre><code class=\"ruby\">puts Polygon.sides =&gt; 3 <\/code><\/pre>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  \u0412 \u043e\u0434\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f: Smalltalk \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u044d\u0442\u043e\u0433\u043e \u0445\u043e\u0442\u0438\u0442\u0435. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u043c\u0435\u0442\u043e\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043d\u0438\u043c \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435 \u0438 \u0435\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0435, \u0442\u043e \u043e\u043d\u0438 \u0441\u0442\u0430\u043d\u0443\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438. \u041f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u0432 GNU Smalltalk, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e:  <\/p>\n<pre><code class=\"smalltalk\">Object subclass: Polygon [   Sides := 10. ]  Polygon class extend [   sides [ ^Sides ] ]  Polygon subclass: Triangle [   Sides := 3. ]  Triangle class extend [   sides [ ^Sides ] ]  Polygon sides printNl. &gt;= 10  Triangle sides printNl. &gt;= 3 <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0432 \u0420\u0443\u0431\u0438. \u041a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0435\u043b\u0438 \u0432\u044b\u0448\u0435, <code>@@sides<\/code> \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<h4>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430<\/h4>\n<p>  \u0412 \u0420\u0443\u0431\u0438, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u043c\u0435\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u0442\u043e\u0433\u0434\u0430 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430. \u0427\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0414\u0436\u043e\u043d\u0430 \u041d\u0443\u043d\u043c\u0435\u0439\u043a\u0435\u0440\u0430:  <\/p>\n<pre><code class=\"ruby\">class Polygon   def self.sides     @sides   end   @sides = 8 end  puts Polygon.sides =&gt; 8 <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <code>@sides<\/code> \u0432\u043c\u0435\u0441\u0442\u043e <code>@@sides<\/code>, \u0420\u0443\u0431\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043b\u0430\u0441\u0441\u0430:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/97d\/3bb\/7d4\/97d3bb7d4abda170cc0dc8d42516d2c3.jpg\"\/><br \/>  \u041a\u043e\u043d\u0446\u0435\u043f\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b, \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043c \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441 Triangle \u0441\u043d\u043e\u0432\u0430:  <\/p>\n<pre><code class=\"ruby\">class Triangle &lt; Polygon   @sides = 3 end <\/code><\/pre>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u043a\u043b\u0430\u0441\u0441\u0443 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <code>@sides<\/code>:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e0b\/543\/ac8\/e0b543ac82a95a5239bbafcc09393f6a.jpg\"\/><br \/>  \u0421\u0435\u0439\u0447\u0430\u0441 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0442\u043e \u0436\u0435 \u0432 Smalltalk. \u0412 Smalltalk, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u0432\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u043c\u0435\u0442\u043e\u0434 instanceVariableNames \u0432 \u043a\u043b\u0430\u0441\u0441\u0435:  <\/p>\n<table>\n<tr>\n<td>\n<pre><code class=\"smalltalk\">Object subclass: Polygon [ ]  Polygon instanceVariableNames: 'Sides '!  Polygon extend [   sides [ ^Sides ] ] <\/code><\/pre>\n<p>  <\/td>\n<td>\n<pre><code class=\"ruby\">class Polygon   def sides     @sides   end end <\/code><\/pre>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 <code>Polygon<\/code>, \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Object<\/code>. \u0417\u0430\u0442\u0435\u043c, \u044f \u0448\u043b\u044e <code>instanceVariableNames<\/code> \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u043c\u0443 \u043d\u043e\u0432\u043e\u043c\u0443 \u043a\u043b\u0430\u0441\u0441\u0443, \u0433\u043e\u0432\u043e\u0440\u044f Smalltalk, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430, \u043d\u0430\u0437\u0432\u0430\u043d\u043d\u0443\u044e <code>Sides<\/code>. \u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u044f \u043f\u0435\u0440\u0435\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e \u043a\u043b\u0430\u0441\u0441 <code>Polygon<\/code> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e <code>sides<\/code> \u043c\u0435\u0442\u043e\u0434 \u0432 \u043d\u0435\u0433\u043e. \u0420\u044f\u0434\u043e\u043c \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043d\u0430 \u0420\u0443\u0431\u0438.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, <code>Sides<\/code> \u0438 <code>@sides<\/code> \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430 Polygon. \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 Smalltalk, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 Polygon, \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 <code>instanceVariableNames<\/code> \u0438\u043b\u0438 <code>extend<\/code>, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:  <\/p>\n<table>\n<tr>\n<td>\n<pre><code class=\"smalltalk\">Object subclass: Polygon [ ]  Polygon class instanceVariableNames: 'Sides '!  Polygon class extend [   sides [ ^Sides ] ] <\/code><\/pre>\n<p>  <\/td>\n<td>\n<pre><code class=\"ruby\">class Polygon   def self.sides     @sides   end end <\/code><\/pre>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  \u0415\u0449\u0435 \u0440\u0430\u0437 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0432\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u0434\u0430 (\u0420\u0443\u0431\u0438 \u0438 Smalltalk), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0432\u0443\u043c\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u044b. \u0412 Smalltalk, \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 <code>Polygon class extend [ sides<\/code>\u2026, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0432 \u0420\u0443\u0431\u0438: <code>class Polygon; def self.sides<\/code>. \u0420\u0443\u0431\u0438 \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0430\u0442\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u043e\u0439 Smalltalk.<\/p>\n<h4>\u041c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441\u044b \u0432 Smalltalk \u0438 \u0420\u0443\u0431\u0438<\/h4>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u0435\u0449\u0435 \u0440\u0430\u0437 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 Smalltalk:  <\/p>\n<pre><code class=\"smalltalk\">Polygon instanceVariableNames: 'Sides '! <\/code><\/pre>\n<p>  \u0412 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0441 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u0438\u0439, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442:<br \/>  \u2022 \u0411\u0435\u0440\u0435\u043c \u043a\u043b\u0430\u0441\u0441 <code>Polygon<\/code><br \/>  \u2022 \u0428\u043b\u0435\u043c \u0435\u043c\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u0435 instanceVariableNames<br \/>  \u2022 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 <code>Sides<\/code>, \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/4dd\/438\/784\/4dd4387848312b3c70c7e1ac3ea11418.jpg\"\/><br \/>  \u042d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u0432 Smalltalk. \u042f \u0431\u0443\u0434\u0443 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u0430 <code>Polygon<\/code>, \u0438 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Sides<\/code>. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043f\u043e\u043b\u0438\u0433\u043e\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430, \u044f \u0432\u044b\u0437\u044b\u0432\u0430\u044e \u043c\u0435\u0442\u043e\u0434 \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0435 <code>Polygon<\/code>.<br \/>  \u041a\u0430\u043a \u044f \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b \u0432\u044b\u0448\u0435, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 Smalltalk, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e &#8216;class&#8217;. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"smalltalk\">Polygon class instanceVariableNames: 'Sides '! <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 <code>instanceVariableNames<\/code> \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 &#8216;Polygon&#8217;. \u0414\u0435\u0439\u0441\u0442\u0432\u0443\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0441\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u0430 <code>Polygon<\/code> \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430. \u041d\u043e \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442: &#8216;\u043a\u043b\u0430\u0441\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 Polygon&#8217; \u0432 Smalltalk? \u041f\u043e\u0442\u0440\u0430\u0442\u0438\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0432 GNU Smalltalk REPL, \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c:  <\/p>\n<pre><code class=\"smalltalk\">$ gst GNU Smalltalk ready  st&gt; Polygon printNl. =&gt; Polygon  st&gt; Polygon class printNl. =&gt; Polygon class <\/code><\/pre>\n<p>  \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0441\u043f\u0435\u0440\u0432\u0430, \u044f \u0432\u044b\u0432\u043e\u0436\u0443 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Polygon<\/code>. \u0417\u0430\u0442\u0435\u043c, \u044f \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u043b\u0430\u0441\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 Polygon. \u0418 \u044d\u0442\u043e &#8216;Polygon class&#8217;. \u041d\u043e, \u043a\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u044d\u0442\u043e\u0442 \u043e\u0431\u044a\u0435\u043a\u0442? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u043c class, \u043d\u0430 \u043d\u0435\u043c:  <\/p>\n<pre><code class=\"smalltalk\">st&gt; Polygon class class printNl. =&gt; Metaclass <\/code><\/pre>\n<p>  \u0410\u0445\u2026 \u0432\u043e\u0442 \u043e\u043d\u043e \u0447\u0442\u043e. \u041a\u043b\u0430\u0441\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 \u2013 \u044d\u0442\u043e \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441. \u0412\u044b\u0448\u0435, \u043a\u043e\u0433\u0434\u0430 \u044f \u0432\u044b\u0437\u044b\u0432\u0430\u043b <code>instanceVariableNames<\/code>, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430, \u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441 <code>Polygon<\/code>, \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Metaclass<\/code>.<\/p>\n<p>  \u041d\u0438\u0436\u0435, \u043d\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a \u0441\u043e\u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0432\u0441\u0435 \u044d\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u0432 Smalltalk:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d9f\/9aa\/847\/d9f9aa8471c84e9c5383a348076bf735.jpg\"\/><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u043c, \u0447\u0442\u043e \u0420\u0443\u0431\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0442\u0443 \u0436\u0435 \u0441\u0430\u043c\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c. \u0412\u043e\u0442 \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043a\u043b\u0430\u0441\u0441\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0420\u0443\u0431\u0438:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2c5\/182\/8a9\/2c51828a96a5a1c6958a7649c291f35a.jpg\"\/><br \/>  \u0412 \u0420\u0443\u0431\u0438, \u043a\u043e\u0433\u0434\u0430 \u0431\u044b \u0432\u044b \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043a\u043b\u0430\u0441\u0441, \u0420\u0443\u0431\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 Smalltalk, \u0420\u0443\u0431\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430. \u0422\u0430\u043a\u0436\u0435, \u0420\u0443\u0431\u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <code>Metaclass<\/code>, \u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u0441\u0435\u0445 \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u0430 <code>Class<\/code>.<\/p>\n<p>  \u0412 \u0420\u0443\u0431\u0438 \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441 \u0441\u043f\u0440\u044f\u0442\u0430\u043d, \u044f\u0432\u043b\u044f\u044f\u0441\u044c &#8216;\u0442\u0430\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u043d\u044f\u0442\u0438\u0435\u043c&#8217;. \u0420\u0443\u0431\u0438 \u043c\u043e\u043b\u0447\u0430\u043b\u0438\u0432\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0435\u0433\u043e, \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f \u0432\u0430\u043c \u043e\u0431 \u044d\u0442\u043e\u043c, \u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u0412 Smalltalk, \u043e\u0434\u043d\u0430\u043a\u043e, \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0435 \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u044b \u0438 \u0438\u0433\u0440\u0430\u044e\u0442 \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u0440\u043e\u043b\u044c \u0432 \u044f\u0437\u044b\u043a\u0435. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u0432\u044b\u0448\u0435, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0432 Smalltalk. \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2013 \u044d\u0442\u043e \u0442\u043e, \u043a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430, \u0432\u044b\u0437\u044b\u0432\u0430\u044f <code>extend<\/code>.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430, \u0432\u044b \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0435 \u043a\u043b\u0430\u0441\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0420\u0443\u0431\u0438, \u0432\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 Class. \u0420\u0443\u0431\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0432\u0430\u043c \u043e \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441\u0430\u0445:  <\/p>\n<pre><code class=\"ruby\">$ irb &gt; class Polygon; end &gt; Polygon.class Class <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441 \u0420\u0443\u0431\u0438, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u0440\u044e\u043a:  <\/p>\n<pre><code class=\"ruby\">$ irb &gt; class Polygon &gt;   def self.metaclass &gt;     class &lt;&lt; self &gt;       self &gt;     end &gt;   end &gt; end =&gt; nil &gt; Polygon.metaclass =&gt; #&lt;Class:Polygon&gt; <\/code><\/pre>\n<p>  \u201c#&lt;Class:Polygon&gt;\u201d \u2014 \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441 \u043a\u043b\u0430\u0441\u0441\u0430 Polygon. \u042d\u0442\u043e\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 &#187;\u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 Class \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0430 Polygon&#8217; \u0438\u043b\u0438 \u043c\u0435\u0442\u0430\u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f Polygon.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/167457\/\"> http:\/\/habrahabr.ru\/post\/167457\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<i>\u0421\u0442\u0430\u0442\u044c\u044f, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u041f\u0430\u0442\u0430 \u0428\u043e\u043d\u0430\u0441\u0438 (Pat Shaughnessy), \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435 \u0437\u0432\u0443\u0447\u0430\u0449\u0435\u0439 \u043a\u0430\u043a <a href=\"http:\/\/patshaughnessy.net\/2012\/12\/17\/ruby-smalltalk-and-class-variables\">Ruby, Smalltalk and Class Variables<\/a><\/i>.<\/p>\n<p>  \u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 <a href=\"http:\/\/erniemiller.org\/2012\/11\/29\/ruby-tidbit-include-vs-extend-with-module-class-variables\/\">\u0441\u0442\u0430\u0442\u044c\u044f \u042d\u0440\u043d\u0438 \u041c\u0438\u043b\u043b\u0435\u0440\u0430<\/a> (Ernie Miller) \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430 \u043c\u0435\u043d\u044f \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441: \u0430 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0420\u0443\u0431\u0438? \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0414\u0436\u043e\u043d \u041d\u0443\u043d\u043c\u0435\u0439\u043a\u0435\u0440 (John Nunemaker) \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e <a href=\"http:\/\/railstips.org\/blog\/archives\/2006\/11\/18\/class-and-instance-variables-in-ruby\/\">\u00ab\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u0432 \u0420\u0443\u0431\u0438\u00bb<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0430\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f 2006 \u0433\u043e\u0434\u043e\u043c \u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u0441\u0435\u0439\u0447\u0430\u0441. \u0424\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u0430\u043c\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u0438 \u0432\u0441\u0435\u043c\u0438 \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u2013 \u043a\u0430\u043a \u0414\u0436\u043e\u043d \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b \u0435\u0449\u0435 \u0448\u0435\u0441\u0442\u044c \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434, \u0438 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0441\u0442\u0438 \u043a \u043d\u0435\u0440\u0430\u0437\u0431\u0435\u0440\u0438\u0445\u0435 \u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u043a\u043e\u0434\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-167457","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/167457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167457"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/167457\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}