<?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 Tomasz Krawczyk on Medium]]></title>
        <description><![CDATA[Stories by Tomasz Krawczyk on Medium]]></description>
        <link>https://medium.com/@tomaszkrawczyk_49518?source=rss-af1707cfe08a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*h94nCMjznOt5cU2osbosSw.jpeg</url>
            <title>Stories by Tomasz Krawczyk on Medium</title>
            <link>https://medium.com/@tomaszkrawczyk_49518?source=rss-af1707cfe08a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:16:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tomaszkrawczyk_49518/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[Making a VR app for neurobiological research]]></title>
            <link>https://blog.softwaremill.com/making-a-vr-app-for-neurobiological-research-37c9b8ac4ab9?source=rss-af1707cfe08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/37c9b8ac4ab9</guid>
            <category><![CDATA[raymarching]]></category>
            <category><![CDATA[vr]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Tomasz Krawczyk]]></dc:creator>
            <pubDate>Wed, 03 Mar 2021 09:34:35 GMT</pubDate>
            <atom:updated>2023-10-19T12:23:04.913Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A short story about creating a VR application to immerse yourself in a microscopic volume with paint to prepare the data for AI learning.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z3ohO_9aG9wnh-sZDq8R2g.png" /></figure><h3>Issue</h3><p>The amount of gathered data is essential for every research. If you collect data about cells using a microscope, they have to be extracted somehow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*LGlLgxhuQsUKXQDN" /><figcaption>Slice of astrocytes microscopic image</figcaption></figure><p>The analysis of cells on microscopic images starts with segmentation — marking individual units. While it sounds like just pointing out photographed objects, the task is a bit more complex. <strong>The microscopic image is ephemeral, distorted, and full of noise</strong>. It is based on a dye introduced into the body or other techniques that contain an error factor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/0*GB_7EGKEEjz6NVsu" /><figcaption>Cell identification using standard method</figcaption></figure><p>Experienced specialists take these limits into account. Using essential knowledge of the researched material, they can tell the proper shape emerging from the cloud. Briefly speaking, cell markings are drawings that are painted using a microscopic image as a sketch.</p><p>Identifying particular cells while processing slices separately is an additional problem. The parts directed along the z-axis cause many difficulties and can be overlooked. <strong>It can take even a</strong> <strong>couple of days for each preparation</strong>. <a href="https://blog.softwaremill.com/">SoftwareMill</a> has taken on the task of accelerating this process.</p><h3>Challenge</h3><p><strong>Artificial Intelligence can relieve scientists of this tedious work.</strong> We just need to teach it how to do it. If we give it a large set of examples made by specialists — input image and output markings, AI can develop a scheme of action and apply it to all new preparations. Then the timespan of days will be shortened to a few moments.</p><p><a href="https://blog.softwaremill.com/astrocytes-instance-segmentation-with-machine-learning-a0acb73248ce"><strong>The first approach</strong></a><strong> </strong>by <a href="https://medium.com/@maciej.adamiak">Maciej Adamiak</a> gave very promising results. However, this method consists of mapping the preparation in 2D. We have now decided to go a step further and <strong>implement this idea while maintaining the three-dimensional form of the volume</strong>. Which is, of course, crucial for the subject of our research.</p><p>We work in cooperation with a neurobiologist, <a href="https://medium.com/@l.szewczyk">Łukasz Szewczyk</a>, Ph.D. from the Centre of New Technologies at the University of Warsaw. <strong>His area of research is astrocytes</strong>. These are the star-shaped glial cells in the brain and spinal cord. Their tree structure highlights well the aforementioned 2D vs. 3D processing problem.</p><p>Still, we need a large set of examples. <strong>Additionally, we must speed up the manual labeling process.</strong> I was given the task of making a tool that will make the segmentation so convenient that it will also be shortened to a reasonable time.</p><h3>Idea</h3><p>To meet these requirements, <strong>the preparation should be presented in the form of a 3D volumetric image</strong>. This is no longer only to present the results, but also has the technical justification for the segmentation process.</p><p>Classic tools provide options for drawing shapes graphically and some methods to distinguish between specific individuals. When introducing this functionality in 3D, <strong>we need to implement a kind of 3D Painter</strong>.</p><p>Standard 3D modeling is not suitable for this task. First, it requires knowledge of this technique from the user. Secondly, the shapes we want to achieve are far from regular and it would be slower than freehand painting anyway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjuwVSuXJmIQNFsW3VJlRw.jpeg" /><figcaption>VR headset and controllers</figcaption></figure><p>VR technology gives us a simple and intuitive way to create volumetric images. The brush<strong> is assembled to the right-hand controller</strong> and shapes can be freely marked in space when the controller’s trigger is pressed.</p><p>Head navigation is of course more convenient than all the methods used on flat screens. Additionally, as it turned out later, stereoscopy helps a lot to orientate in the volume which, remember, is an ephemeral cloud.</p><h3>Implementation</h3><p>We used the Unity engine to implement the application prototype. It includes the XR Interaction Toolkit, which provides<strong> full VR support out of the box</strong>. The code is written in C#.</p><p>The hardware we chose is Oculus Quest. <strong>It is a mobile device that has strong graphic limitations. </strong>It<strong> </strong>forces some restraints, which will be mentioned later. However, its accessibility and portability are of invaluable advantage.</p><p>The XR Interaction Toolkit includes components that provide support for the headset and controllers. That allows us to configure the freehand painting feature. The key thing we need and does not have standard support in the Unity ecosystem is <strong>the</strong> <strong>display of volumetric images.</strong></p><p>3D graphics are based on vectors. <strong>Bitmaps are the responsibility of shaders</strong> — programs that calculate the color of vector objects seen by the camera in particular pixels. In Unity, shaders are written in HLSL (High-Level Shading Language). It runs on GPU and due to its specificity, it can calculate large amounts of data at dizzying speeds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*fZD-YkLOqU1qDP7O" /><figcaption>Volumetric shader in real life by graffiti artist Odeith</figcaption></figure><p>Ray Marching algorithms are used to display three-dimensional bitmaps. <strong>They simulate the forms that are inside a vector object by painting them in perspective on the surface. </strong>They rely on appropriate tracking of the camera ray and software calculation of the resulting color for a given pixel.</p><p>Ray Marching gradually progresses along the ray into the volume by steps, hence the name. So computation of every pixel is additionally multiplied by the number of steps it takes. <strong>That has a strong impact on rendering speed</strong>.</p><p>On weak mobile GPUs, Ray Marching algorithms are, to put it mildly, not recommended. To implement it due to our hardware restraints <strong>we need a big focus on optimization</strong>. Picking a color from volume is the most costly operation in the shader program. The goal is to minimize the use of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*3-LwjHC1fAkLjH1x" /><figcaption>Voxel Intersection Ray Marching</figcaption></figure><p><strong>The Voxel Intersection Ray Marching algorithm</strong> ensures that no more steps than necessary are taken to collect the density data. It takes the next step to the next intersection on the ray and processes the incoming voxel. Also, knowing the axis of intersection gives us the normal vector of the voxel face. Thanks to this, we can introduce basic lighting to the displayed model.</p><p>This made it possible for Oculus Quest to display the stable volumetric image with reasonable effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rwDJfQjiwZY61k0Omq6GoQ.png" /><figcaption>Microscopic image rendered by the application</figcaption></figure><p>The shader only works when the 3D object is viewed from the outside. We want to be able to enter between the astrocytes, so we display it on a virtual screen attached to the front of the camera. The screen keeps the volume in a constant position on the world coordinates and projects it on its surface as if it were behind it. Something like mind-blowing inception — VR in VR.</p><p>Unfortunately, in order to get the right view range at a satisfactory frame rate, we need to narrow the boundaries of this virtual screen. You’ll see it better in the video below, although it’s smaller here than what you actually see in VR. <strong>All these limitations are related to the prototype phase</strong> and would disappear with the use of more efficient hardware.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FaprmLVwuetg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DaprmLVwuetg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FaprmLVwuetg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c4a86f94ef30f900c0be66785f18d261/href">https://medium.com/media/c4a86f94ef30f900c0be66785f18d261/href</a></iframe><p>The application controls shaders through their programmed parameters that can be changed on the fly. <strong>We pass on the configuration of the density filter to our shader</strong>. It calculates the entire object in each frame anyway, so we’re taking this opportunity to give the user the option to customize it.</p><p>As you can see in the video, the interface offers several other possibilities as well. The user is free to manipulate the volume object as if holding it in their hand. This is a left controller feature that is activated by the trigger button. The size is controlled with the joystick under the left thumb, the color identifying the marked astrocyte is selected with the right thumb, etc.</p><p><strong>VR gives a lot of room for UX ideas of this type</strong>, but that was not the priority. We limited ourselves to providing convenience for the purposes of working on the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*XSKD-W0VJCk5Ms9w" /><figcaption>Input data — microscopic image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*TXIbpVpydLG0MkKz" /><figcaption>Output data — marked regions</figcaption></figure><p>The most important parameter of the shader is the texture containing the volume data. We use two textures here — the first with densities from a microscopic image and the second with markings painted by a user.</p><p><strong>Every brush stroke updates the markings&#39; texture</strong>. It is created in the form of a bitmap of individual identifiers expressed with a color code.</p><p>Shader takes density from the first texture and color from the second one. <strong>These two textures are the</strong> <strong>process inputs and outputs</strong>.</p><p>The whole system is complemented by a backend in Python by <a href="https://medium.com/@jkijanowski">Jarosław Kijanowski</a>. It generates textures from the microscope’s raw format, communicates with the VR application, and stores the input and output sets on the server.</p><h3>Result</h3><p>The time needed to process one preparation has been drastically reduced. <strong>Segmenting the volume with this application takes about an hour</strong>. The quality of the data also improved due to the better projection of the source material.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U2GhHV5BFZltZELmRq2Ggg.png" /><figcaption>Application screen with segmented astrocytes</figcaption></figure><p>Conclusions are based solely on the use of the application by the team. We also focused on a specific type of cell. Nevertheless, the goal was to create a prototype data collection tool needed for the later stages of the project. <strong>The objectives were met and this part of the project can be considered a success.</strong></p><p><a href="https://medium.com/@kamil.rafalko">Kamil Rafałko</a> writes about his part of the project in the story <a href="https://blog.softwaremill.com/better-neurobiological-research-with-ai-d91eacaf7976">Better neurobiological research with AI</a>. He describes how useful the material obtained in this way was and <strong>how it went about teaching artificial intelligence to analyze cells on its own</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37c9b8ac4ab9" width="1" height="1" alt=""><hr><p><a href="https://blog.softwaremill.com/making-a-vr-app-for-neurobiological-research-37c9b8ac4ab9">Making a VR app for neurobiological research</a> was originally published in <a href="https://blog.softwaremill.com/">SoftwareMill Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Micro frontends — from tribes to nations and back]]></title>
            <link>https://blog.softwaremill.com/micro-frontends-from-tribes-to-nations-and-back-f2a24575558e?source=rss-af1707cfe08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2a24575558e</guid>
            <category><![CDATA[micro-frontends]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[microservice-architecture]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Tomasz Krawczyk]]></dc:creator>
            <pubDate>Thu, 12 Nov 2020 10:40:54 GMT</pubDate>
            <atom:updated>2020-11-12T10:40:54.252Z</atom:updated>
            <content:encoded><![CDATA[<h3>Micro frontends — from tribes to nations and back</h3><p><strong>Pros, cons, techniques and the impact on UI/UX</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Vc20DH0zLKj2UDmb0l_mg.png" /></figure><p>Micro frontends idea <strong>introduces the concept of </strong><a href="https://blog.softwaremill.com/what-are-microservices-and-what-are-their-benefits-d2aa64c52426"><strong>microservices architecture</strong></a><strong> to the frontend layer.</strong> It brings us all this legacy. All principles, approaches, consensus and, of course, concerns developed under that name.</p><p>It spreads the idea beyond the world of programmers. Includes all members of the team responsible for this layer. Requires UI and UX design to deal with the pros and cons of a micro service architecture. That makes the issue more relevant.</p><p>Micro frontends is a set of frontend applications in a browser window. They conform the following paradigms:</p><ol><li><strong>Technology agnostic</strong>. Any application can use any technology with an unlimited set of tools. HTML5 limits the possibilities to JS and CSS. That’s the only sure thing we can expect from any micro frontend.</li><li><strong>Run-time integration</strong>. The process of developing, building and deploying each micro application should be independent. The focus here is on deploying. Updates, rollbacks and patches should not need any action in the main application. When such a main application exists, it is only a dumb container loading its elements dynamically.</li><li><strong>Single business capability.</strong> <em>“Do one thing and do it well”,</em> says the unix commandment. This is of course relative, especially when it comes to the frontend. But it is a direction for planning an application.</li></ol><p>This distinguishes it from an ordinary modular website. Each service is an independent instance responsible for its job. They should not care about each other’s existence. Only the browser window displays them together.</p><h4>The key benefits of Micro Frontends:</h4><ul><li><strong>Teams working on different features have independence.</strong> They don’t need to synchronize their processes or maintain continuous communication. <em>“Any piece of software reflects the organisational communication structure that produced it.”,</em> says Conway’s law. The divisions between the responsibilities of the teams are visible in the application. This strong split is a good way to sort this out.</li><li><strong>Code can be rewritten app by app.</strong> Rewriting codes is a temptation that is always there. Especially in Agile software development, where the requirements are evolving. Breaking the system down into smaller parts helps to keep the code clean. Here, too, the larger reconstructions are less troublesome. Refactoring or updating the technology does not have to cover the entire system at once.</li><li><strong>Applications can compose any set.</strong> This is achievable with component-based frameworks. But when the boundaries are so strict, it forces the app’s design to serve exactly that purpose. Moreover, technological agnosticism opens up the possibility of consumption by third parties.</li></ul><h3>Iframe approach</h3><p>The first thought on how to achieve it is Iframe. A solution to do exactly that — display many sites in one window. The safest and most stable way to achieve our goal. And this could be the end of the article, if not for the limitations that unfortunately Iframes have. They are not as flexible as we used to when designing the layout. It forces us to forget such popular features as overlays.</p><p>That’s why I mentioned UI designers earlier. Working with these constraints would be a challenge. Even more difficult would be to convince users to switch to the new style. But going back to using Iframes as intended may lead to some progress on this neglected feature.</p><h3>Single document approach</h3><p>The second approach is to use a single main HTML code. Load the JS micro frontend code there and render it to the specified place in the document. This eliminates the limitations of the layout, but has other drawbacks.</p><p>Here we lose the safe boundaries of the default framework configuration. It requires custom build, bundle and deploy. All the optimizations made there are now our problem. We cannot rely on future updates.</p><p>Working in the same context may lead to collisions. Requires some naming convention. HTML identifiers, CSS classes, cookies, or events must have prefixes. The namespaces should be all the more unique when you consider third party sites.</p><p>Speaking of CSS, the convention should be blocking global selectors. But that’s only a part of the problem. For layout consistency, CSS should be somehow global. The solution may be a shared presentation library. But, it must take into account the paradigm of technological agnosticism.</p><p>This is not the end of the difficulties for the UX and UI departments. The interface as a whole often has to assign a view to a global state. It can break the autonomy of micro applications. The strict approach allows micro applications to communicate only through the browser’s native functions. Dispatching and listening to custom events can do much of the work. Yet, it’s a specific type of communication that designers need to feel.</p><h4>Technical concerns of Micro Frontends</h4><ul><li><strong>Bundle size.</strong> Each micro application includes its own copy of the framework and the entire toolkit. It multiplies the amount of data downloaded by the user. Vendor packages can solve this problem. However it violates the idea of ​​team independence.</li><li><strong>The complexity of maintenance.</strong> Pipelines, repositories, and all the infrastructure needed also multiply with each micro-application. Keeping this in order requires extra effort and resources.</li><li><strong>Change of shared parts.</strong> The exact flip side of the advantages of granulation. Problems arise when some common part of the system changes. It can be a small detail that applies to any micro frontend. In this case, you have to go through each micro application one at a time to add it.</li></ul><p>Many micro frontend frameworks are available. They all use one of the methods mentioned with greater or lesser overheads, i.e.:</p><ul><li><a href="https://github.com/frintjs/frint"><strong>FrintJS</strong></a></li><li><a href="https://single-spa.js.org/"><strong>Single SPA</strong></a></li></ul><p>If you don’t use any of them, you have to write one. Which is not complicated and many tutorials introduce nice patterns, i.e.:</p><ul><li><a href="https://micro-frontends.org/"><strong>Micro Frontends Tutorial</strong></a></li><li><a href="https://martinfowler.com/articles/micro-frontends.html"><strong>Martin Fowler — Micro Frontends</strong></a></li></ul><p>Still, when implementing micro frontends, we leave the safe area. For now, it is at the pioneering stage and all the ways seem wacky. It recalls the chaos of pre-framework scripts mayhem.</p><p>With any solution you choose now, you’ll have to adapt to a professional tool once the topic becomes solid.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2a24575558e" width="1" height="1" alt=""><hr><p><a href="https://blog.softwaremill.com/micro-frontends-from-tribes-to-nations-and-back-f2a24575558e">Micro frontends — from tribes to nations and back</a> was originally published in <a href="https://blog.softwaremill.com/">SoftwareMill Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Context API vs Redux — the eternal dichotomy]]></title>
            <link>https://blog.softwaremill.com/react-context-api-vs-redux-the-eternal-dichotomy-24639907fc98?source=rss-af1707cfe08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/24639907fc98</guid>
            <category><![CDATA[react-context-api]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Tomasz Krawczyk]]></dc:creator>
            <pubDate>Wed, 29 May 2019 07:11:48 GMT</pubDate>
            <atom:updated>2019-05-29T07:11:48.355Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Context API vs Redux — the eternal dichotomy</h3><p><strong>Personal thoughts after dealing with this dilemma at work. TL;DR: vote for Redux.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*DUbJut1ulJVfzYvN85wQFw.jpeg" /></figure><p>The attitude towards Redux for fellow React developers is complicated. Although they know it and often appreciate its usefulness, they tend not to use it. For a number of reasons. It’s complex. It’s an external library. It has coarse patterns. It’s often overused. It’s (let’s be honest) too conventional.</p><p><em>Avoiding Redux</em> became craft challenge and proof of an architectural skill. Presentations closed with words <em>“and we don’t need Redux at all”</em> had a guarantee of loud applause. Yep, I also clapped…</p><p>Sooner or later though, all those smart solutions had to face the real life and deal with the creativity of the project owners. That’s when the second punchline enters — <em>“Ok, let’s switch to Redux”</em>. Maybe not followed by an applause, but by not so quieter sounds of laughter and relief. Even from the one who is assigned to implement it.</p><p>I have participated in this ritual often enough to become smart in advance. I request the Redux store before the rest of the team admits that it is necessary. To install it before the complexity of code already written gets bigger than these ugly Redux upper snakes.</p><p>Life became a bit more bearable. But then suddenly, React 16.3 introduced new Context API and here it came again… “now <em>we don’t need Redux at all”.</em></p><h3>“O Caesar! These things are beyond all use”</h3><ul><li><em>“Redux is a predictable state container for JavaScript apps.”</em></li><li><em>“Context provides a way to pass data through the component tree without having to pass props down manually at every level.”</em>.</li></ul><p>These definitions are taken from the docs. They seem to clearly define their purpose. Redux is for managing the state of the application, Context is for passing props. On the face of it, there is no conflict. If you ask literally what to choose, Context or Redux — the answer is RTFM. But we all know that the real question is hidden in the context (<a href="https://emojipedia.org/upside-down-face/">🙃</a>). It is older than React 16.3 — <strong><em>Does my app need Redux?</em></strong></p><p>Many projects I did were not using Redux. They were those where I did not even think about using a global store from the draft concept stage. Where the boundaries of data containers were clear and obvious. Where their processing and calculations could fit in some simple methods and not overflow the component code. For instance they were collections of articles with <em>one-route-one-fetch</em> rule. Other times, it was a dashboard with sections for departments that do not share anything in common.</p><p>The most difficult condition is the certainty that this would not change. Because everything can change in Agile. The popularity of this approach is so indisputable that often people work with its paradigms without naming it so.</p><p>So then some global status occurs — user preferences and data which, as it turned out, these departments have in common. The first significant <em>“Redux Alert” </em>blinked. When this alert appears later cyclically, more and more frequent, it leads to the point mentioned in the introduction — <em>“Ok, let’s switch to Redux”</em>.</p><h3>“We are standing on the shoulders of giants”</h3><p>The ideal component-based design is built with independent blocks. Blocks controlled just from above via props, that can be reused, removed or modified without affecting the rest of the structure.</p><p>This model isn’t strict, nor impossible to achieve, nor obligatory as well. As long as our job is not to chase the absolute, but to make stable apps with clear code to meet client demands, a sense of control over the project is more important.</p><p>When I set avoiding global state as my architectural goal, I ignore the <em>Redux Alerts</em>, but keep the code flexible, DRY, KISS and SLAP. It leads me to a wonderful custom solutions and patterns. They were, for sure, a very valuable contribution to the heritage of global technical thought, but made my project such a special child, that only I can love it.</p><p>Reinventing the wheel is fun, especially if you know the original wheel. But all this mechanisms already have the patterns that every new guy with <em>“React/Redux”</em> in CV will get at once. Not even mentioning debugging tools and the whole ecosystem grown around Redux for this years. (By the way, it can also be an argument for the discussion <em>“Redux vs other state managers”</em>).</p><p>I started to consider<em> switching to Redux</em> not as a fail or surrender, but the way to deal with the title dilemma. State manager is here just to help in managing the state globally. <strong><em>Start the project without Redux if you feel you don’t need that help. You can always implement it later.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24639907fc98" width="1" height="1" alt=""><hr><p><a href="https://blog.softwaremill.com/react-context-api-vs-redux-the-eternal-dichotomy-24639907fc98">React Context API vs Redux — the eternal dichotomy</a> was originally published in <a href="https://blog.softwaremill.com/">SoftwareMill Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>