{"id":195484,"date":"2013-09-27T11:18:02","date_gmt":"2013-09-27T07:18:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=195484"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=195484","title":{"rendered":"<span class=\"post_title\">\u041a\u043e\u0444\u0435\u0439\u043d\u044f Java Update \u0432 GTA V<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/79a\/52a\/c4b\/79a52ac4bd05efda39700ad8fba76f25.jpg\" alt=\"image\" \/><\/div>\n<p>  \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0435\u0440\u0438\u0438 Grand Theft Auto \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043b\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0434\u0432\u0443\u043c\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430\u043c\u0438: \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c \u044e\u043c\u043e\u0440\u043e\u043c \u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435\u043c \u043a \u0434\u0435\u0442\u0430\u043b\u044f\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u043c\u0438\u0440\u0430-\u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b. \u041d\u0430 \u0444\u043e\u043d\u0435 <a href=\"http:\/\/kanobu.ru\/news\/grand-theft-auto-v-razoshlas-tirazhom-v-16-mln-kopij-za-pervuyu-nedelyu-368871\/\">\u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u043f\u0440\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0435\u0449\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u043a\u043e\u0440\u0434\u0430 \u043f\u0440\u043e\u0434\u0430\u0436<\/a> (\u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u2014 \u043c\u0438\u0440\u043e\u0432\u043e\u0433\u043e) \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043f\u0430\u0440\u0435 \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u043e\u043a \u0432 \u0438\u0433\u0440\u0435.<\/p>\n<p>  \u0412 \u0433\u043e\u0440\u043e\u0434\u0435 \u041b\u043e\u0441 \u0421\u0430\u043d\u0442\u043e\u0441 \u0438\u0433\u0440\u043e\u043a\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 \u043a\u043e\u0444\u0435\u0439\u043d\u044e java.update(), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0434\u0432\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043e\u0442\u0441\u044b\u043b\u043a\u0438 \u2014 \u043a \u044f\u0437\u044b\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0441\u043e\u0440\u0442\u0443 \u043a\u043e\u0444\u0435. \u041d\u0430 \u0432\u044b\u0432\u0435\u0441\u043a\u0435 \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"java\">  public void sandwich () {      bread = 2;      bacon = 2;      return bread + bacon;    } <\/code><\/pre>\n<p><a name=\"habracut\"><\/a><br \/>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0442\u0438\u043f\u0430 void, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0430\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435?.. \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<pre><code class=\"java\">public int sandwich () {      bread = 2;      bacon = 2;      return bread + bacon;    } <\/code><\/pre>\n<p>  \u041b\u0443\u0447\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"java\">public Sandwich makeSandwich() {        Bread bread = new Bread(2);        Bacon bacon = new Bacon(2);        return new Sandwich(bread, bacon);    } <\/code><\/pre>\n<p>  \u041d\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 hackernews \u043d\u0430 \u044d\u0442\u043e\u043c \u043d\u0435 \u0443\u0441\u043f\u043e\u043a\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d <i>\u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/i>:<\/p>\n<pre><code class=\"java\">class TwoBaconRashersInsideTwoSlicesOfBreadFactory {              \/* Make a sandwich        * &lt;p&gt;        * Construct a foodstuff consisting of two slices         * of bread with two slices of bacon.        * @return TwoBaconRashersInsideTwoSlicesOfBread a sandwich        *\/       Public TwoBaconRashersInsideTwoSlicesOfBread getSandwich () {        BaconRasherFactory pig = new BaconRasherFactory();         BaconRasherInstance bacon1 = pig.getBaconRasher();        BaconRasherInstance bacon2 = pig.getBaconRasher();          SliceOfBreadFactory loaf = new SliceOfBreadFactory();                SliceOfBread bread1 = loaf.getSliceOfBread();        SliceOfBread bread2 = loaf.getSliceOfBread();         return new TwoBaconRashersInsideTwoSlicesOfBread(bread1, bacon1, bacon2, bread2);      } <\/code><\/pre>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0439 \u0442\u0430\u043a\u043e\u0435 \u043a\u0430\u0444\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>sudo make me a sandwich<\/code> \u0431\u044b\u043b\u0430 \u0431\u044b \u0432 \u043d\u0435\u043c \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u043c\u0435\u0441\u0442\u043d\u0430.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u00ab\u043f\u0430\u0441\u0445\u0430\u043b\u044c\u043d\u044b\u0435 \u044f\u0439\u0446\u0430\u00bb \u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f: \u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0438\u0433\u0440\u044b \u043d\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0435 \u0431\u044b\u043b \u0437\u0430\u043c\u0435\u0447\u0435\u043d \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441 \u043d\u0435\u043a\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c (\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u2014 \u044d\u0442\u043e Sublime Text \u0438\u043b\u0438 Textmake \u0441 \u0442\u0435\u043c\u043e\u0439 monokai).  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/4e8\/be3\/a1d\/4e8be3a1d330f9d2b1c94cf76c459ce2.jpg\" alt=\"image\"\/><\/div>\n<\/div>\n<p>  \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438: <a href=\"http:\/\/orcz.com\/GTA_V:_Java_Update_Coffeeshop\">orcz.com<\/a>, <a href=\"https:\/\/news.ycombinator.com\/item?id=6444026\">hackernews<\/a>    \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\/195484\/\"> http:\/\/habrahabr.ru\/post\/195484\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/79a\/52a\/c4b\/79a52ac4bd05efda39700ad8fba76f25.jpg\" alt=\"image\" \/><\/div>\n<p>  \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0435\u0440\u0438\u0438 Grand Theft Auto \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043b\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0434\u0432\u0443\u043c\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430\u043c\u0438: \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c \u044e\u043c\u043e\u0440\u043e\u043c \u0438 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435\u043c \u043a \u0434\u0435\u0442\u0430\u043b\u044f\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u043c\u0438\u0440\u0430-\u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b. \u041d\u0430 \u0444\u043e\u043d\u0435 <a href=\"http:\/\/kanobu.ru\/news\/grand-theft-auto-v-razoshlas-tirazhom-v-16-mln-kopij-za-pervuyu-nedelyu-368871\/\">\u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u043f\u0440\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0435\u0449\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u043a\u043e\u0440\u0434\u0430 \u043f\u0440\u043e\u0434\u0430\u0436<\/a> (\u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u2014 \u043c\u0438\u0440\u043e\u0432\u043e\u0433\u043e) \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043f\u0430\u0440\u0435 \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u043e\u043a \u0432 \u0438\u0433\u0440\u0435.<\/p>\n<p>  \u0412 \u0433\u043e\u0440\u043e\u0434\u0435 \u041b\u043e\u0441 \u0421\u0430\u043d\u0442\u043e\u0441 \u0438\u0433\u0440\u043e\u043a\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 \u043a\u043e\u0444\u0435\u0439\u043d\u044e java.update(), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0434\u0432\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043e\u0442\u0441\u044b\u043b\u043a\u0438 \u2014 \u043a \u044f\u0437\u044b\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0441\u043e\u0440\u0442\u0443 \u043a\u043e\u0444\u0435. \u041d\u0430 \u0432\u044b\u0432\u0435\u0441\u043a\u0435 \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"java\">  public void sandwich () {      bread = 2;      bacon = 2;      return bread + bacon;    } <\/code><\/pre>\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-195484","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/195484","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=195484"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/195484\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}