{"id":85,"date":"2013-06-28T23:39:10","date_gmt":"2013-06-28T20:39:10","guid":{"rendered":"http:\/\/www.nerds2nerds.com\/?p=85"},"modified":"2013-07-12T00:11:28","modified_gmt":"2013-07-11T21:11:28","slug":"%d0%b5%d0%bf%d0%b8%d0%b7%d0%be%d0%b4-7","status":"publish","type":"post","link":"https:\/\/www.nerds2nerds.com\/?p=85","title":{"rendered":"\u0415\u043f\u0438\u0437\u043e\u0434 7"},"content":{"rendered":"<p>\u0415\u043f\u0438\u0437\u043e\u0434 7 \u043d\u0430 Nerds2Nerds \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 28.06.2013 \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u0430 \u0442\u0435\u043c\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438\u0440\u0430\u043d\u0435 \u0441 yield \u0438 async\/await.<\/p>\n<p>\u0427\u0430\u0441\u0442 1 &#8211; \u043e\u0431\u0437\u043e\u0440 \u043d\u0430 \u043d\u043e\u0432\u0438\u043d\u0438\u0442\u0435<\/p>\n<p><audio width=\"300\" height=\"32\" controls=\"controls\" preload=\"metadata\" autobuffer=\"\"><source src=\"https:\/\/www.nerds2nerds.com\/podcasts\/2013-06-28-e7-p1.mp3\" type=\"audio\/mpeg; codecs=&quot;mp3&quot;\" \/><source src=\"https:\/\/www.nerds2nerds.com\/podcasts\/2013-06-28-e7-p1.ogg\" type=\"audio\/ogg; codecs=&quot;vorbis&quot;\" \/><\/audio><\/p>\n<p>&nbsp;<\/p>\n<p>\u0414\u0438\u0440\u0435\u043a\u0442\u0435\u043d \u043b\u0438\u043d\u043a \u043a\u044a\u043c \u0447\u0430\u0441\u0442 1 (<a href=\"https:\/\/www.nerds2nerds.com\/podcasts\/2013-06-28-e7-p1.mp3\">mp3<\/a>) (<a href=\"https:\/\/www.nerds2nerds.com\/podcasts\/2013-06-28-e7-p1.ogg\">ogg<\/a>)<\/p>\n<p>00:50 &#8211; \u043d\u0430\u0448\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0446\u0438 \u0441 6 \u043c\u0435\u0434\u0430\u043b\u0430 \u043e\u0442 \u0431\u0430\u043b\u043a\u0430\u043d\u0441\u043a\u0430\u0442\u0430 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u0430<br \/>\n03:10 &#8211; Google Maps \u0432\u0435\u0447\u0435 \u0431\u0435\u0437 \u043e\u0431\u043b\u0430\u0446\u0438<br \/>\n05:10 &#8211; Google \u043d\u0435 \u0438\u0441\u043a\u0430\u0442 \u0434\u0430 \u0442\u0440\u0438\u044f\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0438<br \/>\n15:30 &#8211; \u0410ndroid 4.3?<br \/>\n15:50 &#8211; Google \u043f\u043e\u0434\u0433\u043e\u0442\u0432\u044f\u0442 \u0433\u0435\u0439\u043c \u043a\u043e\u043d\u0437\u043e\u043b\u0430 \u0431\u0430\u0437\u0438\u0440\u0430\u043d\u0430 \u043d\u0430 Android<br \/>\n16:50 &#8211; \u043a\u043e\u043b\u043a\u043e \u0441\u0430 \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0442\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438? \u041c\u043e\u0436\u0435 \u0431\u0438 \u0434\u0432\u0435?<br \/>\n18:30 &#8211; \u0432\u0433\u0440\u0430\u0436\u0434\u0430\u0442 \u0441\u043e\u0444\u0442\u0443\u0435\u0440 \u043f\u0440\u043e\u0442\u0438\u0432 \u043f\u0440\u0438\u043d\u0442\u0438\u0440\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u043e\u0440\u044a\u0436\u0438\u044f \u0432 3D \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0438\u0442\u0435<br \/>\n20:50 &#8211; \u0430\u043a\u0446\u0438\u0438\u0442\u0435 \u043d\u0430 Apple \u043f\u0430\u0434\u043d\u0430\u0445\u0430 \u043f\u043e\u0434 $400<br \/>\n23:40 &#8211; Intel \u0438\u043c\u0430\u0442 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f, \u043a\u043e\u044f\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0432\u0430 \u0434\u0430 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442 \u0437\u0430 \u043a\u0430\u043a\u0432\u043e \u0441\u0438 \u043c\u0438\u0441\u043b\u0438\u0448 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0430<br \/>\n24:50 &#8211; Firefox 22 \u0432\u0435\u0447\u0435 \u0435 \u043d\u0430\u043b\u0438\u0447\u043d\u0430<br \/>\n26:00 &#8211; Google \u043b\u0430\u043d\u0441\u0438\u0440\u0430\u0442 \u043d\u043e\u0432 \u043c\u0440\u0435\u0436\u043e\u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<br \/>\n30:10 &#8211; \u041a\u0430\u043a\u0432\u043e \u0441\u0435 \u0441\u043b\u0443\u0447\u0432\u0430, \u0430\u043a\u043e \u043f\u0438\u0435\u0442\u0435 \u041a\u043e\u043a\u0430-\u041a\u043e\u043b\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u043e\u0434\u0430<br \/>\n33:40 &#8211; Kinect \u043d\u0430 Xbox One \u043d\u044f\u043c\u0430 \u0434\u0430 \u0435 \u0441\u044a\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 PC<br \/>\n38:30 &#8211; \u041a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f\u0442\u0430 <a title=\"Build\" href=\"http:\/\/www.buildwindows.com\/\">Build<\/a><br \/>\n&#8211; <a title=\"Oracle \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438 \u0432 Azure\" href=\"http:\/\/arstechnica.com\/information-technology\/2013\/06\/microsoft-oracle-ink-deal-to-bring-oracles-software-to-azure-hyper-v\/\">Oracle \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438 \u0432 Azure<\/a><br \/>\n&#8211; <a title=\"\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0432 Azure\" href=\"http:\/\/weblogs.asp.net\/scottgu\/archive\/2013\/06\/27\/windows-azure-general-availability-release-of-web-sites-mobile-services-new-autoscale-alerts-support-no-credit-card-needed-for-msdn-subscribers.aspx\">\u041d\u043e\u0432\u043e\u0441\u0442\u0438 \u0432 Azure<\/a><br \/>\n&#8211; <a title=\"Windows 8.1\" href=\"http:\/\/arstechnica.com\/information-technology\/2013\/06\/hands-on-with-windows-8-1-preview-windows-8-done-right\/\">Windows 8.1<\/a><br \/>\n&#8211; <a title=\"Internet Explorer 11 \u0441 WebGL\" href=\"http:\/\/arstechnica.com\/business\/2013\/06\/microsoft-shows-off-webgl-touch-capable-features-in-internet-explorer-11\/\">Internet Explorer 11 \u0441 WebGL \u0438 SPDY<\/a><\/p>\n<p>\u0427\u0430\u0441\u0442 2 &#8211; \u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438\u0440\u0430\u043d\u0435 \u0441 yield \u0438 async\/await<\/p>\n<p><audio width=\"300\" height=\"32\" controls=\"controls\" preload=\"metadata\" autobuffer=\"\"><source src=\"https:\/\/www.nerds2nerds.com\/podcasts\/2013-06-28-e7-p2.mp3\" type=\"audio\/mpeg; codecs=&quot;mp3&quot;\" \/><source src=\"https:\/\/www.nerds2nerds.com\/podcasts\/2013-06-28-e7-p2.ogg\" type=\"audio\/ogg; codecs=&quot;vorbis&quot;\" \/><\/audio><\/p>\n<p>&nbsp;<\/p>\n<p>\u0414\u0438\u0440\u0435\u043a\u0442\u0435\u043d \u043b\u0438\u043d\u043a \u043a\u044a\u043c \u0447\u0430\u0441\u0442 2 (<a href=\"https:\/\/www.nerds2nerds.com\/podcasts\/2013-06-28-e7-p2.mp3\">mp3<\/a>) (<a href=\"https:\/\/www.nerds2nerds.com\/podcasts\/2013-06-28-e7-p2.ogg\">ogg<\/a>)<\/p>\n<p>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0438\u044f\u0442 \u043a\u043e\u0434, \u043a\u043e\u0439\u0442\u043e \u043e\u0431\u0441\u044a\u0436\u0434\u0430\u043c\u0435 \u0432 \u0447\u0430\u0441\u0442 2:<\/p>\n<pre>public static void Test()\r\n{\r\n    for (int i = 0; i < 10; i++)\r\n    {\r\n        try\r\n        {\r\n            int firstCallResult = GetIntFromService();\r\n            string secondCallResult = GetStringFromService(firstCallResult);\r\n            Console.WriteLine(\"Result: \" + secondCallResult);\r\n        }\r\n        catch (Exception ex)\r\n        {\r\n            Console.WriteLine(\"Error: \" + ex.Message);\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0441 callbacks:<\/p>\n<pre>public static void Test(int iteration)\r\n{\r\n    GetIntFromServiceAsync()\r\n        .ContinueWith(t =>\r\n            {\r\n                if (t.Exception == null)\r\n                {\r\n                    int firstCallResult = t.Result;\r\n                    GetStringFromServiceAsync(firstCallResult)\r\n                        .ContinueWith(t2 =>\r\n                            {\r\n                                if (t2.Exception == null)\r\n                                {\r\n                                    string secondCallResult = t2.Result;\r\n                                    Console.WriteLine(\"Result: \" + secondCallResult);\r\n                                    Continue(iteration);\r\n                                }\r\n                                else\r\n                                {\r\n                                    Console.WriteLine(\"Error: \" + t.Exception.Message);\r\n                                    Continue(iteration);\r\n\r\n                                }\r\n                            });\r\n                }\r\n                else\r\n                {\r\n                    Console.WriteLine(\"Error: \" + t.Exception.Message);\r\n                    Continue(iteration);\r\n                }\r\n            });\r\n}\r\n\r\npublic static void Continue(int iteration)\r\n{\r\n    iteration++;\r\n    if (iteration < 10)\r\n    {\r\n        Test(iteration);\r\n    }\r\n}<\/pre>\n<p>\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0441 async\/await:<\/p>\n<pre>public async static Task Test()\r\n{\r\n    for (int i = 0; i < 10; i++)\r\n    {\r\n        try\r\n        {\r\n            int firstCallResult = await GetIntFromServiceAsync();\r\n            string secondCallResult = await GetStringFromServiceAsync(firstCallResult);\r\n            Console.WriteLine(\"Result: \" + secondCallResult);\r\n        }\r\n        catch (Exception ex)\r\n        {\r\n            Console.WriteLine(\"Error: \" + ex.Message);\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0437\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0435 \u043d\u0430 yield \u0437\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438\u0440\u0430\u043d\u0435:<br \/>\n<a href=\"http:\/\/channel9.msdn.com\/blogs\/charles\/jeffrey-richter-and-his-asyncenumerator\">http:\/\/channel9.msdn.com\/blogs\/charles\/jeffrey-richter-and-his-asyncenumerator<\/a> - \u0438\u0437\u0438\u0441\u043a\u0432\u0430 Silverlight \u0437\u0430 \u0434\u0430 \u0441\u0435 \u0433\u043b\u0435\u0434\u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u044a\u0440\u0430, \u043d\u043e \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0435 \u0441\u0432\u0430\u043b\u0438 \u0444\u0430\u0439\u043b.<br \/>\n\u0414\u043e\u043f\u044a\u043b\u043d\u0438\u0442\u0435\u043b\u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 async\/await - <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/hh191443.aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/hh191443.aspx<\/a><\/p>\n<p>\u041e\u0431\u0449\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0438\u0442\u0435 - <a href=\"http:\/\/en.wikipedia.org\/wiki\/Generator_(computer_programming)\">http:\/\/en.wikipedia.org\/wiki\/Generator_(computer_programming)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0415\u043f\u0438\u0437\u043e\u0434 7 \u043d\u0430 Nerds2Nerds \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 28.06.2013 \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u0430 \u0442\u0435\u043c\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438\u0440\u0430\u043d\u0435 \u0441 yield \u0438 async\/await. \u0427\u0430\u0441\u0442 1 &#8211; \u043e\u0431\u0437\u043e\u0440 \u043d\u0430 \u043d\u043e\u0432\u0438\u043d\u0438\u0442\u0435 &nbsp; \u0414\u0438\u0440\u0435\u043a\u0442\u0435\u043d \u043b\u0438\u043d\u043a \u043a\u044a\u043c \u0447\u0430\u0441\u0442 1 (mp3) (ogg) 00:50 &#8211; \u043d\u0430\u0448\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0446\u0438 \u0441 6 \u043c\u0435\u0434\u0430\u043b\u0430 \u043e\u0442 \u0431\u0430\u043b\u043a\u0430\u043d\u0441\u043a\u0430\u0442\u0430 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u0430 03:10 &#8211; Google Maps \u0432\u0435\u0447\u0435 \u0431\u0435\u0437 \u043e\u0431\u043b\u0430\u0446\u0438 05:10 &#8211; Google \u043d\u0435 \u0438\u0441\u043a\u0430\u0442 \u0434\u0430 \u0442\u0440\u0438\u044f\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[20,21],"_links":{"self":[{"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=\/wp\/v2\/posts\/85"}],"collection":[{"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85"}],"version-history":[{"count":11,"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nerds2nerds.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}