<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by George on Medium]]></title>
        <description><![CDATA[Stories by George on Medium]]></description>
        <link>https://medium.com/@northerneyes?source=rss-14f14eeeefb2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0Ygtj7H0znxqFIkffsxfUg.jpeg</url>
            <title>Stories by George on Medium</title>
            <link>https://medium.com/@northerneyes?source=rss-14f14eeeefb2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:43:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@northerneyes/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Design of Everyday Things]]></title>
            <link>https://medium.com/@northerneyes/the-design-of-everyday-things-755195325835?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/755195325835</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[smartphones]]></category>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Sun, 12 Mar 2017 21:20:55 GMT</pubDate>
            <atom:updated>2017-03-12T21:20:55.334Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Would you like a pocket-size device that reminded you of each appointment and daily event? I would. I am waiting for the day when portable computers become small enough that I can keep one with me at all times. I will definitely put all my reminding burdens upon it. It has to be small. It has to be convenient to use. And it has to be relatively powerful, at least by today’s standards. It has to have a full, standard typewriter keyboard and a reasonably large display. It needs good graphics, because that makes a tremendous difference in usability, and a lot of memory — a huge amount, actually. And it should be easy to hook up to the telephone; I need to connect it to my home and laboratory computers. Of course, it should be relatively inexpensive.</blockquote><p>What a great prediction of smartphone by Don Norman from 1988.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=755195325835" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Доказательство Бога]]></title>
            <link>https://medium.com/inquam/%D0%B4%D0%BE%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D1%81%D1%82%D0%B2%D0%BE-%D0%B1%D0%BE%D0%B3%D0%B0-853ea60ab666?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/853ea60ab666</guid>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Mon, 16 Jan 2017 16:47:42 GMT</pubDate>
            <atom:updated>2017-01-16T16:47:42.570Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9hDMiJ4Qj0HWrOA6WcMORw.png" /></figure><p>В нашем мире учёные пытаются создать маленькие чёрные дыры, а Толстой создал свою маленькую вселенную в своих произведениях, которая находится в Толстовском пространстве-времени. Вы никогда не найдёте Толстого в его произведениях, как настоящий художник, он остаётся невидимым, растворённым в своих произведениях, но при этом он задаёт первый импульс (как большой взрыв в нашей вселенной), с которого события развиваются будто сами собой, но подчиняясь толстовскому пространству-времени, толстовским законам. Как часть его вселенной, в ней всегда присутствует определённая этическая составляющая Толстого, его учения, но она отнюдь не носит превалирующий характер, как и в реальном мире, она находится в хрупком равновесии с противодействующей силой — в этом гений Толстого.</p><p>Вот и наш мир, будто творение какого-нибудь гения “Толстого”, со своим пространством и временем, со своей этикой. И мы, как и герои Толстого, живём в этом мире, пытаемся в нём разобраться, а над нами незримо стоит гений, великий художник, который находится везде и нигде, он есть сама часть этого мира, он есть Бог.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=853ea60ab666" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inquam/%D0%B4%D0%BE%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D1%81%D1%82%D0%B2%D0%BE-%D0%B1%D0%BE%D0%B3%D0%B0-853ea60ab666">Доказательство Бога</a> was originally published in <a href="https://medium.com/inquam">Inquam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[О свободе и писательстве]]></title>
            <link>https://medium.com/inquam/%D0%BE-%D1%81%D0%B2%D0%BE%D0%B1%D0%BE%D0%B4%D0%B5-%D0%B8-%D0%BF%D0%B8%D1%81%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D1%81%D1%82%D0%B2%D0%B5-8bd49a8b2a72?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bd49a8b2a72</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[freedom]]></category>
            <category><![CDATA[review]]></category>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Sun, 15 Jan 2017 11:00:16 GMT</pubDate>
            <atom:updated>2017-01-17T00:13:52.676Z</atom:updated>
            <content:encoded><![CDATA[<h4>По мотивам этой ужасной статьи <a href="https://vc.ru/p/freedom-life">https://vc.ru/p/freedom-life</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOI-uwqsVFX7tZav7PhTWQ.png" /></figure><p>Несмотря на схожие взгляды между мной и автором этого бездарного опуса, это пример того, как не нужно писать. Какое ужасное косноязычие, абсолютно неудачно выбранные эпитеты, метафоры и сравнения, что называется, ради красного словца портить всю стилистику. Если ты возомнил себя писателем, то сразу нужно использовать вычурные слова, выражения? Но разве в этом мастерство писателя? Я знаю ещё одного человека, который совершает такую же ошибку. Это просто наваждение какое-то. Ведь нужно думать о чём пишешь, как пишешь и в каком стиле ты пишешь, думать над каждой фразой, а то получаются “турбулентное время”. Как вообще время может быть турбулентным?</p><p>Да и в целом авторское видение свободы очень примитивно. Ассоциация работы == рабства. Это распространение какого-то личного опыта на всё и попытка впихнуть его всем другим людям. Если автору не повезло с работой, это не значит, что у всех людей работа — это обязательно рабство и всем поголовно нужно быть одиночками-предпринимателями. Он хоть представил такое общество? Понятие свободы — это очень тонкое, очень сложно понятие. Когда я над ним стал задумываться, мнение, которое пытается навязать автор сей никудышной статьи, было для меня скорее комическим, забавным и упрощённым, и уж конечно я бы не стал делиться им со всем миром или даже писать о нём в свой собственный блог. Даже свои мысли о независимом разработчике я оставляю при себе. Как образованный человек, я никогда не обвиню ни одного человека, что он раб своей работе. От простого неуважения, я проявлю непростительную наглость и глупость. Наоборот, я завидую, а точнее я <em>рад</em>, что многие люди могут работать и спокойно работать, путешествовать, не строить из себя фиг знает пойми кого: Джобса, Тарковского и тд, что называется, просто быть самим собой. Поэтому понимание свободы каждый человек выбирает для себя сам. И ты должен уметь принимать эту точку зрения, уметь её понять.</p><p>На своём личном примере я убедился, что в хорошей компании замечательно работать. Да, быть наёмным работником. Но если тебя ценят, тебе платят хорошо, тебе нравится то, что ты делаешь, то я не вижу никаких минусов в такой работе. Если у тебя не свербят идеи изо всех мест, всё очень уютно и комфортно.</p><p>Но автор думает, что всем ужасно живётся, просто гнёт какой-то. Свергнуть его немедленно.</p><p>Для меня независимость скорее цель, чтобы себя полноценно и эффективно реализовать, реализовать все свои творческие силы на действительно важные вещи. Творить, чтобы была польза. И работа не устраивает порой только тем, что мои силы вылетают в трубу и мне не дают как следует развернуть все свои многочисленные идеи, свои знания, свои порывы, ко мне относятся крайне скептически. Поэтому я часто думаю о том, чтобы создать свою компанию или быть независимым/свободным разработчиком.</p><p>Насколько у людей поверхностное понимание вещей, никакого самоанализа и самокритики, что чуть покажется им оно оригинально, они начинают его навязывать всем остальным.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bd49a8b2a72" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inquam/%D0%BE-%D1%81%D0%B2%D0%BE%D0%B1%D0%BE%D0%B4%D0%B5-%D0%B8-%D0%BF%D0%B8%D1%81%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D1%81%D1%82%D0%B2%D0%B5-8bd49a8b2a72">О свободе и писательстве</a> was originally published in <a href="https://medium.com/inquam">Inquam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[About Estimation]]></title>
            <link>https://medium.com/@northerneyes/about-estimation-337c37721ce9?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/337c37721ce9</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Sat, 31 Dec 2016 12:34:51 GMT</pubDate>
            <atom:updated>2016-12-31T12:34:51.520Z</atom:updated>
            <content:encoded><![CDATA[<h4>from “Facts and Fallacies of Software Engineering”, Robert L Glass</h4><p><strong>Fact 8.</strong> One of the two most common causes of runaway projects is poor estimation. It is important to note that runaway projects, at least those that stem from poor estimation, do not usually occur because the programmers did a poor job of programming. Those projects became runaways because the estimation targets to which they were being managed were largely unreal to begin with.</p><p><strong>Fact 9.</strong> Most software estimates are performed at the beginning of the life cycle. This makes sense until we realize that estimates are obtained before the requirements are defined and thus before the problem is understood. Estimation, therefore, usually occurs at the wrong time.</p><p><strong>Fact 10. </strong>Most software estimates are made either by upper management or by marketing, not by the people who will build the software or their managers. Estimation is, therefore, done by the wrong people.</p><p><strong>Fact 11. </strong>Software estimates are rarely adjusted as the project proceeds. Thus those estimates done at the wrong time by the wrong people are usually not corrected.</p><p><strong>Fact 12. </strong>Since estimates are so faulty, there is little reason to be concerned when software projects do not meet estimated targets. But everyone is concerned anyway.</p><p><strong>Fact 13. </strong>There is a disconnect between management and their programmers. In one research study of a project that failed to meet its estimates and was seen by its management as a failure, the technical participants saw it as the most successful project they had ever worked on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=337c37721ce9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Puzzle of Motivation]]></title>
            <link>https://medium.com/@northerneyes/the-puzzle-of-motivation-815a16250d5a?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/815a16250d5a</guid>
            <category><![CDATA[remote]]></category>
            <category><![CDATA[rework]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Thu, 29 Dec 2016 18:35:32 GMT</pubDate>
            <atom:updated>2016-12-30T05:54:39.986Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fembed.ted.com%2Ftalks%2Fdan_pink_on_motivation&amp;url=https%3A%2F%2Fwww.ted.com%2Ftalks%2Fdan_pink_on_motivation&amp;image=https%3A%2F%2Fpe.tedcdn.com%2Fimages%2Fted%2F110884_240x180.jpg%3Flang%3Den&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=ted" width="560" height="315" frameborder="0" scrolling="no"><a href="https://medium.com/media/5942be7374bcab545e12b07c1b1ab2ca/href">https://medium.com/media/5942be7374bcab545e12b07c1b1ab2ca/href</a></iframe><p>This is a very interesting talk on TED. There are some things which I already know. The main idea is that the money can’t be enough motivation for a task which requires creative effort. After different tests (one of them is <a href="https://en.wikipedia.org/wiki/Candle_problem">Candle Problem</a>), they found that it only slows the task. Yes, for mechanical work money is a good reward, but not for creative.</p><blockquote>If you want people to perform better, you reward them. Right? Bonuses, commissions, their own reality show. Incentivize them. That’s how business works. But that’s not happening here. You’ve got an incentive designed to sharpen thinking and accelerate creativity, and it does just the opposite. It dulls thinking and blocks creativity.</blockquote><p>And the best motivation is to give a person a freedom, remove the restriction in the time or money. You should say: do what you want to do or how you want to do. Or you can give him free time for his projects. Examples are <a href="https://www.atlassian.com/">Atlassian</a> and <a href="https://www.google.com/">Google</a> (the talk was made in 2009 year, Google has changed today). Or you can allow staff to work remotely, etc.</p><p>So it doesn’t matter where the work will be done, how the work will be done or in which part of the world the employee will be located. The focus is on the employee’s conscience and that the wo</p><p>rk must be done. That’s all.</p><p>And it works. And it works very well, even from my experience. The problem lies in the company of course. If the company understands it everything is great, if not, this company is not for you.</p><blockquote>There is a mismatch between what science knows and what business does. Here is what science knows. One: Those 20th century rewards, those motivators we think are a natural part of business, do work, but only in a surprisingly narrow band of circumstances. Two: Those if-then rewards often destroy creativity. Three: The secret to high performance isn’t rewards and punishments, but that unseen intrinsic drive — the drive to do things for their own sake. The drive to do things cause they matter.</blockquote><p>All these ideas also related to <a href="https://37signals.com/rework">REWORK</a>, <a href="https://37signals.com/remote">REMOTE</a> и <a href="https://gettingreal.37signals.com/">Getting Real</a>, books which written by <a href="https://37signals.com/">37 signals</a> (now it’s Basecamp) and which I like very much and found and still finding many interesting, inspirational and useful information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=815a16250d5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Essence of Programming]]></title>
            <link>https://medium.com/@northerneyes/the-essence-of-programming-681a689c70fb?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/681a689c70fb</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[essay]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Wed, 28 Dec 2016 17:38:43 GMT</pubDate>
            <atom:updated>2016-12-30T05:57:38.204Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4oltp24KGS4%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4oltp24KGS4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4oltp24KGS4%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce6a2097b315f64868f71851906e0ff9/href">https://medium.com/media/ce6a2097b315f64868f71851906e0ff9/href</a></iframe><p>Apple created <a href="http://www.apple.com/swift/playgrounds/">a great application for iPad</a>. It helps kids to learn to code with <a href="https://developer.apple.com/swift/">Swift</a>. It looks like a game, where you need to code a program for your character to perform different tasks, go through interesting levels, etc.</p><p>At first, I thought that this idea is ludicrous. Because from my experience programming doesn’t look like that. You need a computer or a notebook with a full keyboard. How can you even learn something on iPad? It is not an instrument for writing a code.</p><p>But then I realized that this idea is not really bad, the more it’s great. Because in the center of this game is lying one simple thing, a wonderful one. You are not just writing a program for your character, but you are solving some problems, the character problems. And despite the fact that it is just a game, it grasps the essence of programming which, sadly to say, many developers have lost.</p><p>I know many good developers, who keep track of <a href="https://facebook.github.io/react/">react</a>, <a href="https://github.com/reactjs/redux">redux</a> and other good technologies, they are subscribed to a lot of interesting channels about programming. It is everything about a code. But didn’t they lose the essence of programming? It transformed to code for code.</p><p>Ask yourself, when was the last time when you used your programming skills to solve an actual problem in your life except for your place of work? Sometimes you don’t even solve any problems at work. You try to follow company’s needs, what CEO of a company wants. And occasionally they are only fictional company’s problems.</p><p>For myself, I’ve started to work on projects which solve actual problems, even if they are mine owns. For example, I made a <a href="https://developer.pebble.com/">pebble application</a> (yeah, I know, pebble almost is dead right now) which can control slides remotely. It was really cool. I didn’t use some fancy technologies. I didn’t even think about the beauty of the code, anything like that. But I solved my problem. And it was an unbelievable feeling.</p><p>Sometimes you don’t even need to write code at all. You can find some github projects, it is high chance that somebody wrote what you need. This happened for me with pebble, in fact, I took github project and adapted it. First, I was disappointed, I wanted to write it from scratch, but then I thought that it’s ok, to use someone else’s code. On the contrary, it helped me to solve my problem faster, saved my time.</p><p>I have a friend, <a href="https://medium.com/u/91e56913e1f1">Margarita Obraztsova</a>, who, I think, has a passion for things like that. She loves to code, she loves different hackathons, she loves to create some cool applications, even if they are just demo projects. She is very young, and she didn’t lose the enthusiasm for doing something, for coding something, for solving real problems. And the people who work with her (not all of them of course), often refuse to help her, to join hackathons, to join her projects. For them, it looks like coding is just a work, code for code, solving virtual company’s problems. But many companies do nothing it’s just a boring business. Sometimes you do something and then it becomes unnecessary for the company or you develop some admin’s stuff, hidden boring features, etc. And it seems, that you are just wasting your time for a code, which nobody will use.</p><p>Everything similar to this, a routine is killing the purpose of programming — the desire to make the world better, to solve people’s problems. Without it, you are becoming just a regular coder.</p><p>So look at the world wider and think, what can you make? How can you improve it? The most obvious things aren’t done yet, they are waiting for you.</p><blockquote>“Stay Hungry. Stay Foolish.” — Steve Jobs</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=681a689c70fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Пианист]]></title>
            <link>https://medium.com/inquam/%D0%BF%D0%B8%D0%B0%D0%BD%D0%B8%D1%81%D1%82-e566b31acc87?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e566b31acc87</guid>
            <category><![CDATA[пианист]]></category>
            <category><![CDATA[movie-review]]></category>
            <category><![CDATA[review]]></category>
            <category><![CDATA[movies]]></category>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Wed, 28 Dec 2016 12:48:21 GMT</pubDate>
            <atom:updated>2016-12-30T05:56:35.665Z</atom:updated>
            <content:encoded><![CDATA[<h4>Рецензия</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PlQHayag2fZD3DYJF7C0OA.jpeg" /></figure><p>Кинематографическая работа, которая получила многочисленные награды на всевозможных конкурсах от жюри. Работа, которая с первых минут, поражает тебя своей магической реалистичностью, полным погружением в Польшу в начале второй мировой войны, в семью евреев. Бесчеловечность и жестокость, гонения и холокост евреев, в фильме передан с безукоризненной точностью и потрясают до глубины души зрителя, погружая его в ад того времени.</p><p>Может быть эта безупречная по своей точности картина и является наиболее слабым местом этого фильма, превращая его из художественного в практически документальное кино, предоставляя зрителю самому разбираться, что происходит на экране.</p><p>До конца фильма, герои, если их так можно называть, остаются совершенно не проработанными персонажами. Нет никакого их развития, мы наблюдаем их как будто бы со стороны, как обычных людей, которых мы встречаем на улице. Главный герой не производит никакого впечатления, оставаясь на экране слабым, запуганным человеком, старающимся изо всех сил сохранить свою жизнь, проводя большую часть времени в различных укрытиях. Да, ему досталось очень нелёгкая судьба, пройти через все эти ужасы, издевательства, варварства и гонения нацистами евреев. Но главного героя от этого не делает, как не странно, героем. Он лишь участник, некоторая фигура, которая только наблюдает за тем, что происходит вокруг него, с его близкими и родными, практически не вмешиваясь в ход истории. Когда же дело доходит до восстания, в подготовке которого он к тому же участвовал, он избегает его непосредственного действия, скрываясь и только наблюдая по ту стороны стены как умирают его знакомые на протяжении нескольких дней, совершенно не выражая каких-то конкретных действия или даже эмоций.</p><p>Совершенно точно, что произведение основано на реальных событиях и пианист был реально существующим человеком. Но я задаюсь вопросом — нужно ли было делать именно ЕГО героем этого произведения и показывать все события вокруг него. Под конец фильма мы даже с трудом знаем о нём хоть что-нибудь, настолько не выдающимся он показан на экране. Ни один поступок его никак не характеризует. Даже несмотря на помощь в подготовке восстания, непосредственного участия он в котором не принимал, он так и остаётся всего лишь талантливым пианистом. Во время войны было куда гораздо больше талантливых людей, которые проявили свой характер и непокорность, активно участвовали против нацизма, и которых можно было бы взять в основу фильма. Даже люди, которые не принимали участие в войне, а записывали в этом время музыку, играли для оркестра, сделали намного больше, чем этот пианист. И в этом заключается парадокс этого фильма, который не оправдывает даже само его название. Только в самой последней сцене музыка, можно сказать, спасла нашего героя, когда его пожалел фашистский военный, как бы показывая лишь только то, что никому не чуждо высокое искусство. Простая случайность, везение.</p><p>Отсюда возникает ещё один вопрос — а какова вообще была цель этого фильма? Показать гонения евреев, варварство нацистов, предательство товарищей? Но причём тут тогда пианист? Какого цель этого главное героя на экране? Вечно скрываться от нацистких ищеек? Прятаться по углам, на квартирах людей, которые рискуют гораздо большим, чем он сам, скрывая его у себя. И именно эти люди являются главными героями. Именно люди вокруг него, которые ему помогают, жертвуют своей жизнью, всё ради того, чтобы спасти нашего пианиста и его талант. А наш герой больше превращается скорее в антигероя.</p><p>А тема гонения, холокоста и варварство нацистов над евреями уже обыграно множество раз. Но на этом не может быть построено художественное произведение, только документальная картина. В пианисте порой не чувствуется работы режиссёра, она подобна работе гиперреалиста в живописи, который запечатлевает только то, что видит, но при этом не привносит в свою работу частицу себя, частицу своего воображения, своего стиля.</p><p>С одной стороны хочется поблагодарить автора за то, что он воссоздал с исторической достоверностью все эти события, построив своё повествование вокруг одного слабого, бесхарактерного, но талантливого пианиста. С другой стороны, больше благодарить автора не за что. Фильм, оценку которому, можно дать только двойственную.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e566b31acc87" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inquam/%D0%BF%D0%B8%D0%B0%D0%BD%D0%B8%D1%81%D1%82-e566b31acc87">Пианист</a> was originally published in <a href="https://medium.com/inquam">Inquam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Modules]]></title>
            <link>https://medium.com/toughbyte/css-modules-a998f038bccf?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a998f038bccf</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[css-modules]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[css-in-js]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Mon, 26 Dec 2016 07:02:48 GMT</pubDate>
            <atom:updated>2017-11-27T17:42:28.069Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*uoqGpFFoU3l_IkxghfdO3w.jpeg" /></figure><p>Everybody knows that supporting CSS is always a problem.</p><p>People created different enhancements for CSS like <a href="http://lesscss.org/">less</a>, <a href="http://sass-lang.com/">sass</a>, <a href="http://stylus-lang.com/">stylus</a>.</p><p>People created different methodologies to write better CSS like <a href="https://www.smashingmagazine.com/2011/12/an-introduction-to-object-oriented-css-oocss/">OOCSS</a>, <a href="https://en.bem.info/">BEM</a>, <a href="https://smacss.com/">SMACSS</a>. And many of them work great, especially my favorite <a href="https://en.bem.info/">BEM</a>.</p><p>But the main problem with CSS is <em>global styles</em>. If styles are global, you can accidentally rewrite them, it is hard to support them. And we know from javascript world that global stuff is always, always a bad idea, pure evil. That’s why we’ve created AMD and CommonJS patterns.</p><p>And BEM, for instance, helps with that in some way, but you need to learn how to use it, and more annoying, you need to do it manually, what is not great at all.</p><p>So what is <a href="https://github.com/css-modules/css-modules">CSS Modules</a>?</p><ul><li>Some new framework?, — No.</li><li>Some complicated library?, — No.</li><li>Special language?, — No.</li></ul><p>If you are using <a href="https://webpack.github.io/">webpack</a>, <a href="https://webpack.github.io/">webpack</a> gives you CSS Modules for free, right out of the box.</p><p>But what exactly does CSS Modules? It removes global CSS from your code, that’s all, so simple.</p><p>Let’s look at the example. Let’s write some css as usual:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/adaac8578a9c2271d919d49a2f421ade/href">https://medium.com/media/adaac8578a9c2271d919d49a2f421ade/href</a></iframe><p>and then CSS Modules will process it for you and you’ll get something like that:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb736164c114bf0ae90373cba02de05e/href">https://medium.com/media/fb736164c114bf0ae90373cba02de05e/href</a></iframe><p>Beautiful, right? You can use the same class names for each module without worrying about to ruin something. Every style is now local by default. And it is really easy to use, just import css file like js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6cb1a208a86b2def87f543e66c1816f7/href">https://medium.com/media/6cb1a208a86b2def87f543e66c1816f7/href</a></iframe><p>Or with React:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a62c2bf94193e07c57f419b67d4f3b0/href">https://medium.com/media/8a62c2bf94193e07c57f419b67d4f3b0/href</a></iframe><p>This line from webpack config makes all the magic:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c36fd3fdb000b2fee4b23e722a4bd1e3/href">https://medium.com/media/c36fd3fdb000b2fee4b23e722a4bd1e3/href</a></iframe><p>But for production we can even better, what about CSS obfuscation for free!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/785488e03dcaeda13fee8719b82a4ac3/href">https://medium.com/media/785488e03dcaeda13fee8719b82a4ac3/href</a></iframe><p>But what if you still need global styles? Our world is not perfect, and we still need to use other third party CSS libraries/components, such as <a href="http://getbootstrap.com/">bootstrap</a>, <a href="http://foundation.zurb.com/">foundation</a>. And from time to time you need to override their CSS, even mix with your own.</p><p>And for that, we can apply some <a href="https://github.com/postcss/postcss">PostCSS</a> magic.</p><p>This is how it looks like. We can use <em>:global</em> modifier to define that particular class is global</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0178afae67b209eeebb94353821c232e/href">https://medium.com/media/0178afae67b209eeebb94353821c232e/href</a></iframe><p>One of the great advantages of CSS Modules it is easy to create <strong>themeable components</strong>, especially if you are using React. Components that have themes are really powerful and it is really easy to support them, add/remove themes.</p><p>We can define unique classes for themes and use it for components, for example</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/973b2c6c4bc2cfdfb8dd17669a865e73/href">https://medium.com/media/973b2c6c4bc2cfdfb8dd17669a865e73/href</a></iframe><p>and then in our component</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f833d48431f56dd172d2093ea6da2da3/href">https://medium.com/media/f833d48431f56dd172d2093ea6da2da3/href</a></iframe><p>I’m using themes for many common components like dropdown, combobox, multiselect, input, buttons etc. It is amazing how much it has increased reusability of components.</p><p>With CSS Modules it became really easy to add new components, modified the old one or remove obsolete components. I can’t remember any big problems with CSS Modules approach, only benefits. Especially if you have rapid development and a lot of stuff are changed really fast.</p><p>And… One more thing…</p><p>What about <strong>server rendering</strong> may you ask? And here we have almost no problems. We need just a little hack for it. It’s called <a href="https://github.com/css-modules/css-modules-require-hook">css-modules-require-hook</a>. Here is my config for it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4238fd175ac12321b8ea19786319fbec/href">https://medium.com/media/4238fd175ac12321b8ea19786319fbec/href</a></iframe><p>And from the <em>server</em> we can just call.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/416cd1baad1193e68b499f36a7a670e0/href">https://medium.com/media/416cd1baad1193e68b499f36a7a670e0/href</a></iframe><p>And that’s all. Now you have equal client and server code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a998f038bccf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/toughbyte/css-modules-a998f038bccf">CSS Modules</a> was originally published in <a href="https://medium.com/toughbyte">Toughbyte Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Evolution of Redux Action Creators]]></title>
            <link>https://medium.com/toughbyte/the-evolution-of-redux-action-creators-2973018bf2ae?source=rss-14f14eeeefb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2973018bf2ae</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux-saga]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[George]]></dc:creator>
            <pubDate>Mon, 26 Dec 2016 06:58:18 GMT</pubDate>
            <atom:updated>2017-07-27T15:38:21.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*TKkIwNH_VJFZQgfTFu3D4w.png" /></figure><p>So, what is <em>redux</em>?</p><p>Redux is a predictable state container for JavaScript apps. What does it mean? Let’s look at the <em>redux</em> <em>data flow</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*bvAMo9Ou8yI3-zzB3aoMnA.png" /><figcaption>Redux data FLOW</figcaption></figure><p>Data flow is fairly simple. Components invoke action creators via different event like <em>onClick</em>, <em>action creators</em> invoke different <em>actions</em> and <em>actions</em> come to the <em>reducers</em> and then <em>reducers</em> change the <em>state</em>. And the new state comes to the components. And here we are again.</p><p>An action is just a plain object, it is a payload of information that sends data from your application to your store:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79de7b237415666e7f9b7292c6ce793b/href">https://medium.com/media/79de7b237415666e7f9b7292c6ce793b/href</a></iframe><p>Reducers describe how the application’s state changes in response. Important to know, that reducers are pure functions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f91932d0586b7a1fd56c07f0786998d7/href">https://medium.com/media/f91932d0586b7a1fd56c07f0786998d7/href</a></iframe><p>As you see, actions go to the reducer and modify the state.</p><p>So, what is the role of action creator? Let’s look at the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a068a3a4ab7551d19f215eaa5f349aee/href">https://medium.com/media/a068a3a4ab7551d19f215eaa5f349aee/href</a></iframe><p>In the most trivial cases, action creator is a simple function that invokes the action. But what if we need something more? Like <em>async actions</em>? For that redux has <em>middleware</em>. Redux middleware provides a third-party extension point between dispatching an action, and the moment it reaches the reducer. And the most simple middleware for async actions is <a href="https://github.com/gaearon/redux-thunk">redux-thunk</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0eac8bb78c3f22e851b860727391faa0/href">https://medium.com/media/0eac8bb78c3f22e851b860727391faa0/href</a></iframe><p>In this case, action creator with redux-thunk will look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bcb655d5a9eaee23c8fe15713349e6c0/href">https://medium.com/media/bcb655d5a9eaee23c8fe15713349e6c0/href</a></iframe><p>This looks ok before we start to test it. Especially if we are using some <em>router</em>, <em>cookie</em>, <em>analytics</em>, different <em>services</em>,<em> </em>etc. Why? Our action creators are <strong>not</strong> pure functions. Though it is possible to test functions with side effects, I don’t like the mock hell, we can make our life easier.</p><p>So how can we improve?</p><p>The answer is <a href="https://en.wikipedia.org/wiki/Dependency_injection"><em>Dependency injection</em></a><em>. </em>In<em> </em>my opinion, dependency injection is one the most powerful design patterns.</p><p>We can rewrite our redux middleware with dependency injection (DI):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd36f137a6bc305d7d0e2de84cdea0ce/href">https://medium.com/media/dd36f137a6bc305d7d0e2de84cdea0ce/href</a></iframe><p>After that action creator with DI will transform to:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5cb0cc410b4e265c2d48b66bfe56e3b/href">https://medium.com/media/a5cb0cc410b4e265c2d48b66bfe56e3b/href</a></iframe><p>Now we can control all third parties services in our action creators. And we can easily test it, cause, yeah! They are <em>pure functions</em> now.</p><p>But we can improve even this approach. And it’s called <strong>r</strong><a href="http://yelouafi.github.io/redux-saga"><strong>edux-saga</strong></a>.</p><p>In my opinion, it is the most elegant way to write complicated action creators. Look at this beautiful code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5dc0320960053f34ea38ddc1f74f753c/href">https://medium.com/media/5dc0320960053f34ea38ddc1f74f753c/href</a></iframe><p>Maybe for the first time, it looks a little bit complicated. But in one single function we’ve defined the whole authentication flow. Isn’t it amazing?</p><p>How does it work?</p><p>The answer is <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators">g<em>enerators</em></a><em>.</em></p><p>Generators are Functions with benefits.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f730dcb4f546243572e8443cf6b97b7/href">https://medium.com/media/3f730dcb4f546243572e8443cf6b97b7/href</a></iframe><p>As you see it is really simple. But simplicity hides the power. Imagine, we can wrap the generators with promises and control their flow. And generators can use promises. This library is called <a href="https://github.com/tj/co">co</a> — generator based control flow.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba4d3080455a64e4c00873b009e3345a/href">https://medium.com/media/ba4d3080455a64e4c00873b009e3345a/href</a></iframe><p>So we get the synchronous execution of the asynchronous code. This is pretty cool.</p><p>So, redux-saga did the same but with full redux integration.</p><p>Let’s look at the simple example</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5a8fc0616a209e31c3fe4c2ec4b46259/href">https://medium.com/media/5a8fc0616a209e31c3fe4c2ec4b46259/href</a></iframe><p>What happens here?</p><p>we<strong> </strong><em>select</em> part of the state</p><p>then<strong> </strong><em>call</em> the api method</p><p>then<strong> </strong><em>put</em>(dispatch) an action</p><p><em>select</em>,<strong> </strong><em>call</em>,<strong> </strong><em>put</em><strong> </strong>are<strong> </strong>called<strong> </strong><em>effects creators</em><strong>. </strong>They are special functions which return <em>effects</em>. <em>Effects</em> are objects like instructions to the middleware to perform some operation. Because of that, it is easy to test sagas:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa1e75cbf759947830b7462a4edfd533/href">https://medium.com/media/fa1e75cbf759947830b7462a4edfd533/href</a></iframe><p>Because <em>effects creators</em><strong> </strong>return special objects, we can test against them, without calling actual functions.</p><p>The most powerful part of sagas, that sagas can be <em>daemons</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6e0c77efcb1eea6434b1687b1e732d10/href">https://medium.com/media/6e0c77efcb1eea6434b1687b1e732d10/href</a></iframe><p>In the example above, the saga has the endless loop, <em>take</em> listens for a specific action like <em>CHECKOUT_REQUEST</em> from our UI components. This action triggers <em>checkout</em>.</p><p>All watchers can be called from <em>root saga </em>which we call from the start of the application.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ce30cdcb8f684eeff436f36737f65d2/href">https://medium.com/media/7ce30cdcb8f684eeff436f36737f65d2/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f94ca16f8290d52c1b838c1b2142a08/href">https://medium.com/media/3f94ca16f8290d52c1b838c1b2142a08/href</a></iframe><p>Let’s look at some interesting redux-saga patterns.</p><ul><li><strong>takeLatest.</strong><em> </em>The first one can be useful to handle AJAX requests where we want to only have the response to the latest request.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c43f0420f172095267ee7d1e83cfb2b/href">https://medium.com/media/7c43f0420f172095267ee7d1e83cfb2b/href</a></iframe><ul><li><strong>takeEvery</strong> allows multiple saga tasks to be forked concurrently. Useful for some UI actions, when you need to process each action.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1ce8fabba79f950057e9acd6c6d215d/href">https://medium.com/media/b1ce8fabba79f950057e9acd6c6d215d/href</a></iframe><p>And… One more thing… <strong>Server rendering.</strong></p><p>It is fairly simple. Imagine we have some common <em>createStore.js </em>module.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07b60f46475497231aa5e08a90d06dde/href">https://medium.com/media/07b60f46475497231aa5e08a90d06dde/href</a></iframe><p>The last line is important. In this case <em>the client side </em>will look like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5188199f5f32715deb608035f8b97de9/href">https://medium.com/media/5188199f5f32715deb608035f8b97de9/href</a></iframe><p>And <em>the server side</em>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a9b7bab7de38f429711626d7ee0d0500/href">https://medium.com/media/a9b7bab7de38f429711626d7ee0d0500/href</a></iframe><p>Where <em>match </em>is part of <a href="https://github.com/ReactTraining/react-router">react-router</a>. We call static method <em>fetchData</em> of our react components, then wait when saga will be done using <em>saga.done.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2973018bf2ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/toughbyte/the-evolution-of-redux-action-creators-2973018bf2ae">The Evolution of Redux Action Creators</a> was originally published in <a href="https://medium.com/toughbyte">Toughbyte Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>