<?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 Ivn Cote on Medium]]></title>
        <description><![CDATA[Stories by Ivn Cote on Medium]]></description>
        <link>https://medium.com/@ivn_cote?source=rss-7a23b8f64e4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*acfQEkAKfbi68YRebm27vw.jpeg</url>
            <title>Stories by Ivn Cote on Medium</title>
            <link>https://medium.com/@ivn_cote?source=rss-7a23b8f64e4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:45:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ivn_cote/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[New Age of Discovery in Virtual Space]]></title>
            <link>https://medium.com/@ivn_cote/new-age-of-discovery-in-virtual-space-f28f5d30ba4f?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f28f5d30ba4f</guid>
            <category><![CDATA[future]]></category>
            <category><![CDATA[history]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Mon, 28 May 2018 22:11:58 GMT</pubDate>
            <atom:updated>2018-06-24T20:42:07.797Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHiCOOI07vu0i22xntHLHQ.jpeg" /><figcaption>Maps are a great deal of discovery. They suit many purposes, including planning next step during the journey and reflecting glory on successful voyages. This map is a nautical chart by <a href="https://en.wikipedia.org/wiki/Pedro_Reinel">Pedro Reinel</a></figcaption></figure><p>We had discovered the Internet. Then we sent away all the heroes from there and populated it with small teams of software engineers.<br>The Internet is our ocean where we drift towards rich lands. We use big boats to overcome competitors and pirates. So the main point of all our activity is not these ships and technologies we are proud of. I mean, they’ll all be in the museums one day. The goal, however, is discoveries, new lands, and the new history.</p><p>Some people view history as being cyclic. What I see is that the time of the Age of Discovery (also known as the Age of Exploration) has many familiar props with startup boom we are witnesses. There is no way of predicting the future, but I believe there is an excellent way to enhance our vision of now by getting the bigger picture.</p><p>I’m not a historian, and my analysis is remarkably simplified. Let’s discuss only a few aspects of the Age of Discovery events: investments, teams, routes, and technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*g91sXWHU88mkDYSndKTH9w.jpeg" /><figcaption>Greenland discovery is one of my favorite stories. How was it even possible to cross the Atlantic in northern part using relatively small ships? However, Vikings had such strength of the mind to do it.</figcaption></figure><p>Everything starts with a team. How to get people on board? Who are they? They are special because the task is to go beyond the horizon. All the instincts and gained knowledge say that it’s reckless, dangerous, and barely possible. The team is gathered from two sources: those who are either despondent or crazy, and those who believe in the idea. It points out two different mindsets. I doubt it is about diversity, but in a way such kind of individuals have somewhat different experiences and world-views. To communicate within a team, both types need to be attentive and empathise — which helps to resolve many complex issues.</p><p>Some team members should be experienced and have up-to-date practical skills. A few centuries ago people spoke about know-how in making ships. Now we need different skills and science behind them, though the main aspects stay the same: continuous improvements of practical artifacts and tendency to use risky bleeding edge technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*CvGC4zH74MD8ftR7zSGgJw.jpeg" /><figcaption>© Smithsonian Institution Libraries. To create maps, a cartographer has to know the current locations during the times the ship is anchored. It means knowing longitude and latitude of the place. It’s amazing how a very compact but sophisticated tool can be used for it even now. It’s called astrolabe, and the principle of work is not that complicated to grasp, especially provided by a right speaker</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FyioZhHe1i5M%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyioZhHe1i5M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyioZhHe1i5M%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e93afaa4e092a8da243b9d989e126366/href">https://medium.com/media/e93afaa4e092a8da243b9d989e126366/href</a></iframe><p>Speaking about risking games, the adventurous idea of getting into the open ocean needs a lot of investments. Again, here we have two types of thinking: rational judgments on money and a real craving for new experience. I mean, somebody is always taking the same roads, and others hate repetitions, right?</p><p>Routes are different. They are essential since the chosen route determines a team destiny. The choice is hard, and it is more or less a guessing game, based on stories, legends, and expert opinions. There are pirates and terrible weather both working as a random fate. Moreover, sometimes you think there is a space so you can move, but it is a new land. Such kind of discovery could be a treasure but could be just a time wasting experience, not to mention the case when natives would eat you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*3ACCygYsyWHun38ThHNWhA.jpeg" /><figcaption>Ming China had its short period of so-called treasure voyages, but unfortunately, they were stopped in 1433 with the policy of isolation rise. Many authors believe it was a lucky moment for Europe. As you can get from the picture, Chinese vessels were way bigger than the Columbus ships.</figcaption></figure><p>What are we going to discover next? We’ve already reached these new islands of DevOps and agile on our cloud computing ships. They are far from the SAAS continent with all these waterfall thinkers. So, shall we move further, to the decentralization idea? With all this freelance culture, remote working, diversity, and idea of work-life balance I guess the next discovery could be the socialism itself. Very practical, without sensations. The new order of things like the one big companies have to offer for their employees: all are equal with a flat structure, meals are included, free schedule, personal development, and medical care are must have. Sounds crazy right? No surprise that nobody is looking for it intentionally. All are worried about spices from India which are traded for a high price. But I’d like to warn that new lands are the destiny! You think you are bringing a new territory to your king, but in fact, you are changing history. It turns out humans’ virtual reality influences the real world and real people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f28f5d30ba4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Iron Triangles △ of Management]]></title>
            <link>https://medium.com/@ivn_cote/the-iron-triangles-of-management-de1c41467f0d?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/de1c41467f0d</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Wed, 17 Jan 2018 21:41:37 GMT</pubDate>
            <atom:updated>2018-01-17T21:43:07.341Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kNLj8Zt_Ocvb-v5nYGvdnw.png" /></figure><p>Since the very beginning of my involvement in web software development, I often hear and even tell that we tend to find compromises in our decisions. When we want to make a product perfect, it’s somewhat unrealistic. Therefore we as a team (or maybe a person in charge) should think and select what is crucial for the project finding the trade-off between such criterias like a deadline date, a number of features, and possible workarounds in their implementation. Long story short we get the so-called “iron” triangle.<br>When I started paying attention to this concept, I’ve discovered that the interpretations vary and basically you need some experience to feel this theoretical argument. After some time I’ve come to my own conclusions on the subject I’d like to present in this article.</p><p>Let’s start with the trade-off mechanics. Having a triangle, we know the three points which should be balanced. The simplest model will be X, Y, Z, i.e., three axis in 3D Cartesian coordinates. Hence you can select three points each would have coordinates like (x, 0, 0) (0, y, 0) (0, 0, z). The more values x, y, and z, the bigger will be the triangle formed by these points. The natural constraint will be the fact that the triangle couldn’t be bigger than some certain value. Say an area of the triangle can’t be more than 100 (for a proper model we should choose 1, but 100 is more visual). Then x, y, and zare tight together by a simple mathematical equation. I’d say it’s pretty natural model for the trade-off. Please find more details in the second part of this article.</p><p>Practical consideration concerning the mechanics is that once you increase x, you probably should decrease y, or decrease z, or maybe even both in order to compensate the growing value of the triangle area.</p><p>I suppose previous mathematical arguments are a bit abstract. So let’s return to the object we are considering, the project management and evaluation. As I can see from some references, the rather primary and general properties of any project are <strong>quality, resources, and risk.</strong> I don’t want to example waterfall practices, let’s pick something from our common “agilish” experience. Say the new project is an MVP of a promising software idea. From the business perspective, it’s a risky initiative. So requirements on quality are usually pretty low. And allocated resources too, except timing. MVP has a deadline, but not as a concrete date, but as the phrase “the sooner, the better.” As you can see, trade-off here is somehow easy to establish. Though, it could be not the best solution for any possible MVP. You as a manager can choose the better quality, asking for more developers granted, and setting a release day in the far future. I hope, you’ve got the idea. Quality, resources, and risk form the base “iron” triangle in a software business. Though, I don’t think developers argue about the trade-off between this properties too often. It’s mainly because the risk implies a business consideration, not a technical one. Hope engineers participate in the same decision process for pure technological projects.</p><p>But this triangle in only the first one in series of trade-offs. The next choice is between such properties as <strong>schedule, scope, and budget.</strong> Please mention that the first two entities are a part of the parameter from the previous triangle namely resources. Assume the company has an agile approach to operations. Then resources consist of time and budget only because teams’ size is fixed. I mean, it is fixed not precisely, but teams with more than seven people having much more troubles in agile iterations, so it is advised to have teams of 5. Now, with the new “iron” triangle, the core goal is to define the scope so that the resources are sufficient. I suppose it’s a tricky task since I didn’t see it happening efficiently. Naturally, we can draw a roadmap, but still, the schedule would be optimistic, or even unrealistic at all. Agile practices are precisely for this case as you know. Having an iterative process, we can not only change our initial intuition-based estimations but also reevaluate the scope of the project.</p><p>And routinely we would have the third triangle of decisions, which describes each and every sprint for the team. The properties for it are defined in more sophisticated manner, but I bet you’ve heard them. <strong>Doing right things, doing things right, and doing fast.</strong> Those are incompatible features. Product owner, technical lead, designers, developers, all others should find themselves on one side of this equation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HTacA-hkmpQShkIN07QluQ.png" /></figure><p>“Doing fast” principle relates to the schedule property in the second triangle. That’s why product owners usually tend to remind everybody that there is a necessity to hurry up. I think the POs should focus on “doing right things” point of view. Yet the timing problem has to be actual for the whole team. If there are issues with that, a scrum master is a right person for supervising them. I want to say, the principle “doing right things” is mainly about the scope. Contrarily “Doing things right” relates to the first triangle’s property which is the quality. And for me, this is a sign that “doing things right” can’t be ignored. In my experience, there are often situations when a team cares only about getting shit done according to a POs vision, and that’s all. Every team should have a person who would balance discussions and return the quality back to the appropriate place. I believe technical leaders have to know about this teams’ fallacy so that they can prevent it.</p><p>The following quote I have mentioned in <a href="https://medium.com/@ivn_cote/the-technical-leadership-challenges-bb7f2317f6f">the previous article on leadership</a>, but I’d like to repeat it here. Peter F. Drucker said that “Management is doing things right; leadership is doing the right things.” This phrase is a bit confusing in regards to my previous thoughts since it assumes POs argue about “doing the right things” with a project scope argument. Meanwhile, tech leads become managers (in Drucker’s definition) with the quality concern which is “doing things right.” After some period of resistance to this interpretation, I’ve accepted it. Product owners do need to pay more attention to the lead role and step aside from management duties. It also means that if the company always chooses everything besides the quality, then it has a lack of proper management. Of course, I see a difference between the notion of quality in the first “iron” triangle and one from the last. But they are apparently connected! If business people pay attention to the project and assume it will be perfectly done, it matches to the software quality in the end, since it means scalability, maintainability, and innovations.</p><p>(It’s the end of the meaningful part of the article. The next page includes some playground for the idea of trade-off. It just for fun)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X64YcIXY4_XLDpcir2OBnw.png" /><figcaption>The idea of trade-off in 3D space. The illustration on the right shows the dependency between chosen point on the axis that are bound by the equation of the triangle area.</figcaption></figure><p>For me, it was pretty interesting to make an actual model for the “iron” triangles. I’ve started with a representation of only one triangle which describes the trade-off between three entities. In the first part of the article, you can find the initial, pretty natural model. But this 3D model could be hard for an explanation, and it’s not visual enough because it will be represented on 2D space as a projection which could be misleading. So we should try find a 2D model for it. After a short reflection, I decided to try polar coordinates instead of Cartesian. This tool gives us pretty clear interpretation of measures and a nice picture in the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7yIIeyOr_GuExBGqnrMv3Q.png" /><figcaption>The triangle can be described shorter and nicer in polar coordinates.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1TGDD8CMyBaBNOEn-8UvDA.png" /><figcaption>The model in polar coordinates gives us this equation as a boundary for having three different entities which require a balance between them. The equation itself says that chosen values R1, R2, and R3 form the triangle which area can’t be bigger than 100.</figcaption></figure><p>One small detail was still an object of concern. How to get a clear understanding that once we increase something in one place it will cause a decrease in other values? So I’ve come to the illustration of the “iron” triangle as a equal sides figure vertices of which should lie on three different circles. The last constraint is pretty powerful in terms of forcing us to select the points with prioritization approach. I mean once we’ve done with two points, the last one is automatically defined, cause it should lie on the certain circle and be equally distant from previously chosen points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQJUeyimnm0BKNuhVz39yg.png" /><figcaption>See the white triangle? It describes the current balance between three values we want to balance. Next, let’s try to increase efforts in one particular property (it’s depicted as a green delta on the illustration). Then we would have an automatic decrease in two other values.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iRFrvOI6hmdX2q9MCDCS_Q.png" /><figcaption>In some cases, we can save the balance by having the decrease in only one value. Also, you can notice that every circle has it’s own measurement axis. Of course, it could be simplified to having one global axis.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UA4BwZm-TEvch7CFLwnbDQ.png" /><figcaption>You can get very different ideas by trying to achieve the balance of this triangle bounded by the circles. And I believe these ideas help to feel the different situation in real projects evaluation.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de1c41467f0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Technical Leadership Challenges]]></title>
            <link>https://medium.com/@ivn_cote/the-technical-leadership-challenges-bb7f2317f6f?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb7f2317f6f</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Tue, 28 Nov 2017 18:47:13 GMT</pubDate>
            <atom:updated>2017-11-29T23:59:23.047Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*MSKbNggnxZZh9sWy46KoQA.png" /><figcaption>art by ANDY GILMORE</figcaption></figure><p>Technical leadership always seemed to me a bit different from a general people management. But at the core, it is the true leadership.</p><p>I’ve worked with talented and awful tech leads. I’ve been in this role too for a while. I’ve participated in groups with non-hierarchical structure. And still, there is no clarity for me how it should work.</p><p>The essay is trying to address this question. It contains another’s experience mainly and my interpretation of selected topics.</p><p>The beginning is always a team. People are crucial for any initiative starting from commercial startups to non-profit purpose businesses. But all we know for sure is that any team sucks. Talking about technical folks, i.e., engineers and developers mainly, it is worth mentioning that they are like the cats. You basically can’t just organize them as perfect soldiers. It’s more likely you’d gather an army of artists. Discipline isn’t the main issue here. We are living in a time of the remote offices and widespread of freelancers’ culture. At some point, you can expect a good skill of self-management. But there are problems on a technical coordination level and with the communication inside a team. Everybody complains about such things happening. But only tech leaders hate it so much they are trying to solve the problem. They are crazy enough to think that they can do something. Let’s call it courage.</p><p>An essential approach to keeping things in order is discipline. Time management and working agreements become the constraints for possible team creativity, and moreover, they form a temp of the everyday work melody. It will be a good practice to follow the rule from <em>the book “Design Leadership”</em> which states: “Avoid mistakes by developing contracts and documentation to make project expectations clear to everyone.”</p><p>It’s especially important because everyone inside the tech team is a lazy cat with his own agenda. Besides, tech leads are often dealing with people outside the team who have specific targets and ideas. It turns out that tech leads work with equal weight partners all the time. Probably, the manager has a nominal authority. Not a surprise, it doesn’t work in graph-structured organisations. At least because of that, a tech lead should be convincing. I’d say words, promises and talks are sufficient in the beginning only, all that really matters is action. One of the most important lessons I’ve got from my lead experience is that trust is a determinant for establishing good working relationships. Achievements with real engineering tasks are the first steps to trust. Another footing is warm communication on the personal level. Of course, I don’t think a tech lead should be a friend to everybody. But it’s usually possible to find a common language at least. And as soon as tech leadership also includes some people management, tact should be shown to all colleagues. Sometimes developers experience very dramatic personal circumstances, and being empathic would be great! Repeating the lovely phrase of an ordinary management book, “building trust with the team is the fastest way to delegating success.”</p><p>Summarizing all aforementioned, <strong>leadership is a matter of intelligence, trustworthiness, humaneness, courage, and sternness</strong>. That is not my concept, it’s a translation of the quote from “The art of war” by <em>Sun Tzu</em>, who was an ancient Chinese general. There is an old commentary on this quote clarifying a meaning of each feature. “Intelligence involves the ability to plan and to know when to change effectively. Trustworthiness means to make people sure of punishment or reward. Humaneness means love and compassion for people, being aware of their toils. Courage means to seize opportunities to make certain of victory, without vacillation. Sternness means to establish discipline in the ranks of strict punishments.” I couldn’t say better!</p><p>Though I should admit all these ideas some time ago were so boring and obviously trivial to me that I’d call them bullshit. Being a classical smartass with a mathematical background I believed mainly in rational judgments and had some typical nerdy biases. For example, a prejudice that technical people are better in fraud detection, and in logic thinking generally. But the real point of frustration for me was a discovery that teaching others is not always the best option. Coaching will suit a tech lead more. It means giving questions instead of answers. And being the smartass with answers for everything is not a good idea. At the same time, once you ask a question be prepared to deal with wrong answers! More broadly, create an environment where failures can lead to personal and professional growth. As a technical lead one has to control that such kind of failures is not critical for the business. Once you propagate your vision and ready answers, be prepared for disagreement. We are talking here about a value of the healthy conflict and having a team environment where it is safe to disagree. Tech leader should set a communication culture. Already assembled teams have their own language. If it includes discrimination, manipulation or fears, it’s better to break such a system.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl2SqjtvN3C0nuQR3i%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Ftrippy-abstract-pi-slices-l2SqjtvN3C0nuQR3i&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl2SqjtvN3C0nuQR3i%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/04904e89312e1abd7a7fa40dccbb1b6c/href">https://medium.com/media/04904e89312e1abd7a7fa40dccbb1b6c/href</a></iframe><p>I see a big difference to work in a transparent, open-minded, and diverse environment. It includes working in a distributive structure. What is a practical distinction between a lead and any other teammate in this case? I’d say they have various roles. The tech lead should be mature enough to propose strategic solutions, like legacy consideration, and a conclusion about refactoring, along with appropriate cleanup. In the situation of open and transparent culture, such decisions should be supported or rejected. Otherwise, they are just instructions, and there is a lack of the team responsibility for mutual efforts and failures. And there is no team, therefore. American researcher <em>Peter F. Drucker</em> said that <strong>“Management is doing things right; leadership is doing the right things.”</strong> The tech lead role is about pointing a proper way for doing right things.</p><p>Sometimes it also means to be alone. The reason is that a leader only can see a window of opportunities in the place where everybody sees a wall. <em>Ben Horowitz</em> writes about it very brightly: “The innovator can take into account everything that’s possible, but often must go against what she knows to be true. As a result, innovation requires a combination of knowledge, skill, and courage”. There are several stories about being alone during strategic decision making in his book <em>“The hard things about hard thing”</em>. It can’t be easy. Sure, a beginner would be fascinated by all freedom and vanity. But the responsibility presses hard so that a leader can get in a permanent loop of the self-discussion. Horowitz calls it the Struggle. “The Struggle is when you are having a conversation with someone, and you can’t hear a word that they are saying because all you can hear is the struggle.” I do hear the word “burnout” in that phrase. Nobody wants to have an experience like that.</p><p>But even considering this risk, it’s worth it, because tech leads make the difference in companies. The last <em>DevOps Report 2017</em> has findings that The characteristics of transformational leadership are highly correlated with performance. These characteristics are very practical and obtained by researchers (Raerty, A. E., &amp; Griin, M. A. Dimensions of transformational leadership: Conceptual and empirical extensions) so let’s name them.<br><strong>Vision.</strong> Has a clear concept of where the organization is going and where it should be in five years.<br><strong>Inspirational communication. </strong>Communicates in a way that inspires and motivates, even in an uncertain or changing environment.<br><strong>Intellectual stimulation.</strong> Challenges followers to think about problems in new ways.<br><strong>Supportive leadership.</strong> Demonstrates care and consideration of followers’ personal needs and feelings.<br><strong>Personal recognition.</strong> Praises and acknowledges achievement of goals and improvements in workquality; personally compliments others when they do outstanding work.</p><p>Tech lead puzzle could quickly become a bullshit bingo. We hear all the same buzzwords. Devops, microservices, agile, diversity etc. The main advice here is don’t play the game and stay real.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb7f2317f6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[No KISS for CSS-in-JS]]></title>
            <link>https://medium.com/@ivn_cote/no-kiss-for-css-in-js-a749960b0b6b?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a749960b0b6b</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Sat, 24 Jun 2017 18:57:43 GMT</pubDate>
            <atom:updated>2017-06-29T15:38:25.530Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Disclaimer: </em></strong><em>This article is very opinionated. Please use whatever you want. I highly advise you to employ different techniques for different applications, so you can compare them on real use cases regarding your projects. All the following points are about the “mathematical point of view”, i.e. I’m just trying to describe the perfect world of web development.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*FXDcGHrWbEB2xivVmzq78A.jpeg" /><figcaption>photo by Mitch Dobrowner</figcaption></figure><p>Not so far ago, the use of React <a href="https://medium.freecodecamp.com/css-in-javascript-the-future-of-component-based-styling-70b161a79a32">triggered</a> a broad discussion of CIJ in component-based development. This topic is still very hot. Two presentations out of 11 at the last CSS conference in Berlin were devoted to this subject. I’m not even speaking about numerous articles and <a href="https://github.com/joeshub/css-in-react">projects</a> which are trying to compete for the developer audience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*kv1pS3L91vZO321TjpM8tA.gif" /><figcaption>Joey Tribbiani smiles as Santa is talking about CIJ</figcaption></figure><p>But CSS-in-JS is not about developer experience only; it also tries to solve the UX problem and push component-based development forward. On top of that, CIJ tangles and confuses the many aspects of frontend development, thus contradicting the KISS principle and the UNIX design principle of making single purpose tools (programs). I’ll go into the details later, let me first emphasise why the aforementioned principles are useful. Different generations of developers start with different languages/frameworks (and market situation of course) so they can’t just set the rules for the next developers. It’s life. It is still crucial to distil one’s experience and propagate it further, though: UNIX principles are part of such precise and laconic knowledge for smooth development. We can follow them and be happy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*nFtJZG6TZdgPsVT1cQQ-uA.gif" /><figcaption>Knowledge transfer</figcaption></figure><p>What’s wrong with CIJ? The brief answer will be that it positions itself as a substitution for CSS. Even more: despite the fact that CIJ is only a subset/superset of CSS, CIJ advocates like Mark Dalgleish tell us that the approach will solve problems across platforms, not only in web. Let’s discuss the appearance of these new libraries in web development. Before CIJ, we had projects for inline style management inside React components. They solve the problem of scoped CSS selectors by using the highest CSS specificity. So a developer could be sure that the component would have a certain presentation on the web page. For mature developers, it was no silver bullet, of course; they used preprocessors for code management and naming convention for maintainability. Then CSS modules emerged with a solution for scoping CSS. People mainly started using it for its simplicity. I’d say that Shadow DOM styling is much more promising, but Web Components never received so much hype. So CSS modules set meaningless class names for the DOM elements just in order to solve the scoping problem. CIJ combines this concept with inline style paradigm of putting all the CSS rules along with their logic right into javascript file. Defenders of CIJ contend that this isn’t the inline style approach anymore and that we can solve many problems at once. It’s a strong statement. But please, do not try to solve all the problems at the same time! Especially no need to reimplement the CSS specification in javascript in order to support the same set of rules on different platforms (I’m talking about flex implementation for react-native particularly).</p><p>At this point, I’d like to be more concrete and give you more examples. Having followed the CIJ topic for several last months and read some pro and contra articles, I can recommend you several authors. They will give you a variety of reasons why setting up CSS in JS is generally not a good idea.<br><a href="http://keithjgrant.com/posts/2015/05/against-css-in-js/">http://keithjgrant.com/posts/2015/05/against-css-in-js/</a><br><a href="http://jamesknelson.com/why-you-shouldnt-style-with-javascript/">http://jamesknelson.com/why-you-shouldnt-style-with-javascript/</a><br><a href="https://medium.com/@gajus/stop-using-css-in-javascript-for-web-development-fa32fb873dcc">https://medium.com/@gajus/stop-using-css-in-javascript-for-web-development-fa32fb873dcc</a></p><p>These guys are really good in terms of their impact on the community, I mean, they are not just talking and complaining like myself. You can trust them ) Some of the CIJ problems mentioned in the articles are worth repeating here.</p><ul><li><strong>CIJ does not mean you don’t have to learn CSS. </strong>Anyway, as a frontend developer you should know about the CSS box model, the specificity of selectors, and many other aspects. Some prefer to restrict themselves by using a pre-defined set of rules for building UI. It could be flexbox usage only or sticking to a specific grid system like Bootstrap. Nevertheless, knowing all CSS possibilities gives you flexibility and freedom.</li><li><strong>CIJ is an additional layer of abstraction in your project.</strong> It sounds like a usual thing in engineering. I mean, we always put different layers together for a perfect result. But in the case of CJS, the layer is not necessary and potentially costly. Once there is a problem in a CSS code, it will be hard to define which layer contains the issue. It is still the early days of CIJ, and the debugging process (as well as wide support in IDEs) is far from perfect.</li><li><strong>CIJ does not help to communicate inside the team.</strong> There should be a common language for a such communication. Many designers can understand and write CSS files. And there are people who are professionally engaged in markup creating only. How do you see them communicating with the CIJ world? Do you want them to understand a component system written in javascript? I don’t think so.</li><li><strong>CIJ approach makes your code even more tangled.</strong> Some developers like to place CSS rules right into a javascript file, but it explicitly violates the separation of concerns principle. CSS was created for visual representation. It is a powerful concept in terms that once we want to change this representation, we could modify the CSS file only. Well-designed components don’t require markup modification in such cases.</li><li>CSS is a purely declarative language; for that very reason it is so powerful. But <strong>CIJ tends to be imperative.</strong> We are losing here.</li></ul><blockquote>This is the Unix philosophy. Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.</blockquote><blockquote>Doug McIlroy</blockquote><p>Let’s continue with a StyledComponent apology. At the last CSS conference in Berlin, Glen Maddern gave some reasons why he had written this library. He said there was no need to use additional libraries like PostCSS in order to bundle styles. Instead you can use the usual JS modules. He argued that file transformations are not so transparent compared to a set of programmatic rules. Seems to be good so far. Then he mentioned that the syntax of the library was SASS inspired. Let’s stop here. If they have changed the syntax, it is not classical CSS anymore, right? It is a superset or a subset, same difference. But combining a building tool like PostCSS and syntax sugar like SASS you mess with separation of concerns. I’d compare such an approach with a very unexpected situation when a chef starts making a sweet cake with meat inside offering it as a substitution for the ordinary lunch of a main dish and a dessert. The same thing has happened to the author of JSS Oleg Slobodskoy, who tangles together very different JSS targets. Some of these features are specifically performance-oriented, others are about code maintenance. So now everybody loses the purpose of the tool and its main use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*FBlPk1QhUzfjDEpmIEpZ4g.gif" /><figcaption>Joey Tribbiani enjoys eating custard, jam, and meat</figcaption></figure><p>Besides, the performance arguments are especially speculative. I was involved in web optimization topic for a while, and since then I believe it is really a separate part of the development process. When Glen tells us that the critical CSS issue is magically solved by CIJ, I start thinking that this specific problem is only a small piece of the huge puzzle called web performance. And <a href="https://engineering.hellofresh.com/the-css-in-js-battle-89c34a7a83ea">when good guys compare</a> different CIJ libraries looking for the most effecient bundle size, I’m really concerned that it could have no relation to my SPA project, because the big bundle problem should be solved in another dimension.</p><blockquote>If you optimize everything, you will always be unhappy.<br>Donald Knuth</blockquote><p>Just to be clear, please start from the beginning: the user. Yes, performance is a user-centered metric, and we have a very good methodology to apply here called <a href="https://developers.google.com/web/fundamentals/performance/rail">RAIL model</a> developed by Google. It helps you understand the criteria, and then you can use the Lighthouse tool to improve the performance for your particular application. CIJ could not be a performance tool because it already has another purpose: code maintenance. And just to be consistent, some of the good examples of CSS infrastructure tools are CSSO and Autoprefixer.</p><p>Let’s imagine what could happen in the future. It seems like we have not so many options for CIJ. Some people believe that <a href="http://ryanogles.by/css/javascript/2017/05/25/the-state-of-css.html">it will substitute CSS</a>. But I doubt it. CSS is actively developing, you just need to pay attention to the <a href="http://www.rachelandrew.co.uk/archives/2017/05/01/whats-happening-in-css/">right sources</a>. Especially important is <a href="https://www.smashingmagazine.com/2016/03/houdini-maybe-the-most-exciting-development-in-css-youve-never-heard-of/">the Houdini project</a>. Of course, CIJ could be a substitution for CSS on non-web platforms, but it underlines mainly the problem of these specific systems. Maybe I’m very wrong about the purpose of numerous CIJ libraries, and they are preliminary solutions before a brand new standard on the web. Nevertheless the current CIJ status is unclear for me what makes me being very skeptical about its bright future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a749960b0b6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UI Constructivism]]></title>
            <link>https://medium.com/@ivn_cote/ui-constructivism-e992f1688f9?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e992f1688f9</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[components]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Tue, 30 May 2017 21:21:21 GMT</pubDate>
            <atom:updated>2017-06-07T08:26:35.012Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AabRbDkQm06NwlGSw0pv-g.png" /><figcaption>illustration by Yakov Chernikhov</figcaption></figure><blockquote><em>Everyone who is only closely confronted with the task of justifying the mutual linking of elements is infected with constructive ideas. </em><a href="https://en.wikipedia.org/wiki/Yakov_Chernikhov">Yakov Chernikhov</a></blockquote><p>A special art philosophy appeared around a century ago called constructivism. It originated in communist Russia but is associated with Scandinavian functionalism and German Bauhaus. No doubt it influenced all the postmodern architecture and design.</p><p>One of the theorists of the new art movement was Yakov Chernikhov, and in his very illustrated book “Construction of architectural and machinery forms” he specifies art principles of this movement and describes all the possible ways of simple object compilations. All illustrations and weird funny quotes are from the mentioned book.</p><p>I’d like to propose <strong>the same notion of constructivism</strong> to the movement we can see now in web UI development (aka frontend). There is a hype about making independent components which could be the blocks of the later big applications. Github has tons of projects with UI components libraries. Major javascript frameworks propose the solutions for using component-based approach. React, Ember, Angular — all have this feature. Finally, there is a long-standing proposal as a W3C standard called Web Components driven by Google and consisting of several parts, most relevant of which is Custom Elements. (<a href="https://blogs.windows.com/msedgedev/2015/07/14/bringing-componentization-to-the-web-an-overview-of-web-components/#3fosGWdd3X8GbeCG.97">here</a> you can read about previous attempts to standardize components).</p><p>The topic of making user interfaces from enumerating a set of components is not new, of course. My generation remembers the time of coprorate-looking UI for desktop applications. The bright example here is Delphi IDE. I don’t know whether it had much hype at that period, but it seems like such enterprise semi-finished GUI was mainstream. And even now different SDKs follow the main idea of this approach, giving way to many platform-specific components. I’m talking about XCode and AndroidStudio, both have a layout view where a developer can drag-n-drop any control element from a predefined list right onto the canvas, and this canvas represents viewport of the application.</p><p>More importantly, it’s already well known how to effectively implement GUI from a code perspective. Martin Fowler <a href="https://martinfowler.com/eaaDev/uiArchs.html">has a great article</a> about software design of UI. He describes all code patterns and considers differences between MVC, MVP and MVVM. I think all the modern frontend techniques for state management including Redux and RX just replicate the best practices of the aforementioned patterns. Of course, they suit very well for current javascript constraints and community skill level. But nothing new on a fundamental level (I am aware that this is a highly opinionated statement).</p><p>On the other hand, Web UI was very different in its early stage. Web consisted of the documents and that’s why it was mainly declarative in the languages describing such documents. HTML and CSS are such domain specific languages (DSL) which strictly constraint a view interaction for the certain cases (such as HTML forms). As we know, so-called Web 2.0 became a game changer, and since then we see the rise of Javascript as a language. I assume that Javascript became to be a language for components composition in just the past 5 years. I’ve witnessed React playing the role of a catalyst for this process due to its simplicity and the wide community.</p><p>So nothing surprising that there are attempts to make special tools, both for developers and designers, which allow constructing an application from the assembled parts nice and easy. I need to stress the difference between early existing similar processes. Consider well known Dreamviewer. It gave the ability to create web sites without knowing any web technology at all. But as a result, you would get a set of web pages only, not a web application.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJkajPRKgYRQ%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJkajPRKgYRQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJkajPRKgYRQ%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/007c062d3015513429c164a2d154abf9/href">https://medium.com/media/007c062d3015513429c164a2d154abf9/href</a></iframe><p>Also, there were frameworks like ExtJS which allow developers to construct a corporate-looking application given minimal familiarity with frontend stack. But it is a very programmatic approach with strong constraints in product vision and in the development process, as I can imagine. One could recall the existence of jquery ecosystem with numerous plugins, patterns, and antipatterns. I think it was the former component vision, but the quality of the architecture in those attempts was too low to succeed. Also, some established software companies had very sophisticated libraries which could be named as ancestors of current component-based frameworks, though such solutions were not commonly accepted. I can point out BEM tech stack developed at Yandex as an example. There are special components libraries written in BEMJSON/BEMHTML with bem.js, but they are widely spread inside Yandex only. And even BEM notation for CSS class names is far from acceptance in the frontend community despite being the easiest part of BEM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4UDtnNsSGCkGzTGV7HWK7w.png" /><figcaption>illustration by Yakov Chernikhov</figcaption></figure><blockquote>The notion of constructivism defines any compact combination and connection of various objects that can be united into one. Besides, construction it a notion which introduces us to various unity principles in readily-visible, tangible and experienced images. When some bodies, linked with others, create something whole, harmonious, and this whole represents a certain connected composition, this solves the constructivism problem. The community of all participating items attests that the combination of these items creates a phenomenon that we call a construction. Yakov Chernikhov</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*dusVhPiL44VDoS4gJHMWSg.gif" /><figcaption>Module system in action, <a href="https://www.npmjs.com/package/webpack-bundle-analyzer">https://www.npmjs.com/package/webpack-bundle-analyzer</a></figcaption></figure><p>All right, what exactly we do have now to be able to compose our applications by using only mouse or trackpad? Let’s start with ReactStudio which enables you to create responsive layouts from basic components without coding at all. This sounds crazy. I’m not sure that quality of such code is production ready. Anyway, for prototyping it is big. The emergence of such products is natural because developers have so many sandboxes for components development. And the idea of visual UI sandbox is so close to the conception of assembling final page by using prepared blocks. Such projects as <a href="https://storybooks.js.org/">ReactStorybook</a> or <a href="https://react-styleguidist.js.org/">ReactStyleguidist</a> make us believe that it’s possible to create more than a simple sandbox, where we can not only view a component and its behavior but also to connect it with several others in a way that makes the whole thing work smoothly.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVIMhg4zYeE4%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVIMhg4zYeE4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FVIMhg4zYeE4%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/54945fd04c1736b6b36b97cfb9a11ec5/href">https://medium.com/media/54945fd04c1736b6b36b97cfb9a11ec5/href</a></iframe><p>All I want to say is that tools for the rapid app prototyping are almost here. The difference between them and InVision is that now a designer can use actually implemented web components and not just graphics primitives. The funny thing is that there is also an counter move from the designers camp. Some of them assume we can program visual blocks ourselves for the later use inside the design software like Sketch. A very <a href="https://airbnb.design/painting-with-code/">fresh article from Airbnb</a> describes this miracle in details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0RkeROkXgytwgVaTqx4AFw.png" /><figcaption>illustration by Yakov Chernikhov</figcaption></figure><blockquote>The very notion of constructivism in every case is that it creates the impression of the need to tie one element to another. Watching the functional interdependence of a number of objects and justifying this dependence, we, thereby, affirm that constructive rationalism which we seek. The meaning of constructivism is also in that it creates in us the conviction of the aspiration of girth, which some objects possess. There is legitimization of the adhesion principle in the tenacious connection and mutual soldering of individual items. When one body intrudes in another and, thus, begets dependence of one from the other, such in the summation of their mutual action a finished work is created. Here, too, we find meaning, in that collective merging of a number of elements create one definite whole. While an individual item is something impersonal in whole, a group of constructively-united items is a formed unit, i.e., a defined and holistic unity. Yakov Chernikhov</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ni_X1twmmPGW5bVG4rAU2A.png" /><figcaption>Dependencies graph for Kibana</figcaption></figure><p>Generally speaking all this is awesome news! Though frontenders could be a bit in a panic. Imagine that designers could easily make not only web pages but also web applications. It would shift the job IT market! To be honest I don’t think this is that simple. More importantly it would be another relations type of relations between frontend and design. Let’s breathe deeply because we know a similar situation before, when agile movement made devops appear as a notion of the special mindset inside an agile team and created new relations between developers and operation engineers. Let’s be clear: obvious, the components should still be implemented and delivered, in order to compose UI. They should exist in code. Frontend engineers can finally focus on the performance and other important stuff!</p><p>I expect next two years to give us an opportunity to create great web applications with ease! It could be thrilling, but remember to breathe )</p><p>Upd 07 June. I forget to mention a special project for React developers called <a href="https://github.com/ipselon/structor/blob/master/docs/README.md">Structor</a>, obviously worth mentioning!</p><p><em>Many thanks to </em><a href="https://medium.com/@toylike"><em>Tanya</em></a><em> for helping me in publishing this article and for the translations of Yakov Chernikhov especially!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e992f1688f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yet Another Orthodox BEM]]></title>
            <link>https://medium.com/@ivn_cote/yet-another-orthodox-bem-7d59226d6e6e?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d59226d6e6e</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Thu, 27 Apr 2017 22:01:57 GMT</pubDate>
            <atom:updated>2017-04-27T22:01:57.623Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>TLDR:</em></strong><em> I don’t answer the question of why you need BEM, please decide for yourself :) But maybe this article answers some of your questions concerning CSS-classes composing approach via BEM.</em></p><p>Nobody knows what BEM is about. I mean it. If you have participated in the conversations about the topic, I’m sure you experienced that, because mainly all the disputes are not about technical details but about philosophy. So everybody usually starts to define a terminology, then try to map his experience in making markup onto these definitions. And people who have only read the article about BEM without having any good conversation with someone more experienced, they are just making their versions of BEM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*yKMW8qkgilVQ0RW6D9q1DQ.jpeg" /><figcaption>picture by Joaquin Phoenix</figcaption></figure><p>Nobody knows what BEM is in terms of definition. Some people are fond of an idea that BEM is a mental framework for developing (so called methodology). Also, you can talk about technique if you set constraints in using CSS only. There are a lot of libraries related to BEM, and a stack of certain solutions even, so one could talk about BEM as a technology.</p><p>I have been using BEM for many years. So this technique (as you see, I prefer this term when I’m talking about BEM) has become very natural for me. Also, I have found it successfully paired with React.</p><p>But as soon as I was involved in teaching this approach I realized that BEM very hard to explain in many aspects. Everybody has to be prepared for spending time and effort in educating colleagues, but in this case particular. Is it worth it? I still believe that BEM is good for long production-ready projects, so yes. In the end this technique is only about an agreement of class names for DOM elements (oops I haven’t said it earlier), so you can move from one CSS tool to another, still having BEM. BEM is good for long-term purpose because libraries can be changed, but your method remains the same. But again the same question arises: why should you want it to be like this? I have to say it from the very beginning: once you start thinking in BEM approach, it helps you to write a good code (both JS and CSS), because you will get good abstractions and the rules for them. There is even a joke, that thinking in BEM is a kind of an illness, so-called BEM brain disease. It is manifested mainly in the ability to view every UI element as a combination of only three entities: blocks, elements, and modifiers. So that the markup could be looking like that:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8704f59972097713bca8d47bdd4aeb0/href">https://medium.com/media/f8704f59972097713bca8d47bdd4aeb0/href</a></iframe><p>When developer just opens markup for the web application, he will know where bounds for different blocks are, and also he can guess the purpose of their existence.</p><p>Returning to the fact that explaining BEM is hard. One source of frustration is that there is no such thing as an accepted one proper BEM, there are variations, but a mainstream approach is purely documented. On main documentation site built by Yandex, all the information tend to describe technical toolset, without explaining “why”. And best practices are not so obvious to find (I just compare with React documentation.)</p><p>Another disappointment is that once you want to use BEM class names you need to choose the right tool for implementing it in CSS and JS files. I mean, there are different ways to set DRY writings for BEM notation, and this could cause disagreements in your team. My preferable way is NextCSS syntax which I partially use in examples within this article.</p><p>All right. I’ve told a lot of preliminary considerations. But my real aim is to give you a good recipe for understanding BEM. Just follow consequent rules which represent the technique definitions and the best practices. But again, it’s only my vision of ‘orthodox’ BEM.</p><h3>🦁 Tsar principle</h3><p>There is only one dictator in your country — CSS specificity. It is low. Praise and hate the dictator!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e6d0881255185743591ebfee461df5a/href">https://medium.com/media/2e6d0881255185743591ebfee461df5a/href</a></iframe><h3>☮️ Anarchy principle</h3><p>Rule: Anarchy is the mother of the order. If you are wondering how it can be in one list with the dictator rule, I can answer that all good mental frameworks have a contradiction after all. Maybe it relates to philosophy, dialectics, who knows… Despite the tsar, you have no guarantee of the order in a kingdom. And the worse scenario is when you are trying to handle specificity by cascading rules and using hacks like setting !important for some rules. But in this way, it’s getting harder to reuse blocks inside other blocks. Creating a little bit anarchy doesn’t mean making a mess. Oppositely, you provide all authority to the blocks themselves. They know about their behavior better and don’t require additional rules from a high level (except a reference for setting a modifier).</p><p>This rule is very hard to hold on practice. But anyway, try to avoid unnecessary cascade selectors: they use a tsar power and could be compared with callback hell in JavaScript. A good developer can handle such code but rarely writes it (at least my hope is this).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e2004a64daa42ce5edcf78efb328c6b9/href">https://medium.com/media/e2004a64daa42ce5edcf78efb328c6b9/href</a></iframe><h3>👩‍👧 Matryoshka principle</h3><p>There are some blocks. The blocks are nested in each other but in a straightforward manner: they exist as a whole with dependent elements and use the elements exclusively.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d6a467dfae082f4646bf5bcbd88ed41/href">https://medium.com/media/4d6a467dfae082f4646bf5bcbd88ed41/href</a></iframe><h3>🎸 Balalaika principle</h3><p>You have any three entities to play. Let’s name them, again: a block, an element and a modifier (for blocks and element). An element is hierarchically dependent by a block. A modifier is functionally dependent on its owner. In other words, an element follows composition pattern, and a modifier follows inheritance pattern, enriching based style. Don’t invent other forms, please. As an example of an anti-pattern, developers tend to use elements of elements most often. But it’s too much! An element shouldn’t have dependent entities, otherwise, it becomes a block itself. By the way, it doesn’t mean you can’t use another block inside the element. Remember matryoshka principle, which grants you an ability to fold blocks inside each other, including a possibility to fold blocks inside another block elements.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/36577d8906efede9a13fee96aaf3f5f2/href">https://medium.com/media/36577d8906efede9a13fee96aaf3f5f2/href</a></iframe><h3>🍆 Pickle principle</h3><p>Here it is a puzzle about a pickle. Is a pickle more green, or longer? If you are still thinking, wait a minute. The right answer is green: a pickle is green everywhere, but long only in one dimension. How it relate to BEM? Very naturally, when developing a block structure, one should select which properties will be optional (i.e. they will be set in modifiers) and which belong to block. In other words, if you have a pickle as a block, it will be always green, and there will be modifiers for it: short pickle, extra long pickle etc.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/938986c21451ed0a92cb0c84478e0838/href">https://medium.com/media/938986c21451ed0a92cb0c84478e0838/href</a></iframe><h3>⛄ Snowflakes principle</h3><p>Snowflakes are different. And they can form big structures. So you can create your own set of blocks for the project, and use them in different combinations. You can combine blocks to make something really big! And sometimes you need to use the block inside the same block. It’s a variant of the recursion, don’t worry!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5b78316d6be07ab12f61a53045c3930c/href">https://medium.com/media/5b78316d6be07ab12f61a53045c3930c/href</a></iframe><h3>🐻 Bear principle</h3><p>Sometimes you eat the bear, and sometimes the bear, you know, eats you. This Siberian phrase is hard to accept, but it is very true. So don’t let the concept eats your brain. Not all parts of the page should be presented as a short list of blocks. If one piece is independent in the sense that it has a special purpose or at least a specific interaction, it is a block indeed. The common look doesn’t matter.</p><p>Blocks represent semantic entities, so they are not illustration-dependent. If a button and any link look similar, they are still different blocks.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c6614470025df90fd472488ae0fef46e/href">https://medium.com/media/c6614470025df90fd472488ae0fef46e/href</a></iframe><h3>🖖 Commune principle</h3><p>This rule is about elements inside one block. They know about each other, so they can share some specific knowledge about a block purpose and its styling. But it is also important to understand the reason why they form the commune. In some sense, elements shouldn’t know about an external world. When an element becomes too separate and too different from other elements inside a block, it could be separated into an independent block. You are welcome to do so!</p><h3>➰ Varenik principle</h3><p>Varenik (dumpling) is a Russian/Ukrainian traditional dish: dough with some filling is boiled in water. But as soon as filling could be very random, even sweet, a cook vareniki in various forms, making differentiation between the types. In order to define the desired style for your block or element, give it a special sign, so called modifier.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/19a8eda3c2a8935925a2587f2ff56444/href">https://medium.com/media/19a8eda3c2a8935925a2587f2ff56444/href</a></iframe><h3>🍮 Pirog principle</h3><p>Formal definition for a pirog (cake) could be very similar to the varenik: it is also dough with filling. But drastic difference is due to the mode of cooking. So we can make a conclusion from this analogy. If your component has a modifier which drastically changes both behavior and look, it could be another block. Like pirog could be very independent of varenik (but still be a friend, you know).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e4123e5ef08007687bbf5a25b5f2ae5/href">https://medium.com/media/1e4123e5ef08007687bbf5a25b5f2ae5/href</a></iframe><h3>☕️ Samovar principle</h3><p>Samovar is a big copper thing with a beautiful ornament used for tea making in old Russian households. It’s a big teapot after all. If you have a samovar in your markup, use the teapot as a block and provide a special modifier in order to have a true picture )</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/151aa5cd4ef9becdbf08e89b8e45ce3c/href">https://medium.com/media/151aa5cd4ef9becdbf08e89b8e45ce3c/href</a></iframe><h3>🚌 Bus principle</h3><p>It was created on a motive of the quote by David Hockney who said once: “Art has to move you and design does not unless it’s a good design for a bus”. Applying this to BEM: “If the solution is working, well enough.” Don’t refactor all the things just because they could be more clever with another combination of blocks/elements. The design itself doesn’t have to move you. Kill the perfectionist inside yourself, otherwise he will kill your productivity.</p><h3>🛰 Sputnik principle</h3><p>Once your project has launched with BEM don’t let your rocket make a dangerous angle, or the whole thing can go down in flames. It means to be consistent within a codebase, follow initial rules. Inconsistency in BEM negates all the benefits of applying this approach. If you change the rules, don’t leave a legacy with stale ones.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/237cf370ac311672e5f21ab298b165b3/href">https://medium.com/media/237cf370ac311672e5f21ab298b165b3/href</a></iframe><p>After all, are there any unquestioned situations? Did I cover all the possible use cases by explaining aforementioned principles? I doubt it. But it is better than just a straightforward description of the naming convention without further explanation, right? Also, one question is very hard to resolve in BEM but rather important. It is about the granularity of blocks. I mean how small could they be? In other words, we need a good balance of the number of elements inside blocks and the desired quantity of similar blocks. It really does depend on a project.</p><p>In conclusion, BEM could be compared with OOP. You don’t have to use it every day, but if you understand it and have some practice, it really helps you with software design. In the case of BEM — with web UI design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*KUetS8b35rAlYLe1bOd6mQ.png" /><figcaption>welcome to the new world! picture by Algimantas Kezys</figcaption></figure><h3>Additional Resources</h3><ul><li>Official BEM FAQ <a href="https://en.bem.info/methodology/faq/">https://en.bem.info/methodology/faq/</a></li><li>BEM Key Concepts <a href="https://en.bem.info/methodology/key-concepts/">https://en.bem.info/methodology/key-concepts/</a></li><li>Side Effects in CSS by Philip Walton <a href="https://philipwalton.com/articles/side-effects-in-css/">https://philipwalton.com/articles/side-effects-in-css/</a></li><li>CSS Architecture by Philip Walton <a href="https://philipwalton.com/articles/css-architecture/">https://philipwalton.com/articles/css-architecture/</a></li><li>Styling React <a href="https://survivejs.com/react/advanced-techniques/styling-react/">https://survivejs.com/react/advanced-techniques/styling-react/</a></li><li>Specificity by Chris Coyier <a href="https://css-tricks.com/specifics-on-css-specificity/">https://css-tricks.com/specifics-on-css-specificity/</a></li></ul><h3>About the author</h3><p>Hello, it’s Ivan. I have been a professional frontend developer for a long time. I was happy to work at Yandex, in SERP department, where several years ago BEM was born. React combined with BEM was a working solution for me for the past 4 years. My open project for this purpose is <a href="https://github.com/ivn-cote/bemixin">https://github.com/ivn-cote/bemixin</a> , though my last work projects use bem-cn library. For some unclear reason I was involved in CSS tools exploring and creation, e.g. see the repo <a href="https://github.com/ivn-cote/stylus-inline-webpack">https://github.com/ivn-cote/stylus-inline-webpack</a>. There were two tech talks on styling: in 2015 at November Moscow Tech Meetup, (<a href="https://www.slideshare.net/IvnCote/css-react-talk">https://www.slideshare.net/IvnCote/css-react-talk</a>) and in 2016 at Moscow React Meetup (<a href="https://www.meetup.com/React-Moscow-Meetup/events/234802115/">https://www.meetup.com/React-Moscow-Meetup/events/234802115/</a>).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d59226d6e6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Version Freeze with NPM Done Right]]></title>
            <link>https://medium.com/@ivn_cote/version-freeze-with-npm-done-right-e1853afec7df?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1853afec7df</guid>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Tue, 28 Mar 2017 08:58:58 GMT</pubDate>
            <atom:updated>2019-04-26T10:21:12.395Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>UDPATE April 2019:</em></strong><em> I see some incoming traffic for this article, so I have to update it with the important remark that the examples here are outdated. NPM team introduced </em><em>package-lock.json . And working with it is much more easier than before. <br>If you still use NPM v4 for some reason, or if you want to have a broader context, please continue reading. Happy coding!</em></p><p>I <a href="https://medium.com/@ivn_cote/npm-is-not-so-hopeless-compared-to-yarn-e039ee900adc">promised</a> to consider NPM shrinkwrap file creation and maintenance. So I suppose it would be a good start to understand why we need such a file at all.</p><p>As soon as your project depends on many other open source frameworks and libraries, this dependency has a dark side in form of breaking changes. Usually we use semver agreement to handle modifications in node modules. So we can describe in package.json what degree of changes we can admit. But there is no guarantee that authors of the pointed library won’t make a mistake with semver some day. Especially this could be an issue with WIP projects (e.g. alpha versions, and refactoring to a new API).</p><p>Even if all packages have very concrete versions in package description file, there is a chance that dependencies can be not so specified inside these modules. That means you would have situation when all is working fine on your local machine, but a production service is down.</p><p>Shrinkwrap json file consist of references for each dependencies you need for the project, with version specified. If such file is present in the root folder of your project, `npm install` will use it for sure, and not package.json. So far this file itself is a great solution for CI/CD for node based projects! One common advice here to use `dev` flag so that dev packages will be included as well, and all CI tests would be still possible.</p><p>Sometimes the technique of avoiding undesired changes in dependant modules using specified versions is called version freeze. Lets consider VF for your app from maintenance perspective, because there are a lot of articles which describe using this file creation and update as a nightmare. Contrarily, my experience is bright. Some discipline and good understanding of NPM is all you need!</p><p>First of all, in order to create shrinkwrap json you have to get all packages already installed (and placed in `node_module` folder). My advice is to don’t install optional packages which are often presented in development utilities, such as `fsevents`. The risk that your CI would be broken is high when an optional module is pointed in schrikwrap file, since it is OS dependant, and therefore failed on NIX machines. There is a special flag for omitting these dependencies during install process: `no-optional`, and it is valid for several NPM commands.</p><p>Wrapping up, to create the first version of shrinkwrap file do</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/81b133b8cfa5a997ee7746a5fface163/href">https://medium.com/media/81b133b8cfa5a997ee7746a5fface163/href</a></iframe><p>BTW don’t forget to add the created file for changes to commit.</p><p>Then you can check that all is working fine by deleting folder node_modules, and running `npm i` again.</p><p>Fine, now there is a question how to update some modules for the time being. If you are wondering which packages should be updated, run `npm updated`. The result is a table with package available for promoting their versions. Or maybe you would like to add a new module. In any case you already know the version you want. So simply add it locally</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3b82c5239d1c0bc8b4c783185d3c643/href">https://medium.com/media/e3b82c5239d1c0bc8b4c783185d3c643/href</a></iframe><p>That’s all: you could check that both `package.json` and `npm-shrinkwrap.json` have proper modifications concerning the new (or updated) module.</p><p>Using shrinkwrap you avoid issues with incompatibilities on different machines over time as well as speed up modules downloading process. Both stories are very crucial for continuous integration. So, happy coding and shipping to production! All the information is valid for NPM v4.1.2</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1853afec7df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[npm is not so hopeless compared to yarn]]></title>
            <link>https://medium.com/@ivn_cote/npm-is-not-so-hopeless-compared-to-yarn-e039ee900adc?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e039ee900adc</guid>
            <category><![CDATA[yarn]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Tue, 14 Mar 2017 10:11:11 GMT</pubDate>
            <atom:updated>2017-03-14T10:11:11.883Z</atom:updated>
            <content:encoded><![CDATA[<p>On my previous project, I’ve noticed that a shrinkwrap file speeds up the build time in CI environment. So my target now is the comparison of standard yarn installation for packages, and npm installation with established npm-shrinkwrap json.</p><p>As you may know during the first launch yarn creates a lockfile stating all the concrete versions for each package. So does npm, but only by demand using command `npm shrinkwrap`. It has several options, e.g. `dev` which is useful for CI test purpose. In order to check my aforementioned hypothesis, I’d measure timing for full packages installation. As starting point any modern application goes, I’ve picked react boilerplate <a href="https://github.com/kriasoft/react-app">https://github.com/kriasoft/react-app</a> . There are two main considerations in order to make measurement more predictive and repetitive. First, network constraint should be set due to avoid too fast or too lossy connections. The second point, we need to make sure that nothing is cached between measurements.</p><p>Concerning network, I’ve run all the tests on home WiFi with no concurrent application (no torrents, multiple browser tabs etc.), and set constraints of downloading channel via Network Conditioner preference panel for MacOS. Chosen working preset: LTE, stating maximum 50Mbs and delay as 50ms with no explicit packets drops.</p><p>Test cases are pretty straightforward: running `npm i` vs running `yarn`. The third option is running `npm i` with ready npm-shrinkwrap.json file. The secret sauce is in clearing packages caches, and in setting proper flags for the commands. Measure tool is a standard `time` CLI. So full scenarios for all three cases are as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d61058d908228f731015f4bd06d030b/href">https://medium.com/media/4d61058d908228f731015f4bd06d030b/href</a></iframe><p>All technical details about environments: Macbook Pro 13, Mac OS Sierra 10.12.3, npm v4.1.2 yarn v0.21.3, just in case..</p><p>So, after several launches I’ve got very interesting, even unexpected results. npm installation is magically slow.<br><strong>real 2m45s +/- 20s</strong><br>user 0m40s +/- 4s<br>sys 0m11s +/- 1s</p><p>No fresh news, yarn is pretty rapid<br><strong>real 0m41s +/- 5s</strong><br>user 0m39s +/- 4s<br>sys 0m18s +/- 2s</p><p>npm with shrinkwrap file is almost as good as yarn<br><strong>real 0m57s +/- 4s</strong><br>user 0m50s +/- 2s<br>sys 0m23s +/- 2s</p><p>I can’t explain such a drastic difference between these two modes of npm. And I didn’t find a good explanation, especially in official documentation.</p><p>There are two main further questions.<strong><em> Why do we need yarn? And how to manage shrinkwrap files manually?</em></strong> But it is a good topic for another article ;) Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e039ee900adc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Программирование как садоводство]]></title>
            <link>https://medium.com/@ivn_cote/%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-%D0%BA%D0%B0%D0%BA-%D1%81%D0%B0%D0%B4%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%BE-76fa1449d21d?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/76fa1449d21d</guid>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[программирование]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Sat, 25 Jun 2016 11:17:44 GMT</pubDate>
            <atom:updated>2016-06-26T18:24:21.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*zDsKtFOfPA8USv6X_1bujg.jpeg" /><figcaption>“We need to go deeper”</figcaption></figure><p>Хотелось бы поделиться непринятым взглядом на промышленную разработку, которой занимаются программисты. По моим наблюдениям, в сообществе укоренено мнение, что программирование — весьма инженерная затея, и в этом смысле занятие в этой сфере стараются привести в соответствие с терминами, уже принятыми политехническими институтами и многолетней практикой больших и малых инженерных организаций. И я в чем-то согласен с этой идеей. Но любая аналогия имеет тенденцию перерастать изначальное сравнение и объяснять гораздо больше, чем ей следует. В случае аналогии разработки ПО и строительной разработки (по-английски слова для профессий идентичны — developer) этот эффект особо красочен, на мой взгляд. Это вредно, особенно для начинающих разработчиков: у них создаются обманчивые представления об индустрии и относительно качеств результатов труда и взаимоотношений с заказчиками. Обо всем об этом постараюсь подробнее далее. И как альтернативу предлагаю свое сравнение: программирование сложных систем подобно разбитию сада и ухаживанию за ним. Полезные выводы из этого и являются сутью статьи.</p><p>Вначале разберемся с уже упомянутым сравнением со строительной индустрией. Оно действительно существует, стоит начать с самих терминов: в серьезных статьях повсюду мелькают слова “архитектура компьютера”, “архитектура приложения” , так что у студента, а затем у разработчика, в голове образуется четкое понимание того, что итоговый программный код — великое строение, которое вначале тщательно проектируется, потом строится, вводится в эксплуатацию, а затем обслуживается (если повезет). Так и появляется стандартный процесс разработки по-умолчанию, обозначаемый как “водопад”, т.е. последовательность шагов, после которых результат достигнут. То, что эта методология давно считается весьма ограниченно годной и то, что повсеместно процветают agile процессы, заставляет задуматься: вероятно, концепция строительства имеет небольшое отношение к программному обеспечению.</p><p>А вот сравнение с садоводством кажется весьма полезным, при таком подходе можно предугадывать некоторые следствия, и идеал работы программиста не столь разочаровывает при столкновении с реальностью. Что же в этой реальности происходит такого?</p><p>Во-первых, <strong>цикличность</strong>. Для садовода ежегодные работы следуют по графику. При этом сад взращивается долгое время, за один год его нельзя привести к какому-то конечному состоянию. Но каждый год в нем происходят одни и те же работы в зависимости от сезона. Разработчик тоже должен иметь в виду, что надо производить работы по улучшению и разработке программы или сервиса с некоторой регулярностью. Можно запланировать весь фронт работ с самого начала, но, как правило, идти к такому идеальному продукту придется слишком долго, а проект с точки зрения бизнеса и сообщества может этого и не выдержать.</p><p>Во-вторых, <strong>засыхание</strong>. Сад умирает без регулярного ухода. Если его забросить, он зарастет сорняками и перестанет плодоносить. Программный продукт тоже весьма скоро становится трупом. При этом исполняемый код замечателен тем, что его все-таки удается запускать не только на оборудовании, но и в эмуляторах, однако попытки использования программ даже десятилетней давности больше похожи на пляски вокруг Франкенштейна. И особенно это касается сложных программных систем, где интеграция разных программ критична для успешного функционирования. Замусоренность любой программы чувствуется даже ее создателем весьма скоро. Спросите себя (или друга-программиста), и наверняка припомнится момент, когда смотришь в код, написанный полгода-год назад, и глаза на лоб лезут: “Стыдоба!” Да, второй закон термодинамики про нарастание хаоса почему-то реализует себя в программном коде тоже. Иногда замусоренность перерастает в захламление, и нет никакой возможности исправить ситуацию, как только переписать проект с нуля. Это все равно, что срубить сад и начать высадку заново.</p><p>В-третьих, <strong>погода</strong>. Никто, конечно, не признается, но внешние условия очень важны для проектов. Какое там настроение у дизайнера, который придумал интерфейс для нашего классного приложения? Смотришь на макеты и понимаешь: вот это гроза, надо налить чая и зажечь камин; сегодня в сад ни ногой. Это не говоря про прочие внешние обстоятельства. Какой -навоз- фреймворк моден в этом году? Какие -цветы- сервера продают голландцы на местном рынке? Есть и более аргументированный довод в данном пункте. А именно, Закон Конвея, который говорит о том, что структура компании неизменно влияет на программный продукт, который повторяет систему коммуникации в компании.</p><p>В-четвертых, деление на <strong>съедобное и красивое</strong>. Сады ведь бывают разного толка. Спор между практиками и мистиками происходит во всех сферах деятельности, очевидно: как сад может быть плодовым или цветочным, приусадебным или городским, так может и программный продукт служить совершенно в разных целях. При этом удивительно то, что существование публичных садов аналогично многим продуктам с открытым исходным кодом.</p><p>В-пятых, <strong>сообщества</strong> профессионалов. Садоводы не ищут откровения в книгах по почвоведению (кроме некоторых упоротых, наверно), они работают на земле и делятся практическими соображениями. Так же работает сообщество программистов. Конференции по разработке вовсе не похожи на математические. Более того, они антинаучны по природе: на них критика не в почете, необходимо принятие выступающих. Если не нравится — иди попробуй сделай сам, по-своему, а экспертное мнение уже высказано. Эксперт считается таковым не по числу статей, а по числу лет в индустрии и авторитету среди коллег. Сообщество вводит моду на те или иные приемы, техники, принципы разработки. Так, как будто речь идет про лопаты, тепличные нововведения или мичуринские эксперименты.</p><p>В-шестых, <strong>любовь к делу</strong>. Если человек вкладывает душу в свою работу, это чувствуется. И не во все ее можно вложить. В квартальный отчет или налоговую ведомость вряд ли. А в суп можно, и в любимый палисадник у дома тоже. Увлеченный своим делом разработчик — вовсе не редкий случай, это же для многих единственный вариант творчества, программирование алгоритмов захватывающе. Хотя следует помнить, что это правило не всегда обеспечивает порядочность и общую адекватность специалиста.</p><p>И пожалуй, последнее, но очень важное. Это принцип, гласящий, что <strong>важнее реализация, а не идея</strong>. Прекрасные сады с единорогами и четырехлистным клевером всем задают планку, но реальные парки с обычными дорожками гораздо полезнее горожанам тут, на земле. То, как в действительности будет развиваться сад, зависит не только от автора первоначальной идеи, важны многие факторы. Т.е. реализация как развитие идеи либо доводит ее до улучшенного артефакта реальности, либо превращает в фантик, памятник истории.</p><p>Из этого вороха параллей можно выделить более и менее очевидные. Но вряд ли молодой разработчик про все это когда-либо слышал или предугадал. А если бы мог, то сразу же взял на вооружение следующие правила, которые понравились бы и опытному садоводу, я уверен.</p><blockquote>Уход и дисциплина</blockquote><ul><li>Надо присматривать за всей системой целиком, править или планировать правки по слабым частям, особенно где уже есть -сорняки- костыли. И это регулярный процесс.</li></ul><blockquote>Существование больших рисков, непредсказуемость</blockquote><ul><li>Стихийные бедствия не идут по расписанию. Риски в сельском хозяйстве самые сильные, именно в этой сфере возникли фьючерсы как гарантии продукции. Не все происходит под контролем, особенно в сложном проекте. И микроменеджмент в командах разработчиков мало уместен.</li></ul><blockquote>Красивое бывает сложно продать</blockquote><ul><li>Есть два исключения, противоречащие данному правилу, тем самым его подтверждая: чудо бума доткомов конца 90-х XX века перекликается с тюльпановым крахом века XVII. Но в целом же, плодовые сады гораздо практичнее, так что они сразу находят покупателя, в отличие от цветочных полян. Аналогично можно встретить программный продукт, который пусть и странно спроектирован, но обладает огромной аудиторией, в то время как грамотные красивые решения остаются в дорожной пыли.</li></ul><blockquote>Обмен опытом как часть процесса</blockquote><ul><li>Возможности систем не всегда описаны в сопроводительных документах. Более того, всегда есть место для экспериментов, и услышать их результаты из первых уст полезно для всех участников, это сильно продвигает индустрию в целом.</li></ul><blockquote>Эволюционное развитие</blockquote><ul><li>Большой проект не может быть механически поделен на части, он взращивается из малого, точно так же, как дерево вначале прививается, а потом дает плоды. Грубо говоря, программисты ведут проект таким образом, что вначале появляется велосипед, потом скутер, потом уже автомобиль. Теоретически хотелось бы, чтобы параллельно создавались шасси, кузов и двигатель, которые потом совмещались бы. Я думаю, это идеализация, которая мешает жить: на самом деле, эволюция продукта и его технической составляющей всегда на лицо.</li></ul><blockquote>Обновление или инфраструктурная деятельность</blockquote><ul><li>Так или иначе, рано или поздно надо полностью пересматривать концепцию поддержания проекта и сада. Любая инфраструктура имеет свой срок годности.</li></ul><p>В заключение, все же приведу те полезные следствия, которые получаются из параллели строительства и выстраивания программного кода.</p><p>Во-первых, концепция <strong>стандартных блоков</strong>. В программировании образуются так называемые модули, которые, подобно строительным блокам, могут образовывать некоторую конструкцию.</p><p>Во-вторых, <strong>технологии</strong> в строительстве перекликаются с паттернами и методологиями в программировании. Шаблонное представление о полном цикле технических работ сильно упрощает коммуникацию и вполне облегчает обучение.</p><p>В-третьих, для программных продуктов в их реальном широком использовании тоже возникает понятие <strong>нагрузки</strong>, которую надо рассчитывать, точно так же, как рассчитывается нагрузка на строительные конструкции. И эта нагрузка может сильно поменять как устройство программной системы, так и инфраструктуру под нее.</p><p>В-четвертых, так же, как и в строительстве, в программной инженерии возникло <strong>множество специализаций</strong>.</p><p>Иногда в компаниях ощущается конкретно строительная атмосфера: они подготавливают блоки для конструкции, снабжают всех разномастных рабочих чертежами и ГОСТами, высчитывают нагрузку и планируют сроки по предыдущему опыту. Но как по мне, такой механический подход не выдерживает критики и реального опыта. То ли творческая составляющая программной деятельности, то ли ее практическая близость к бизнесу, существующему на рынке, как в экологической системе, то ли еще что-то, но абсолютно точно есть в разработке программного обеспечения хаотическое, анархическое начало, вдребезги ломающее идеальные конструкции из нулей, единиц и управляющих языков. Хочется вспомнить Илью Сегаловича, говорившего, что <em>“прогресс неостановим. И второе: работать все равно ничего не будет”.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76fa1449d21d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Как я сайтян забацал]]></title>
            <link>https://medium.com/@ivn_cote/%D0%BA%D0%B0%D0%BA-%D1%8F-%D1%81%D0%B0%D0%B9%D1%82%D1%8F%D0%BD-%D0%B7%D0%B0%D0%B1%D0%B0%D1%86%D0%B0%D0%BB-a2689dd24e0?source=rss-7a23b8f64e4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2689dd24e0</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ivn Cote]]></dc:creator>
            <pubDate>Mon, 16 May 2016 21:42:11 GMT</pubDate>
            <atom:updated>2016-05-16T21:42:11.877Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_h-HPd1V_VmJeqgVx4QTg.png" /></figure><p>Давно такого не делал. Чтобы, как в старые добрые времена, сделать сайт-одностраничник “на коленке”. Но тут вроде появился отличный повод — свадьба. К свадьбе много какой подготовки, не без суеты, и сайт вовсе не обязательный в списке приготовлений, но мне и Тане эта идея показалась интересной с той стороны, что гораздо проще объяснять друзьям, где и что происходит.</p><p>В общем, решение про сайт было принято. Естественно, в первую очередь включилась Лень. Она порыскала в сети, нашла общие шаблоны. Потом обнаружила целый сервис под хомячковые сайты wix.ru. Прекрасные шаблоны, все удобно. Лень вроде даже настроила пару заголовков. Но потом я понял: все эти огромные шрифты, модные скроллинги — надоело, они же повсюду, а никакой пользы от них нет. Уж куда лучше собрать сайт, как в девяностые. Чтобы блестел, прыгал, производил впечатление, как домашний борщ!</p><p>Дня два собирал у себя в голове концепцию сайта. В итоге, захотелось сделать побитый на треугольники фон. Видимо, в памяти всплыл дизайн от <a href="https://aerotwist.com/">https://aerotwist.com/</a> и <a href="http://ro.me/">http://ro.me</a> . Процесс разбиения картинки в такой стилистике называется триангуляцией, и гугл на это слово отозвался выдачей со следующими замечательными библиотеками для artsy графики в вебе (это словосочетание у меня означает, что графика использует открытые веб-стандарты): <a href="http://qrohlf.com/trianglify/">http://qrohlf.com/trianglify/</a> <a href="https://snorpey.github.io/triangulation/">https://snorpey.github.io/triangulation/</a><br>а также очень любопытный вариант анимации такой графики <a href="http://codepen.io/grayghostvisuals/pen/RNLgJP">http://codepen.io/grayghostvisuals/pen/RNLgJP</a></p><p>Еще пару дней я обшаривал тот же codepen.io и jsdo.it в поисках вдохновения, в результате пару демок к веб-анимациями попросту сохранил в закладки.</p><p>Итого, в голове созрел план странички:</p><p>- сверху клевые портреты с триангуляцией;</p><p>- рядом веб-анимации с сердечками;</p><p>- в центре текстовая информация, основная смысловая нагрузка страницы;</p><p>- снизу карта.</p><p>Самым сложным оказалось сделать портреты. Не смотря на то, что есть автоматические скрипты для триангуляции портретов, они дают непригодные результаты, разве что посмеяться. В сети профессиональные иллюстраторы выложили скринкасты, как они делают такие портреты (напр. для журнала Esquire) в программах Adobe. Этот вариант слишком трудозатратен для меня. Но получилось найти промежуточное решение. Вначале в полуручном режиме фотографии обрабатывал в Dmesh. Затем нужно было запустить хитрую схему выгрузки изображения. Дело в том, что Dmesh не умеет сохранять в svg, зато умеет в pdf. Затем этот pdf надо открыть в Inkspace и конвертировать. В нем же можно и отредактировать, но мне больше нравится iVinci для работы с svg. Итоговое изображение нужно сжать, для отображения в вебе, тут пригодится <a href="https://jakearchibald.github.io/svgomg/">https://jakearchibald.github.io/svgomg/</a> или просто SVGO.</p><p>Веб-анимации, как я уже писал, взял из ленты jsdo.it. Их создатели — японцы, судя по комментариям в коде и на самом сервисе. Само собой, это не мешало разобраться в коде, улучшить и изменить под свой дизайн ) Хотя я не вполне понимаю, как именно там все работает, чужие куски кода можно вставить “как есть” и немного потюнить, используя богатый жизненно-инженерный опыт.</p><p>Легче всего было установить карту с особым дизайном. Мне подошла чб-схема от Mapbox. Этот сервис предлагает создавать карты с маркерами заранее, а потом запросто вставлять их на страницы по ключу доступа. У Google Maps существует аналогичная функциональность по изменению стилей карты, есть целые списки разных дизайнов. К сожалению, в Крыму, где проходили мои, developers.google.com закрыт из-за санкций, так что я остановился на Mapbox.</p><p>Должен признать, когда все части сложились воедино в едином макете, на код нельзя было смотреть без кровавых слез. Но я не сильно огорчался, ведь традиции сайтоделания в девяностые как раз про это. Конечно, часть кода нельзя было не “причесать”, но в целом я успокоился на простом рабочем варианте. И пусть анимация сайта настолько тяжелая, что ноутбук решительно греется, но зато сайт-страничка получилась очень необычной.</p><p>Последним штрихом стала момент публикования в сети. В принципе, никто не запоминает редкие названия сайтов, поэтому можно вовсе и не брать такое отдельное доменное имя, которое удобно вбивать в адресной строке браузера. В то же время некоторые гиковские инструменты для разработки предлагают бесплатное размещение в Интернете с готовым, но незапоминающимся адресом. Я выбрал сервис Heroku. Достаточно технически оформить сайт как независимый веб-сервис, а затем публиковать его — дело нескольких секунд.</p><p>Вся эта приятная деятельность по разработке небольшого сайта заняла много времени, но не напрягала. По пути я столкнулся с техническими неожиданностями, принимался за творческие задачи, радовался новым решениям. Это похоже на решение несложных математических ребусов в средней школе. И плюс ко всему, занимаешься знакомым делом, но совершенно в новых обстоятельствах. Это как если электрик с ТЭЦ будет собирать дома радиоприемник. В общем, главное, чтобы было время для таких экспериментов, они очень вдохновляют. Надеюсь, появятся еще какие-то обстоятельства, и опыт повторится. Возможно, этот же самый свадебный сайт будет немного улучшаться и жить дальше некоторое время. Вот кстати, ссылка на него: <a href="http://tinyurl.com/wedding4june">http://tinyurl.com/wedding4june</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2689dd24e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>