<?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 Maksim Samoilov on Medium]]></title>
        <description><![CDATA[Stories by Maksim Samoilov on Medium]]></description>
        <link>https://medium.com/@maksim.samoilov?source=rss-2357e0cddb4b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Kvgyyfz-i1u8nBwLYwmuLA.jpeg</url>
            <title>Stories by Maksim Samoilov on Medium</title>
            <link>https://medium.com/@maksim.samoilov?source=rss-2357e0cddb4b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:52:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@maksim.samoilov/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[Platform engineering: insider note]]></title>
            <link>https://medium.com/@maksim.samoilov/platform-engineering-insider-note-8ea05d9625c8?source=rss-2357e0cddb4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ea05d9625c8</guid>
            <category><![CDATA[devex]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Maksim Samoilov]]></dc:creator>
            <pubDate>Sun, 20 Jul 2025 21:25:35 GMT</pubDate>
            <atom:updated>2025-07-20T21:25:35.050Z</atom:updated>
            <content:encoded><![CDATA[<p><em>the origins of platform engineers; carving new paths; mindset and risk; what future brings us.</em></p><p><strong>Disclaimer:</strong> this post is written <strong>without any AI</strong> usage. It is backed by bare hands-on experience, doesn’t use any generated illustrations, text translations or stylizations (so I’m sorry for any bad English you might encounter below), and doesn’t try to trick algorithms into injecting this post to your feed.</p><p>I commit to <strong>never use AI for generating public or creative content</strong>. <a href="https://link.springer.com/article/10.1007/s00146-023-01857-0">Dead internet theory</a> might still be a theory, but it certainly doesn’t sound crazy now, in 2025. We, as creative workers, need to make an effort to keep the web alive.</p><p>Sometimes I’m being asked by my friends or family members: what do you do? Do you write code for apps? Do you create data pipelines? At first, I struggled a lot with an answer, and later came up with something simple enough for non-IT people to understand, without digging too much into details: <strong>I help other engineers do their job better</strong>. This is usually enough to avoid explaining about CI/CD or observability.</p><p>But at the same time, this simple answer is the cause of my doubts and anxiety, because every time I do something, I question myself — do I help, really? Will this thing I’m currently working on, be used and appreciated by anyone?</p><p>I don’t have thousands of abstract users, but a few individuals who are technically skilled enough to review and criticise my code, and who I see every day at the meetings. My clients are experienced enough to build complex workarounds for most technical problems they encounter. My projects can have literally anything as an outcome, targeting implicit patterns and pains in how engineering teams operate.</p><p>Welcome to the world of <strong>Platform engineering</strong>.</p><p>All engineering teams are the same, though each one is different from the other. There are common patterns in workflows of individual engineers, teams and departments across the globe, but these workflows are distinguishable enough to be resistant to generalisation. Otherwise, we would have universally applicable CI pipelines, project tracking and many other reusable assets in the industry (and someone would make good money selling them).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dXDBY-x8t4Bb55P3" /><figcaption>Drivers going different directions on highway interchange in Chicago (photo by E. Jason Wambsgans)</figcaption></figure><p>Creating universal tools and processes for engineering departments is impossible in practice, but the industry pressures for more effective processes, which means less time spent on toil work. That usually leads to appearance of internal toolset, sometimes referred as ‘platform’.</p><p>The idea of platform engineering was not invented by some big tech or individual, but emerged naturally in many tech companies independently in 2010-s. It may sound obvious now that having a dedicated team which is responsible for internal tools, development processes and documentation databases, is generally a good thing.</p><p>There is an elephant in the room, though, which we’ll try to ignore for a moment.</p><p>Platform teams are rarely created intentionally, because it’s hard to predict the workflows and how they evolve in growing business. It’s only a matter of recognition — engineers usually produce internal tooling and processes while getting stuff done. We are lazy and want things to be done faster with less manual interaction, and we do so having even a moment of spare time between valuable tasks.</p><p>Supporting such by-products, though, can be a burden for engineering teams. Business will naturally try to focus the effort on what’s profitable right now, while regular developers are left with glue code and rough processes to support all by themselves with barely any time window for that. The role of platform engineering is to absorb this burden, being a <strong>multiplier</strong>, not an additive, for productivity of other teams.</p><p>So, what are we, platform engineers, multiplying, exactly? There are basically two parts contributing to this: <strong>toil removal</strong>, and <strong>service enablement</strong>. In simple words, for regular engineers those are:</p><ul><li>doing stuff we already do, faster, by automating parts of typical work which are repetative and/or error-prone;</li><li>doing new stuff, which we didn’t have the right tools to do before, and which was expensive for us to implement.</li></ul><p>Toil removal helps the team concentrate on what actually matters. And to optimize this part, we as platform engineers need to work closely with (or even become part of) the team we’re gonna help. Often, if not always, platform engineers originate from other engineering teams, because they already know the nature of their toil. These are some ideas where to start looking:</p><ul><li><strong>Setting up a project</strong>: if you cannot hop on to the project or issue and start working right away, there is a high chance the team spends additional time and effort doing nothing of value on every single unit of valuable work;</li><li><strong>Automating procedures</strong>: developers use a lot of different systems (CI/CD, code analyzers, review tools, task trackers, etc…). Moving data, statuses or results of your work from one tool to another might be a real time sucker and demotivator for developers;</li><li><strong>Configuring pre-production environments</strong>: deploying changes to environments with proper isolation can be tricky, and misconfigurations may lead to painful conflict resolution or polluted test environments.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fEfMckXdDYnkuTHi.jpg" /><figcaption>Cheetah needs to move faster to reach his prey (photo by Jan Hrbáček)</figcaption></figure><p>Efficient development lifecycle increases individual and team performance drastically. But that’s only one part of toil, related only to development workflow. Some teams (especially data-related, like data engineers), also have routine maintenance related to stuff already released to production. This maintenance substracts from time the team spends on development and is also a major source contributing to attrition and total burnout, so optimizing maintenance will increase team health. Such maintenance may be found in:</p><ul><li>Unexpected changes in upstream of the feature or data pipeline</li><li>Underlying infrastructure changes (such changes often require service restarts and cause downtime)</li><li>Small changes in business logic, requested by stakeholders or PM.</li></ul><p>Compared to toil removal, service enablement opportunities is much trickier for us to find and address. Engineering teams usually have their core functions in place and scopes covered (otherwise what are they paid for?). How could platform engineering help with this?</p><p>As I mentioned above, with toil removal we look at the team workflows from the inside. With service enablement it’s vice-versa: we need to look from the outside, both as technical experts and consultants. The two areas external to the team are: business (stakeholders, both direct and implicit), and industry (technical advancement of mainstream engineering).</p><p>Platform engineers should act as industry experts and advise teams how to achieve business goals in a better way, with [full, or at least some] awareness on how the same or similar things are done outside of the company, considering industry best practices, methodologies and modern tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2PN88hyXHspLTrpx1O7iw.png" /><figcaption>A pack of wolves breaks trail through fresh snow in Alaska (photo by Aaron Huey)</figcaption></figure><p>It’s harder to give useful examples, so I’ll just name a few ‘enabler’ projects from my experience:</p><ol><li>Streaming platform: a toolset which enabled the deployment of separate Kafka Connect clusters with custom sets of connectors and transformations. This allowed data teams to experiment with streaming data and increase timeliness of data delivery in multiple domains.</li><li>Airflow for non-engineers: an instrumental and processual framework which allowed non-engineers, such as data analysts, to schedule their datamart and dashboard updates consistent with upstream data pipelines, without any coding knowledge. Previously, there were only cron-like updates, and the data users complained on dashboard being “not updated” because the update happened before the upstream was ready for consumption.</li></ol><p>The first thing we need to think about is developer experience (which is another name for platform engineering), which helps us shape our solutions and make right technical decisions. Many companies describe their platform engineering as <strong>golden paths </strong>— ways to do basic things, like:</p><ul><li>how to deploy a service which follows the standards of my department?</li><li>how do I test service locally if it uses external systems which are hard to replicate?</li></ul><p>I like to think about the outcomes of platform development as products: they are meant to cover user needs, either solving their problems better than before, or even reshaping the way they live. It is a nice and easy concept, which sets right expectations and boundaries between platform unit and other engineers.</p><p>But there is an elephant in the room, do you remember?</p><p>Platform engineering is not easily susceptible to measuring, and usually such measurements are impractical, requiring too much time and effort to be sensible. You have a small user base which does not pay for the stuff you make. All of the methods the industry created for product crafting, are not applicable — you cannot analyze or A/B test if you have 10-ish users.</p><p>The development tempo can be either <strong>fast with unknown impact</strong> (which means, proving value to business can be hard), or <strong>too slow to be actually useful</strong> (which means, solving problems of other developers in reasonable time). Until the humanity invents some way to measure developer productivity in money, there is not much we can do to prove our existence to business, so we can only rely on trust and good will.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WZVVR2bbMzJ6jr25.jpg" /><figcaption>Snake and toad are having a good time (photo by Robert Oliva)</figcaption></figure><p>If the company has a stable Platform or DevEx unit, it is a good sign of developed engineering practices and financial stability in some sense. Platform units are good multipliers when other teams provide good additives. However, that also means being the first unit to be eaten when hard times come. In the best scenario, platform engineers may be used as patches in other teams, doing regular engineering until times are good again. Worst case, they’ll be first to get rid of, being ‘not critical for business’.</p><p>So, where do we go from here?</p><p>First, <strong>platform engineering will likely stay</strong>. The need of internal tooling will be with us as long as humans write code, with or without AI.</p><p>Second, the focus may <strong>shift from ad-hoc tooling to architectural oversight and enforcing good rules</strong> on services. The reason for such change is increased code production, possibly with less human involvement, so we, like never before, need to carefully monitor the structure and behaviour of resulting services and pipelines. Preventing disasters will be our first priority.</p><p>Finally, I expect <strong>more collaboration between platform engineering units and infrastructure teams</strong>, such as DevOps and Security. When other engineers are our clients, we should make friends elsewhere. There is much more to share, and the potential looks great.</p><p>On that note, I’m done with this pointless rant. Let’s get back to work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ea05d9625c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Project Management in Python]]></title>
            <link>https://medium.com/@maksim.samoilov/project-management-in-python-706aa7d6967c?source=rss-2357e0cddb4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/706aa7d6967c</guid>
            <category><![CDATA[uv]]></category>
            <category><![CDATA[python-package-management]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[python-packaging]]></category>
            <dc:creator><![CDATA[Maksim Samoilov]]></dc:creator>
            <pubDate>Wed, 02 Jul 2025 23:47:03 GMT</pubDate>
            <atom:updated>2025-07-06T15:13:43.526Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Some thoughts on Python codebases; how development processes shape ecosystem future; inertia as invisible tax; how to build Python in 2025.</em></p><p><strong>Disclaimer:</strong> this post is written <strong>without any AI</strong> usage. It is backed by bare hands-on experience, doesn’t use any generated illustrations, text translations or stylizations (so I’m sorry for any bad English you might encounter below), and doesn’t try to trick algorithms into injecting this post to your feed.</p><p>I commit to <strong>never use AI for generating public or creative content</strong>. <a href="https://link.springer.com/article/10.1007/s00146-023-01857-0">Dead internet theory</a> might still be a theory, but it certainly doesn’t sound crazy in 2025. We, as creative workers, need to make an effort to keep our internet alive.</p><p>I started working with Python almost 7 years ago. Back then, there were endless articles and online courses which spreaded the following practices through the whole community:</p><p>1. Using system Python environment</p><p>2. Using pip install to manage dependencies in the project</p><p>3. Using specific 3rd party tools to handle different parts of SDLC (which stands for Software Development Lifecycle)</p><p>The typical flow for any newcomer looked like this:</p><ul><li>Install Python interpreter to the system</li><li>Create main.py with some code</li><li>Iteratively install dependencies with pip</li></ul><p>It is very easy to start a Python project like this. Real difficulties come later when you need to update a library, and your runtime fails miserably with the most obscure error messages because your pip install command didn’t check compatibility with other installed packages. One can argue that default pip has this feature, and they’re right — but this feature <a href="https://pip.pypa.io/en/stable/topics/dependency-resolution/#backtracking">only appeared in November 2020</a>, almost 27 years since Python first release. This is not a problem of pip, but rather a problem with <em>imperative approach to project setup</em>.</p><p>I came to Python after years of experience with Java backends, and I immediately noticed something wrong with it: there was an obvious lack of project/build management tools, while Java had Maven and Gradle for years. Just think about it for a second:</p><ul><li>Poetry 1.0 was released at late <strong>2019</strong></li><li>Gradle 1.0 was released at <strong>2012</strong></li><li>Maven 1.0 was released at <strong>2004</strong>, 15 years yearlier!</li></ul><p>These tools implement a paradigm called <em>declarative package management</em>, where you have a configuration file which describes the project, its dependencies and lifecycle, and a single tool which recognizes this file and implements SDLC stages for you.</p><p>In the newcomer scenario described above, you would have error message from your build tool that the library you’re trying to update, is not compatible with the current environment, so you would catch the problem on build stage, not in runtime.</p><p>It would be also nice to have some kind of dependency locking, so from the same configuration files you could recreate the same project state, something called <em>reproducible builds</em>. You probably want this, for example, to ensure your code works locally the same way as after <a href="https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/overview.html#separate-dag-processing-architecture">deploying to production instance of Apache Airflow</a>.</p><p>As I mentioned, Python community came up to the idea of having a unified build management tool 15 years later after Java community. I believe there are two main reasons for it:</p><ul><li>PEP committee has its power extending much further than pure language specification (or, rather, has <em>very inclusive</em> opinion on what should be a part of language spec)</li><li>as Zen of Python states, <em>‘There should be one — and preferably only one — obvious way to do it.’</em></li></ul><p>When we try to apply these two, it becomes obvious that it is difficult to develop a tool which would make the whole SDLC for us, because different parts of SDLC require different language specs (as PEP committee believes), but those are developing very slowly. So the developers of such tools face hard choice — to implement their own specs, or to wait for Python core community to write, discuss and pass a PEP for it.</p><p>As a result, we are having many different tools in Python ecosystem, which implement only some subset of SDLC. In typical legacy Python project you have:</p><ul><li><strong>pip</strong> as default, embedded way to install dependencies</li><li><strong>requirements.txt</strong> as a text definition of which packages you want to have</li><li><strong>venv</strong> as a way to isolate project-specific environment from system-wide</li><li>myriad of tools to run tests, handle documentation, lint, build packages, etc…</li></ul><p>On top of this you may have conda, poetry, pipenv, pyenv, pipx, hatch, tox, nox and countless more. Usually, when starting working on a legacy project, you’ll find some collection of these tools, glued together with some shell scripts or makefiles. Onboarding to every new Python project adds overhead, which slows down developers and affects teamwork. Is it manageable? Yes. But should it be that hard? Definitely no.</p><p>In any project and ecosystem I, as a developer, expect these operations to be easy, reproducible and available out-of-the-box:</p><ul><li><strong>Manage runtime environments</strong> (JDK/JRE versions, Python interpreters): you may want to work on different projects using different REs, which must be isolated from each other;</li><li><strong>Manage project dependencies in different scopes</strong>: you may want to use linters or embedded databases locally, while keeping them away from your production environment;</li><li><strong>Maintain stage order</strong>: you probably want to compile the project before running tests on it;</li><li><strong>Reproduce any stage with the same result</strong> in every possible environment: you probably want your tests to succeed and your docs to be generated, both on CI and locally, otherwise you’ll have hard time debugging environment-dependent issues; also you need the same set of dependencies (including transitive ones) everywhere;</li><li>[optional] <strong>Define custom steps or tasks</strong>: sometimes the project has tricky steps in its lifecycle, so I need a tool which is open to non-invasive extension.</li></ul><p>This is a bare minimum for project to be pleasant to work with. But until recently, most of these were not implemented in any widely adopted tool in Python ecosystem.</p><p>At EuroPython’24 conference, <a href="https://ep2024.europython.eu/session/the-catch-in-rye-seeding-change-and-lessons-learned/">there was a talk</a> by <a href="https://medium.com/u/d38a80b1d039">Armin Ronacher</a>, the creator of <a href="https://rye.astral.sh/">Rye</a>, on the same topic, praised by listeners. There is an increasing demand for production-grade tools in Python ecosystem, since Python is gaining more and more popularity with rapid growth of ML and data-related engineering. In other words, the field where Python flourished due to its freedom and ease of use, stops being a playground for data scientists, and becomes closer to production systems, thus causing hunger for consistent and reliable development experience.</p><p>Python is rapidly improving under the pressure from industry, but things are still far from perfect. Most projects still use requirements.txt files to manage dependencies, while the amount of tools grows every year, leaving both newcomers and experienced devs in confusion and not providing clear and expected way to work with Python projects.</p><p>This was well-represented by a <a href="https://discuss.python.org/t/packaging-vision-and-strategy-next-steps/21513">Python Packaging survey and the following discussion</a> — people want a tool which “just works”, a unified solution for the whole problem of Python project management, not just a collection of fragmented tools which all do one or two things. Significant progress was reached, and several important standards have been accepted recently:</p><ul><li><a href="https://peps.python.org/pep-0735/">PEP-735: Dependency groups</a></li><li><a href="https://peps.python.org/pep-0751/">PEP-751: Universal lockfile format</a></li></ul><p>However, after 2.5 years, there is still little progress overall. The inertia of Python steering committee forces developers of tools to jump into PEPs and <a href="https://discuss.python.org/t/lock-files-again-but-this-time-w-sdists/46593">push them hard</a> until a decision is made. So, I would not rely on waiting for standard Python project management tool to release any time soon, and consider 3rd party tools instead (like it is with Maven and Gradle in Java ecosystem, developed under foundations not directly managing development of Java platform itself). As we can see, including packaging into the scope of Python steering committee was damaging to the development of such tools and delayed the ecosystem growth for years.</p><p>There are now fully-functional 3rd-party project management tools:</p><ul><li><a href="https://pdm-project.org/">PDM</a> — a very powerful solution, brought to us by <a href="https://medium.com/u/8a7cdd475d09">Frost Ming</a> (and being maintained solely by him, which alone doesn’t let me call it a production-grade tool);</li><li><a href="https://rye.astral.sh/">Rye</a> — a tool which is supposed to be soon replaced and succeeded by uv;</li><li><a href="https://docs.astral.sh/uv/">uv</a> — initially being an alternative to pip, it recently absorbed many features from Rye.</li></ul><p>I would love to include Poetry into this list, but it still lacks Python interpreter management (<a href="https://github.com/python-poetry/poetry/releases/tag/2.1.0">the closest approximation was introduced</a> in Feb’25, still lacking management functionality) and thus fails to become a single entrypoint for project management.</p><p>My current best solution for Python project management is <a href="https://docs.astral.sh/uv/">uv</a> — backed by Astral, it looks like the most promising candidate for me to cover my needs, and the only thing still missing (as of Jun’25) is custom tasks.</p><p>Managing interpreters with uv is simple: you fetch a version of interpreter by one simple command <strong>uv python install</strong>, and you link it to a specific project using <strong>uv python pin</strong>. No more confusion with system interpreters or <a href="https://github.com/pyenv/pyenv/issues/3274">pyenv compilation issues</a>.</p><p>For dependency management, I use standard dependency blocks from <a href="https://packaging.python.org/en/latest/specifications/pyproject-toml/#">pyproject.toml spec</a>, and a simple command <strong>uv sync</strong> downloads all needed packages in async manner, checks for dependency conflicts and installs into the automatically created venv. It also creates a <strong>lockfile </strong>— a special file with hard links to all packages included explicitly or transitively. If a lockfile exists, it is a source of truth on what is installed in current environment, and you will need to run sync again if you want to update that list. Lockfile, committed to a repository, ensures reproducibility of your environment.</p><p>For package distribution, uv recently bundled <strong>build</strong> and <strong>package</strong> commands, which essentially mirror twine with regards to repository configuration from pyproject.toml.</p><p>When it comes for testing, linting and other local stuff happening with the code, uv provides <strong>tool</strong> subcommand for managing tools — extra packages installed into global uv-managed environment, so you can use one latest version of ruff everywhere across your uv-managed projects.</p><p>One thing <a href="https://github.com/astral-sh/uv/issues/5903">still lacking</a> in uv (as of Jun’25) is <strong>scripts</strong>, or <strong>tasks</strong>, or <strong>commands</strong> — customized suites of commands which are essentially a developer interface for the project. This is now perfectly covered by <a href="https://poethepoet.natn.io/">Poe the Poet</a>, but I plan to substitute it with native uv functionality once it gets released.</p><p>Overall, I’m very satisfied with uv and glad to see the improvements, but there is a sad thought at the back of my mind.</p><p>No matter how hard Python devs try to invent new standards and modernize the ecosystem, most of the projects will still be managed by pip+requirements file. The power of inertia is very strong, and there is not much we can do.</p><p>If you’re starting new projects — consider package managers, like uv or PDM. They are developed with one goal in mind — to make your life easier, so you finally stop gluing and start coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/0*RIoI3NzwfEYESei0.png" /><figcaption><a href="https://xkcd.com/1987/">This</a> is from 2018, still relevant for too many.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=706aa7d6967c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>