<?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 Jepbar Asgarov on Medium]]></title>
        <description><![CDATA[Stories by Jepbar Asgarov on Medium]]></description>
        <link>https://medium.com/@asgarovjepbar00?source=rss-90475ab8f8c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U33WsC9z5427YuezRJbXVw.jpeg</url>
            <title>Stories by Jepbar Asgarov on Medium</title>
            <link>https://medium.com/@asgarovjepbar00?source=rss-90475ab8f8c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 00:44:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@asgarovjepbar00/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[No…  Math != Programming]]></title>
            <link>https://medium.com/@asgarovjepbar00/no-math-programming-420cbf0b1ce3?source=rss-90475ab8f8c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/420cbf0b1ce3</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Jepbar Asgarov]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 12:00:19 GMT</pubDate>
            <atom:updated>2025-10-02T12:00:19.650Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*709rzrYvzeZorxWwJg_uqg.jpeg" /></figure><h3>No… Math != Programming</h3><h3>A Personal Note</h3><p>Three years ago, I wrote an article titled <em>“</em><a href="https://medium.com/@asgarovjepbar00/how-math-programming-7ba0cdec155c"><em>How (Math == Programming) ?</em></a><em>”</em>. At that time, I was fresh from years of competitive math and just starting my software career. To me, programming felt like math with curly braces…precise, logical, elegant. Like solving puzzles, but with a laptop instead of a pencil.</p><p>But experience changes perspective. Reading my old article a few weeks ago, I disagreed… I realized: <strong>Math is not Programming.</strong></p><h3>Where Math and Programming Feel the Same</h3><p>Let’s start with the overlap, because that’s what fooled me in 2022:</p><ul><li><strong>Precision in Action</strong> → In both math and programming, a tiny mistake breaks everything. One missing semicolon and suddenly your program is screaming at you like an angry neighbor.</li><li><strong>Problem solving</strong> → In programming we solve humans’ real-world problems with code. In math we solve math problems. Both require logical thinking, creativity, and share an important intersection: <em>problem solving</em>. In programming you sometimes have to figure out a way to fix a bug while the production is on fire.</li><li><strong>Edge cases</strong> → In math: “What about n=1?” In code: “What if the user clicks the button a hundred times while simultaneously turning their phone upside down?”</li><li><strong>Clarity matters</strong> → In math, unclear reasoning makes your proof hard to follow. In programming, unclear code makes your teammates cry, swear, or both. Clear code = happy humans.</li></ul><p>If you only look here, Math looks identical to Programming. But life as a software engineer showed me what lies beyond.</p><h3>Where Programming Breaks Away</h3><p>Let me illustrate with some comparisons:</p><ul><li><strong>Math is about truth. Programming is about trade-offs.</strong><br> In math, a theorem is either correct or not.<br> In programming, a system can be “good enough” for now if it is … fast enough, safe enough, stable enough. Sometimes, good enough really is good enough… unless your manager sees it, then suddenly it’s <br>“meh, fix it yesterday.”</li><li><strong>Math proofs live forever. Code ages like milk.</strong><br> Euclid’s proof from 300 BC is still valid.<br> A codebase from 2019 may already be impossible to run because dependencies are broken, libraries are deprecated ….</li><li><strong>Math problems end. Software problems don’t.</strong><br> Once you solve a math contest problem, it’s over.<br> Software is alive: bugs, feature requests, scaling, new APIs, changing business logic … your “solution” today becomes tomorrow’s headache.</li><li><strong>Math values elegance. Programming often values pragmatism.</strong><br> A clever 3-line math solution is celebrated.<br> In code, 3 clever lines might be unreadable. Sometimes your team prefers 15 lines that anybody could understand.</li><li><strong>Math is individual. Programming is teamwork.</strong><br> In contests, it’s just you, paper, and pencil.<br> In software, it’s code reviews, version control, merge conflicts, stand-ups, and compromises with humans who think tabs are better than spaces. Yes, that argument still exists.</li></ul><h3>Closing Thoughts</h3><p>If my 2022 self thought programming was math’s twin, my 2025 self knows it’s more like math’s cousin … but living a very different life.</p><p>So here’s my new formula:</p><p><strong>Math ≠ Programming</strong></p><p>And that’s exactly why I enjoy both … one teaches you perfect logic, the other teaches you how to survive chaos… gracefully (or at least mostly).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=420cbf0b1ce3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Put your cap on properly]]></title>
            <link>https://medium.com/@asgarovjepbar00/put-your-cap-on-properly-b953c75f70d4?source=rss-90475ab8f8c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b953c75f70d4</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[partition-tolerance]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[consistency]]></category>
            <category><![CDATA[availability]]></category>
            <dc:creator><![CDATA[Jepbar Asgarov]]></dc:creator>
            <pubDate>Fri, 14 Oct 2022 04:56:01 GMT</pubDate>
            <atom:updated>2022-10-14T04:56:01.209Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*Kvwo8GmvuJQ46u-jCEfOiA.png" /></figure><h4>What is CAP theorem?</h4><p>In this rapidly growing network, relying on a single server to serve large systems is not something a good programmer would do. Horizontal scaling, or creating multiple servers instead of one big server, is crucial in almost every system. In 2000, at the Symposium on Principles of Distributed Computing, computer scientist <a href="https://en.wikipedia.org/wiki/CAP_theorem">Eric Brewer introduced the CAP theorem</a>, also known as Brewer’s theorem. In the CAP theorem, C stands for consistency, A for availability and P for partition tolerance. Let’s have a closer look at them:</p><h4>Consistency</h4><p>Consistency of server means that every read request receives either the most recent data or an error. In a consistent system, when a client writes a value to a server and receives a response, they should not receive an older version of that value from the server afterwards. In other words, the information is always up-to-date.</p><h4>Availability</h4><p>In an available system, if the client sends a request to a server that hasn’t crashed, the server will eventually have to respond to the client, regardless of the freshness of the data on that server. The system remains operational at all times, but there is no guarantee you will get the most recent data.</p><h3>Partition tolerance</h3><p>The system continues to operate despite any <a href="https://www.sciencedirect.com/topics/computer-science/network-partition">network partitions</a> or failures. In case of a communication break between nodes, the messages sent between the different nodes are lost. Messages could be to update a value in a database or to change another commonly used entity. If a system is partition tolerant, it must be able to recover from any network partitioning.</p><h3>You can’t have it all</h3><blockquote>The CAP theorem states that it is not possible to provide more than two out of the three conditions above for a distributed system.</blockquote><p>Let’s illustrate this with a simple example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*S4tDr62B0d5nqcUvkViGmw.png" /></figure><p>There are two servers, one in London and one in Tokyo. Suppose that the value of X is 20 for both servers before the network partition occurs. If our system provides the CAP conditions, it must be consistent, available, and partition tolerant in the event of a network outage between the nodes. Take a look now at the situation in a network partition. The user sends a PUT request to the server in London to update the value of X to 26 and then sends a GET request to the server in Tokyo to get the value of X.</p><ol><li>If the system is <strong><em>Available and Partition tolerant,</em></strong> then it must respond to both of the requests. The system also has to continue working. But because of the network partition, the two servers will not be able to sync the data. That’s why the second request, which is going to the server in Tokyo, will not get the most recent data. It will get X = 20, which contradicts with the <strong><em>Consistency</em></strong> condition.</li><li>If the system is <strong><em>Consistent and</em></strong><em> </em><strong><em>Partition tolerant,</em></strong> then the first request will return an error. This is because the system has to continue working, and the consistency must guarantee data replication across the servers. But due to the network partition, it will not be able to provide this consistency. As you can see, this will contradict with the <strong><em>Availability</em></strong> condition.</li></ol><h4>Consistency &amp; Availability</h4><p>As you can imagine, network failures are an inevitable problem in distributed systems. CA databases provide consistency and availability, but in case of partition, the system will go down. That’s why CA is not a very practical choice. In my opinion it’s not fully CA too, because if the system goes down during any network partition, it isn’t a fully available system.</p><h4>Consistency &amp; Partition tolerance</h4><p>In the systems in which consistency is chosen over availability, inserting or updating requests will return an error due to network failures and not be able to replicate the data to all servers. It guarantees the consistency, but not the availability. The use cases for CP can be banking systems, airline systems, etc. In these types of systems, consistency is of the utmost importance. You can imagine the consequences of selling the same ticket of one flight to several customers.</p><h4>Availability &amp; Partition tolerance</h4><p>If the system picks availability over consistency, response data will be available during any network partition, despite its freshness. It could for example be the number of likes on a post or a follower list, or anything where the customer availability is the most important. Right now you may get the wrong number of likes, but after the network partition is over, the system will sync the data and eventually the system will become consistent.</p><h4>Conclusion</h4><p>In the end, it’s all up to you. Take a hotel reservation system, for example. If you choose CP, customers won’t be able to make a reservation in case of network partition, even if there are some rooms available. But if you make it CA, two customers may book the same room. This is not a desired situation as well. Choosing CA or CP depends on your possibilities and priorities. If you can reconcile the situation of the two customers with the same room booking, and you don’t want to lose any customers because of availability issues, then CA might be your best option. If the cap fits, wear it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b953c75f70d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How (Math == Programming) ?]]></title>
            <link>https://medium.com/@asgarovjepbar00/how-math-programming-7ba0cdec155c?source=rss-90475ab8f8c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ba0cdec155c</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[olympiad-exam]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[career-paths]]></category>
            <dc:creator><![CDATA[Jepbar Asgarov]]></dc:creator>
            <pubDate>Mon, 20 Jun 2022 07:25:21 GMT</pubDate>
            <atom:updated>2022-06-22T04:19:39.637Z</atom:updated>
            <content:encoded><![CDATA[<h3>How (Math == Programming) ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*rRGSzDpIZpkBBTwLCmofCA.jpeg" /><figcaption>IMO 2018. Contest hall</figcaption></figure><p>Currently, I am a back end developer with two years of experience. Previously, I had spent five years preparing for international mathematics Olympiads, so you might say that I am a coder who comes from a mathematics background. There have been several mathematical competitions I’ve participated in, but I found <a href="https://www.imo-official.org/">IMO</a> the most challenging. I participated three times and won <a href="https://www.imo-official.org/participant_r.aspx?id=27002">two bronze</a> medals.</p><p>There are a maximum of 6 students per country, so all participants are the most talented students of their countries and the challenge is so challenging. That’s why you need to study more and more if you want to be awarded. Throughout this blog, I will be highlighting the benefits of participating in math competitions, for coding. Let’s start.</p><blockquote><strong><em>Feeling responsible</em></strong></blockquote><p>The intense study for this big Olympiad, competing against the smartest students from around the world, made me feel like I am responsible for something. Having been selected in the top 6 of my country, I was filled with a strong sense of responsibility. I felt the importance of my studies and the whole process, even during the preparation for the Olympiad. At that time, I was just 16 years old, and I think feeling that kind of importance at such a young age gave me a lot of experience. By working on projects now, I am able to feel the importance of what I do, and each project is an accomplishment in my eyes. It was much easier for me to adapt to the process when I started my programming career. You must take account of your code. Every manufacturer must be responsible for his product. Your code is your product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*w-VwkSLu4voPvENYypuQ_g.gif" /></figure><blockquote><strong><em>Think outside the box</em></strong></blockquote><p>Mathematicians consider combinatorics one of the most important branches of mathematics. At IMO, when you solve a combinatorial problem, you have to think outside the box. It is not enough knowing several theorems or problem-solving techniques. You need to solve the problem by imagining something different by using the tools, theorems, and techniques. For example, making connection between the problem and another different problem, making chain and solving them backwards till the beginning point. After working on various projects, I realized that solving combinatorial problems looks like the system design of the project. When you start a new project you need to implement numerous features, satisfy the clients, making it scalable and so on. You will have to be aware of so many things. At first, you will divide the whole project into many little parts and start by solving one by one. For example, deciding the kind of database SQL or NoSQL then choosing one database management system from selected category… using REST API or GraphQL … etc. After making all decisions, you need to design the entire system by using those chosen tools. You know if the project is complicated you will have to add your own generated ideas in several parts of project, for example the structure of database. Solving the partial problems, making decisions looks like deciding your problem-solving techniques or theorems or some kind of tools when solving the combinatorics problem. The own generated ideas of your project looks like the extra imagination needed in solving combinatorics problem at IMO.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ihW67bJ2_GcthLtnRkFoJw.jpeg" /></figure><blockquote><strong><em>Testing</em></strong></blockquote><p>If you want to be more than a good programmer, knowing how to write good tests is inevitable. Writing tests is like earning time. You give several hours for writing tests, but you will save much more hours of future by doing this. Like testing the project, solving the Olympiad problems also requires tests. If you are in IMO, you can get maximum 42 points, and it means 1 point is more than 1 point of any other field. You have to look all edge cases. You need to explain all points. If you miss explaining some edge case, your loosing point will be more than that simple missed case. I have many friends who missed the award by just a simple missed edge case. It means that you have to be so aware in the contest. You need to be the testing part. Being in that mind so many years gave me a huge benefit in programming. When you are working project, you start looking at it like a problem and trying to catch all edge cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*Uus1MOzsh0aFGfhUjBHp9A.jpeg" /></figure><blockquote><strong><em>Clean code</em></strong></blockquote><p>In contest, you need to write your solution descriptive and well explained. You should try to not make the jury confused when he reads your solution. If he doesn’t understand your solution when he reads it for the first time, obviously he will not give the full point, and you will have to make extra explanation and objection. I mean, you should write your solution as simple as possible for making it more understandable. In programming, you must write your code like that. It must be descriptive and well explained, your defined functions must tell what they do by itself. Despite how bad is your code it is OK when you are writing your code, you understand what it does, and you can explain to anybody at the development process. But think the case after several months have passed, and some critic bug came out, and you have to solve it. But now nobody understands that meal cooker fridge. You might need countless days just for understanding the code. In the same way as no written test case, you are now spending more time again. You need to save your time. You need to write your code beautifully. Solution in competition is like the code of project. I realized this similarity immediately after I had started programming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*5z4iGZ15i80Wme45OElrQw.jpeg" /></figure><blockquote><strong><em>Conclusion</em></strong></blockquote><p>In mathematics, everything is proof focused. You have to prove your word, your statement. If there is no any proof, then the statement has no valuable meaning. If you write your code with its proof together, you would have fewer bugs in future. As you know,time is so valuable thing in this world, then you need to save your future by doing something wisely today. Write your test, make your proof and sleep well….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ba0cdec155c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>