<?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 Programming Life on Medium]]></title>
        <description><![CDATA[Stories by Programming Life on Medium]]></description>
        <link>https://medium.com/@real-programminglife?source=rss-253512e6fbfc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Q9mJpNOMqSu4c1XtlOUOdg.png</url>
            <title>Stories by Programming Life on Medium</title>
            <link>https://medium.com/@real-programminglife?source=rss-253512e6fbfc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:02:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@real-programminglife/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[40 Topics Every Java Backend Developer Should Understand P2 — Consistency Models]]></title>
            <link>https://real-programminglife.medium.com/40-topics-every-java-backend-developer-should-understand-p2-consistency-models-4c7c740c1365?source=rss-253512e6fbfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c7c740c1365</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <dc:creator><![CDATA[Programming Life]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 19:16:15 GMT</pubDate>
            <atom:updated>2024-11-14T07:04:40.405Z</atom:updated>
            <content:encoded><![CDATA[<h3>40 Topics Every Java Backend Developer Should Understand P2 — Consistency Models</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZdhnu03DZZheDVG_h075g.png" /><figcaption>Image created with Midjourney</figcaption></figure><p>Consistency models are fundamental concepts in the design and operation of distributed systems and databases. They define the rules and guarantees about the visibility and ordering of updates in a system where data is replicated across multiple nodes or locations. Understanding these models is crucial for backend developers to ensure data integrity, system reliability, and optimal performance.</p><p>In laymam terms, a consistency model specifies a contract between the programmer and a system, wherein the system guarantees that if the programmer follows the rules for operations on memory, memory will be consistent and the results of reading, writing, or updating memory will be predictable.</p><h3>Why Consistency Models Matter</h3><p>In distributed systems, data is often replicated to improve availability and performance. However, replication introduces challenges in keeping the data consistent across different nodes. Consistency models help developers understand and manage these challenges by specifying how and when updates to data become visible to users or applications.</p><p>Key considerations include:</p><ul><li><strong>Data Integrity:</strong> Ensuring that users see accurate and up-to-date information.</li><li><strong>System Performance:</strong> Balancing the need for consistency with the desire for fast response times.</li><li><strong>Fault Tolerance:</strong> Maintaining system reliability in the face of network partitions or node failures.</li></ul><h3>Strong Consistency</h3><p>Strong Consistency ensures that all operations on a data item are immediately visible to all processes in the system. After a write operation completes, any subsequent read operation will return the value of that write or a more recent one. This model provides a high level of data accuracy and predictability but may impact system performance due to the overhead of synchronizing updates across all nodes.</p><h4>Strict Consistency</h4><p><strong>Definition:</strong> The absolute strongest consistency model, strict consistency requires that any read operation on a data item returns the most recent write, regardless of where and when the read and write occur.</p><p><strong>Characteristics</strong></p><ul><li>Instantaneous Visibility: Writes are immediately visible to all processors.</li><li>Global Time Ordering: Operations are ordered according to a global clock.</li></ul><p><strong>Practicality</strong></p><ul><li>Theoretical Model: Not practically implementable in real-world systems due to the impossibility of instantaneous communication and perfectly synchronized clocks.</li></ul><p><strong>Use Cases</strong></p><ul><li>Mainly used as a benchmark to compare other consistency models.</li></ul><h4>Linearizability</h4><p><strong>Definition:</strong> Linearizability ensures that all operations appear to occur atomically and in real-time order. Each operation takes effect instantaneously at some point between its invocation and completion.</p><p><strong>Characteristics</strong></p><ul><li>Real-Time Ordering: Operations are ordered based on their actual invocation and response times.</li><li>Atomic Operations: Each operation appears to happen instantaneously from the perspective of the entire system.</li></ul><p><strong>Use Cases</strong></p><ul><li>Critical systems requiring strong consistency, such as banking transactions and distributed locking mechanisms.</li></ul><p><strong>Considerations</strong></p><ul><li>Performance Overhead: Implementing linearizability can introduce latency due to the need for synchronization across nodes.</li></ul><h4>Sequential Consistency</h4><p><strong>Definition:</strong> Sequential consistency allows operations to appear in a total order that is consistent with the program order on each process. It ensures that the results of execution are the same as if operations were executed in some sequential order.</p><p><strong>Characteristics</strong></p><ul><li>Program Order Preservation: Operations from the same process occur in the order specified by the program.</li><li>Total Ordering: All processes agree on the same order of operations, but this order doesn’t have to align with real-time.</li></ul><p><strong>Differences from Linearizability</strong></p><ul><li>No Real-Time Constraints: Sequential consistency drops the strict timing requirements of linearizability.</li></ul><p><strong>Use Cases</strong></p><ul><li>Systems where the order of operations is important but exact timing is less critical, such as multiprocessor simulations.</li></ul><h4>Causal Consistency</h4><p><strong>Definition:</strong> Causal consistency ensures that causally related operations are seen by all processes in the same order, while operations that are not causally related may be seen in different orders.</p><p><strong>Characteristics</strong></p><ul><li>Causal Relationship Maintenance: Preserves the cause-effect relationships between operations.</li><li>Concurrency Handling: Allows concurrent operations to occur in any order.</li></ul><p><strong>Use Cases</strong></p><ul><li>Collaborative applications, social media platforms where the order of related posts or messages matters.</li></ul><p><strong>Benefits</strong></p><p>Performance Optimization: Less synchronization overhead compared to stronger models.</p><h4>Processor Consistency</h4><p><strong>Definition:</strong> Processor consistency requires that writes to the same memory location are observed in the same order by all processors. Writes from a single processor are also observed in the order they were issued.</p><p><strong>Characteristics</strong></p><ul><li>Write Ordering for Same Location: Ensures coherence for individual memory locations.</li><li>Weaker Global Ordering: Does not enforce a total order across different memory locations.</li></ul><p><strong>Comparison</strong></p><ul><li>Weaker than Sequential Consistency: Does not guarantee a total order of all operations.</li><li>Stronger than PRAM Consistency: Provides more guarantees than PRAM by ensuring order for writes to the same location.</li></ul><p><strong>Use Cases</strong></p><ul><li>Multiprocessor systems where maintaining consistency for individual memory addresses is crucial.</li></ul><h4>Session Consistency</h4><p><strong>Definition:</strong> Session consistency provides consistency guarantees within a single session between a client and a system. It ensures that operations within the session see a consistent view of data.</p><p><strong>Characteristics</strong></p><ul><li>Session-Level Guarantees: Consistency is maintained for operations within the same session.</li><li>Weaker Cross-Session Guarantees: Does not guarantee consistency across different sessions.</li></ul><p><strong>Use Cases</strong></p><ul><li>Web applications where a user expects to see their own changes reflected immediately during their session.</li></ul><p><strong>Benefits</strong></p><ul><li>User Experience: Enhances user experience without the overhead of global synchronization.</li></ul><h4>Weak Consistency Models</h4><p>Weak Consistency, on the other hand, allows for temporary inconsistencies across nodes. Reads might not immediately reflect the most recent writes. The system prioritizes availability and performance over immediate consistency, with the expectation that data will eventually become consistent across all nodes (eventual consistency). This model is suitable for applications where high availability and low latency are more critical than immediate data accuracy.</p><h4>Read Your Writes Consistency</h4><p><strong>Definition:</strong> Guarantees that a process will always see the effects of its own writes in subsequent read operations.</p><p><strong>Characteristics</strong></p><ul><li>Process-Level Guarantee: Ensures a process’s writes are visible to itself.</li><li>No Global Visibility: Other processes may not immediately see these writes.</li></ul><p><strong>Use Cases</strong></p><ul><li>Personal data management, such as user settings or preferences in applications.</li></ul><p><strong>Limitations</strong></p><ul><li>Partial Consistency: Does not provide guarantees about other processes’ views of the data.</li></ul><h4>Monotonic Read Consistency</h4><p><strong>Definition:</strong> Ensures that if a process reads a value, any subsequent reads will return the same or a more recent value.</p><p><strong>Characteristics</strong></p><ul><li>Non-Regression: Prevents a process from seeing older data after it has seen newer data.</li></ul><p><strong>Use Cases</strong></p><ul><li>Data replication scenarios where it is important to avoid reading outdated information.</li></ul><p><strong>Benefits</strong></p><ul><li>Data Stability: Enhances consistency for processes over time without requiring strong synchronization.</li></ul><h4>Monotonic Write Consistency</h4><p><strong>Definition:</strong> Guarantees that write operations from a single process are applied in the order they were issued.</p><p><strong>Characteristics</strong></p><ul><li>Order Preservation: Ensures that writes are not reordered or lost.</li></ul><p><strong>Use Cases</strong></p><ul><li>Logging systems, version control where the sequence of operations must be maintained.</li></ul><p><strong>Limitations</strong></p><ul><li>Single Process Focus: Does not guarantee how other processes perceive these writes.</li></ul><h4>Eventual Consistency</h4><p><strong>Definition:</strong> Guarantees that, given enough time without new updates, all replicas of the data will converge to the same value.</p><p><strong>Characteristics</strong></p><ul><li>Temporary Divergence: Allows for temporary inconsistencies between replicas.</li><li>High Availability: Prioritizes system availability and partition tolerance.</li></ul><p><strong>Use Cases</strong></p><ul><li>Distributed databases, DNS systems, content delivery networks where immediate consistency is not critical.</li></ul><p><strong>Benefits</strong></p><ul><li>Performance and Scalability: Reduces synchronization overhead, enabling better system performance.</li></ul><h4>Weak Consistency</h4><p><strong>Definition:</strong> Provides minimal guarantees about the visibility and ordering of updates. Consistency is enforced only at certain synchronization points.</p><p><strong>Characteristics</strong></p><ul><li>Maximized Performance: Offers flexibility for optimizing system throughput and latency.</li><li>Application Responsibility: Requires applications to manage consistency where necessary.</li></ul><p><strong>Use Cases</strong></p><ul><li>High-performance computing, real-time analytics where speed is essential, and some inconsistency is acceptable.</li></ul><p><strong>Considerations</strong></p><ul><li>Risk of Inconsistencies: Applications must handle potential inconsistencies appropriately.</li></ul><h3>Consistency Models in Real-World Systems</h3><h4>Databases</h4><p>Relational Databases (e.g., PostgreSQL, MySQL):</p><ul><li>Typically provide strong consistency within transactions using ACID properties.</li></ul><p>NoSQL Databases:</p><ul><li>MongoDB: Offers eventual consistency by default but can be configured for stronger consistency.</li><li>Cassandra: Allows tunable consistency levels per operation.</li></ul><h4>Distributed Systems</h4><p>Apache Zookeeper:</p><ul><li>Provides strong consistency guarantees for coordination tasks.</li></ul><p>etcd:</p><ul><li>A distributed key-value store that offers linearizability.</li></ul><h3>Implementing Consistency</h3><h4>Concurrency Control Mechanisms</h4><p>Locks and Semaphores:</p><ul><li>Prevent concurrent access to resources.</li><li>Can lead to bottlenecks if not managed carefully.</li></ul><p>Optimistic Concurrency Control:</p><ul><li>Assumes conflicts are rare and checks for them before committing.</li><li>Reduces locking overhead.</li></ul><p>Pessimistic Concurrency Control:</p><ul><li>Locks resources early to prevent conflicts.</li><li>Increases reliability at the cost of performance.</li></ul><h4>Replication Strategies</h4><p>Synchronous Replication:</p><ul><li>Writes are propagated to all replicas before acknowledging success.</li><li>Ensures strong consistency.</li></ul><p>Asynchronous Replication:</p><ul><li>Writes are acknowledged immediately, and replication occurs in the background.</li><li>Leads to eventual consistency.</li></ul><h3>Best Practices</h3><p>Understand Your Data:</p><ul><li>Identify which data requires strict consistency and which does not.</li></ul><p>Partition Data Accordingly:</p><ul><li>Apply different consistency models to different parts of your system as needed.</li></ul><p>Monitor and Test:</p><ul><li>Regularly test your system to ensure consistency guarantees are met.</li></ul><h3>Conclusion</h3><p>Understanding the spectrum of consistency models — from strong to weak — is essential for designing distributed systems that balance data accuracy, performance, and availability. Strong consistency models provide strict guarantees but can impact system performance due to the overhead of synchronization. Weak consistency models improve performance and availability by allowing temporary inconsistencies, which applications must be designed to handle.</p><p>When choosing a consistency model, consider the specific requirements of your application:</p><ul><li><strong>Critical Data Accuracy:</strong> Opt for strong consistency models like linearizability or sequential consistency.</li><li><strong>High Availability and Performance:</strong> Choose weak consistency models like eventual consistency or weak consistency.</li><li><strong>User Experience:</strong> Models like session consistency and read-your-writes consistency can enhance user experience without incurring the full overhead of strong consistency.</li></ul><p>I will keep track of my notes and my paper implementations related to each topic (where it fits) in my <a href="https://github.com/andreivisan/java40">GitHub repo</a>.</p><p>Thank you for reading. I would love to hear your thoughts in the comments section.</p><p>Part 1: <a href="https://real-programminglife.medium.com/40-topics-every-java-backend-developer-should-understand-ffbbf70b802e">CAP Theorem</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c7c740c1365" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[40 Topics Every Java Backend Developer Should Understand]]></title>
            <link>https://real-programminglife.medium.com/40-topics-every-java-backend-developer-should-understand-ffbbf70b802e?source=rss-253512e6fbfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffbbf70b802e</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Programming Life]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 19:12:08 GMT</pubDate>
            <atom:updated>2025-02-02T16:43:40.694Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xzSvbUZX4U6srKMDNY44Jg.png" /><figcaption>Image created with Midjourney</figcaption></figure><p>I found the following tweet online:</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/andreivisan/status/1853500834572808251%3Fref_src%3Dtwsrc%255Etfw%257Ctwcamp%255Etweetembed%257Ctwterm%255E1853500834572808251%257Ctwgr%255E520a7bdc43bdf92713c56985edc86afe4fc6e8b7%257Ctwcon%255Es1_c10%26ref_url%3Dhttps%253A%252F%252Fpublish.twitter.com%252F%253Furl%253Dhttps%253A%252F%252Ftwitter.com%252Fandreivisan%252Fstatus%252F1853500834572808251&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f47fef8290614d5be8dad27fb73a964/href">https://medium.com/media/9f47fef8290614d5be8dad27fb73a964/href</a></iframe><p>As I mentioned in my reply, I got very inspired by this list. As a senior Java engineer myself, I realised, I am probably familiar with most topics on this list but since I don’t use them daily, a refresh and a place where to store them all could benefit me and others as well. So I will share my notes on the first topic.</p><h3>CAP Theorem</h3><p>The CAP Theorem, also known as Brewer’s Theorem, outlines the fundamental trade-offs that must be considered when designing distributed applications and databases.</p><h4>What is the CAP Theorem?</h4><p>The CAP Theorem states that a distributed data system can guarantee only two of the following three properties simultaneously:</p><p><strong>1. Consistency ( C ):</strong></p><ul><li>Every read receives the most recent write or an error.</li><li>All nodes see the same data at the same time.</li></ul><p><strong>2. Availability (A):</strong></p><ul><li>Every request receives a (non-error) response, without the guarantee that it contains the most recent write.</li><li>The system remains operational 100% of the time.</li></ul><p><strong>3. Partition Tolerance (P):</strong></p><ul><li>The system continues to operate despite arbitrary partitioning due to network failures.</li><li>The system can handle communication breakdowns between nodes.</li></ul><h4>Why Can’t We Have All Three?</h4><p>In a distributed system where partitions (network failures) can occur, you must choose between consistency and availability:</p><ul><li>If you prioritize consistency (CP system): The system may become unavailable during network partitions to ensure all nodes have consistent data.</li><li>If you prioritize availability (AP system): The system remains operational, but some nodes may have stale data until consistency is restored.</li></ul><h4>Applying the CAP Theorem in Java Backend Development</h4><p>As a Java backend developer, you often interact with distributed systems, databases, and microservices where the CAP Theorem is highly relevant.</p><p><strong>1. Choosing Between Consistency and Availability</strong></p><p><strong>Consistency Priority (CP Systems):</strong></p><ul><li>Use Case: Financial transactions, inventory management.</li></ul><p>Implementation:</p><ul><li>Distributed Transactions: Use technologies like JTA (Java Transaction API) to manage transactions across multiple resources.</li><li>Two-Phase Commit Protocol: Ensure all nodes agree on a transaction before committing.</li><li>Synchronous Replication: Write operations are replicated synchronously to all nodes.</li></ul><p><strong>Availability Priority (AP Systems):</strong></p><ul><li>Use Case: Social media feeds, real-time analytics.</li></ul><p>Implementation:</p><ul><li>Eventual Consistency: Accept that data will become consistent over time.</li><li>Asynchronous Replication: Write operations are replicated asynchronously.</li><li>Fallback Mechanisms: Use cached data when fresh data isn’t available.</li></ul><h4>2. Database Selection</h4><p><strong>Relational Databases (CP Systems):</strong></p><ul><li>Examples: PostgreSQL, MySQL with Galera Cluster.</li><li>Features: Strong consistency, ACID transactions.</li><li>Java Integration: JDBC, JPA (Java Persistence API), Hibernate.</li></ul><p><strong>NoSQL Databases (AP Systems):</strong></p><ul><li>Examples: Cassandra, DynamoDB.</li><li>Features: High availability, eventual consistency.</li><li>Java Integration: Using drivers provided by the database vendors.</li></ul><p><strong>Configurable Databases:</strong></p><ul><li>Example: MongoDB can be tuned for consistency or availability.</li><li>Java Integration: MongoDB Java Driver, allowing configuration of read/write concerns.</li></ul><h4>3. Microservices Architecture</h4><p><strong>Consistency Focused Microservices:</strong></p><p>Synchronous Communication:</p><ul><li>Use RESTful APIs with HTTP calls.</li><li>Ensure immediate consistency but risk reduced availability during network issues.</li></ul><p>Transactions Across Services:</p><ul><li>Implement Saga Pattern for distributed transactions.</li><li>Use Event Sourcing to maintain a consistent state.</li></ul><p><strong>Availability Focused Microservices:</strong></p><p>Asynchronous Communication:</p><ul><li>Use Message Brokers like Apache Kafka or RabbitMQ.</li><li>Employ Event-Driven Architecture to decouple services.</li></ul><p>Resilience Patterns:</p><ul><li>Implement Circuit Breakers using libraries like Hystrix.</li><li>Use Bulkheads and Fallbacks to maintain availability.</li></ul><h4>4. Handling Network Partitions</h4><p><strong>Design Strategies:</strong></p><p>Timeouts and Retries:</p><ul><li>Configure appropriate timeouts for network calls.</li><li>Implement retry logic with exponential backoff.</li></ul><p>Idempotent Operations:</p><ul><li>Design APIs to handle retries without side effects.</li></ul><p>Data Replication and Sharding:</p><ul><li>Distribute data across nodes to minimize the impact of partitions.</li><li>Use consistent hashing to route requests.</li></ul><h4>5. Consistency Models in Java</h4><p><strong>Strong Consistency:</strong></p><p>Implementation:</p><ul><li>Use synchronized blocks or Reentrant Locks for thread safety.</li><li>Employ atomic operations with java.util.concurrent.atomic package.</li></ul><p><strong>Eventual Consistency:</strong></p><p>Implementation:</p><ul><li>Use Caching Mechanisms like Ehcache or Caffeine.</li><li>Implement Data Versioning and Conflict Resolution strategies.</li></ul><h4>Design Patterns</h4><p>Implement patterns like Circuit Breaker, Bulkhead, and Retry to handle failures gracefully.</p><h3>Conclusion</h3><p>I will keep track of my notes and my paper implementations related to each topic (where it fits) in my <a href="https://github.com/andreivisan/arc2cracked/tree/main/3.Java/java40">GitHub repo.</a></p><p>Thank you for reading. I would love to hear your thoughts in the comments section.</p><p>UPDATE: <a href="https://real-programminglife.medium.com/40-topics-every-java-backend-developer-should-understand-p2-consistency-models-4c7c740c1365">Part 2 – Consistency Models</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffbbf70b802e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The World Doesn’t Change in 7 Months, But You Can]]></title>
            <link>https://real-programminglife.medium.com/the-world-doesnt-change-in-7-months-but-you-can-20505d46d6fc?source=rss-253512e6fbfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/20505d46d6fc</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[mindfulness]]></category>
            <dc:creator><![CDATA[Programming Life]]></dc:creator>
            <pubDate>Sat, 04 May 2024 17:30:58 GMT</pubDate>
            <atom:updated>2024-05-04T17:35:43.897Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*65IK963l_SRAyKA07jTepA.png" /><figcaption>Created with DALL-E</figcaption></figure><p>In just seven months, the world might not change much, but you certainly can. As a seasoned software developer, I’ve navigated the swift currents of technology and personal ambition to discover that focus — not speed — is the key to profound and lasting improvement. Join me as we explore how setting a deliberate pace in a fast-moving world can lead to significant personal and professional growth. Whether you’re polishing your coding skills or shaping your career path, let’s learn to harness the power of dedicating time to what truly matters.</p><h3>Reason</h3><p>Whether you’re a fellow software engineer (like I suspect you might be) or not, this article has something for everyone. You might even find a few helpful tips that could change the way you work or think.</p><p>As software engineers, our world moves fast. What today is an idea or a rumour, tomorrow is a standard and the whole world is using it. I guess reading this lines your mind goes in the same place as mine — AI. Although people have been working on developing AI for decades, once it took shape into something accessible to everyone, it took over the world in a matter of months.</p><p>These rapid advancements in the world of technology are what keep our work exciting and engaging. There’s never a dull moment! And even if you’re not a software engineer, chances are you work on a computer and use technology regularly. However, along with the benefits of these advancements comes anxiety, imposter syndrome, and the nagging question:</p><blockquote>Am I or my work still relevant?</blockquote><p>I want you to know that you’re not alone in feeling this way. It’s a common experience shared by many in our fast-paced, ever-changing world. In this article, we’ll explore ways to navigate these challenges and come out on top. So, grab a warm beverage, get comfortable, and let’s dive in together!</p><h3>Context</h3><p>You might be wondering, “Why seven months? Why not six, or nine, or twelve?” Let me share a personal milestone: I set myself a goal to get into great shape and launch at least one personal project before turning 40. I’ve been working out for many years and was already in decent shape, though a tad heavier than I felt comfortable with. I was also working on personal projects, but I never finished anything because the question I mentioned earlier — “Am I or my work still relevant?” — kept creeping in, causing me to constantly switch contexts and projects.</p><p>So, why seven months? Honestly, there’s no scientific reason — it’s simply the timeframe I chose that felt right. It’s a personal challenge. If you’re considering a similar journey, choose a timeframe that feels manageable to you — anything between six to nine months is ideal. Anything longer might feel too slow, and anything shorter might not allow enough time to see real, tangible results.</p><blockquote>The core of this article is about finding the focus and courage to commit to one goal, without the fear of missing out on other opportunities as the world rapidly changes around us.</blockquote><p>It’s about claiming your own pace in a fast-moving world, so you can truly shine.</p><h3>The Fear Of Missing Out</h3><p>Throughout my nearly 20-year career in software development, I’ve embarked on numerous projects — some as hobbies, some for learning, and others driven by the dream of creating products that might lead to financial freedom. It’s with a touch of sadness that I confess I didn’t finish any of them. Until recently, that is — but more on that soon.</p><p>I spent some time reflecting deeply on why none of these projects reached completion. Was it the allure of new, shiny ideas? Or perhaps the transition from the excitement of development to the more mundane tasks of testing and bug fixing? Surprisingly, the answer to both was a resounding “No.” My enthusiasm for my ideas never waned, despite the constant emergence of new ones. I love every phase of software development, so what was holding me back?</p><p>After some serious introspection, I realized the root of my struggle was fear — fear of being left behind by the ever-evolving tech landscape. This fear created a mental block, preventing me from seeing that I had enough time to finish my current project before moving on to the next. And just when I thought I had it figured out, a new dilemma arose:</p><blockquote>What if I need to learn a new topic while also building my next project? Damn, now I was blocked again. How could I get out of this situation?</blockquote><h3>Life Has Seasons Too</h3><p>One beautiful spring day, while finally listening to the song of the birds and being embraced by the warmth of the sun, I realized how beautiful spring is. How it brings renewal and hope. Then another thought came to my mind — Is spring my favorite season? Then I realized I love all seasons just the same for what they bring. And they all bring something different.</p><blockquote>Just like the year has its seasons, life has them too.</blockquote><p>There are seasons for building and others for learning. There’s no need to do them at the same time. You will not miss anything by learning what you want to learn later, or by building what you want to build once you’ve finished your season of learning. And even better, sometimes while learning you must build, and often when building you must learn. But nevertheless, your focus should be on one thing at a time. One of the great resources out there is the very famous book by Cal Newport, <em>Deep Work</em>.</p><p>Also, if you are coming out of a heavy season, consider taking a break. Recharge, heal, rebuild yourself before you start a new season with all its challenges and beauty.</p><h3>How To Choose What To Focus On?</h3><p>When I realized that for the next seven months (in my case), I would have to choose one area to focus on, a grounding and mindful feeling washed over me. It’s a serious moment — choosing my season. Am I in a season of learning, or in a season of building? Once this decision is made, the next step is to choose my topic: What is the project I will focus on until it’s complete? What is the topic I will immerse myself in until I have mastered it?</p><p>Being thoughtful about what we dedicate our most valuable commodity — time — to is something we should always strive to do.</p><blockquote>If there’s one thing we should be perpetually mindful of, it’s how we spend our time.</blockquote><p>This ensures that whatever we pick is not only important and worthy but also serves as a potent motivator to maintain our focus for the next seven months.</p><p>I always follow these steps when deciding what to focus on:</p><ol><li>Determining whether I’m in a learning season or a building season.</li><li>Identifying the top three projects I want to build or topics I want to learn.</li><li>From these options, selecting the one that excites me the most right now.</li><li>[OPTIONAL] If all options equally excite me, choosing the one that best serves my purpose, interests, or business at this moment.</li></ol><p>Remember, this is your journey, and you have the power to shape it in a way that brings you joy, fulfilment, and growth. Don’t be afraid to take a step back, assess your priorities, and make choices that align with your values and goals. You’ve got this!</p><h3>Why Do I Have To Choose Just One?</h3><p>No matter how smart you are, you can only give your 100% to one thing at a time. A quote that once resonated with me and has since stuck is:</p><blockquote>“How you do one thing, you do everything.”</blockquote><p>Learn to focus on one thing at a time and do it right. You chose to spend your time on it, so give it your best effort while you’re at it.</p><p>Also, considering the timeline you’ve set, if you aim to respect it and build something valuable that can be considered a finished product, you’ll need full focus.</p><p>I know it can be tempting to try and juggle multiple projects or learning goals at once, especially when you’re passionate about so many things. By focusing on one thing at a time, you allow yourself the opportunity to fully immerse yourself in the process, learn deeply, and create something truly remarkable.</p><p>Many of us have jobs, which means we have limited time to invest in the extra projects we decide to focus on. Some of you are also parents, making your time even more precious. Given all these aspects of what we call “life,” it makes an even stronger argument for focusing on one thing at a time. This way, in the limited hours we have to invest in our passions, we can truly give our all.</p><p>Remember, it’s not about doing everything at once. It’s about doing one thing exceptionally well and then moving on to the next. By adopting this mindset, you’ll find that you’re able to accomplish more and with greater depth and quality. So, be kind to yourself, and give yourself permission to focus on one thing at a time.</p><h3>Finish!</h3><p>One lesson I’ve learned is that no matter what we choose to start, it holds no value until we finish it. Completing what we’ve begun is what brings joy and satisfaction from the time we’ve invested in our chosen project. If we don’t finish, we’re left with the bitter taste of wasted time — and believe me, I’ve felt it many times; it’s not something I recommend.</p><p>Finishing brings closure; it allows us to move on to the next thing without the nagging feeling of unfinished business. Closure is important! This doesn’t mean that once you build a project that could become a business, you stop there. But you have finished the building phase. You succeeded.</p><blockquote>Once you’ve finished, celebrate. Enjoy! You did it. Take a break, take a holiday — do anything that makes you feel successful, because you are.</blockquote><p>Remember, finishing is a habit, just like anything else. The more you practice it, the easier it becomes. So, keep pushing forward, keep focusing on your goals, and keep finishing what you start. You have the power to create incredible things, and I have no doubt that you will.</p><h3>Conclusion</h3><p>We live in interesting and challenging times. Working at a slow and focused pace might seem impossible with the speed at which things change and evolve. But that’s just a perception — in reality, it isn’t impossible. We might not always have five years to focus on one thing, but we can adapt and invest a substantial number of months in whatever we feel is valuable to us. Let’s not allow this fast-paced era to hinder our growth. Instead, let’s create our own timeline that allows us to evolve and create at a pace we are comfortable with, while taking advantage of all the progress around us.</p><p>Thank you for reading. I would love to hear your thoughts in the comments section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20505d46d6fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Coding to Craft: The Real Divide Between Coders and Professional Enterprise Software Engineers]]></title>
            <link>https://real-programminglife.medium.com/from-coding-to-craft-the-real-divide-between-coders-and-professional-enterprise-software-engineers-a493a06115b4?source=rss-253512e6fbfc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a493a06115b4</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Programming Life]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 13:21:28 GMT</pubDate>
            <atom:updated>2024-03-16T13:21:28.014Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*F7xTKdb1q_wA5SeowVwvlQ.png" /></figure><p>Let’s dive together into a realm where not all code is created equal, and discover what truly sets apart the real Enterprise Software Engineers from those who merely ‘make things work’.</p><h3>Reason</h3><p>A good place to start is by understanding the reasoning behind this article.</p><p>I’ve been in the Enterprise Software industry for 18 years, initially starting as a Backend Engineer. However, I quickly shifted to Full-Stack Engineering due to my eagerness to fully grasp and independently tackle all aspects of complex applications. This transition was fuelled by a desire to not just understand, but to personally resolve the multifaceted layers that come with such systems.</p><p>Over these years, the number of true Senior Developers in Enterprise Software Engineering I’ve had the pleasure to work with and learn from is notably small.</p><h3>Context</h3><p>The software industry, being among the youngest sectors, is still in its infancy compared to well-established fields. This immaturity leads to blurred distinctions between terms like Software Engineering, Development, Coding, and Programming — some of which overlap, while others signify entirely different concepts. Since the software sector matured into a distinct industry, the term ‘Enterprise Software Engineer’ has been coined. Despite this, we still encounter unclear distinctions when evaluating the differences between a skilled programmer and a proficient Enterprise Software Engineer. This ambiguity mainly concerns those with considerable programming skills, as less competent individuals can typically be identified more straightforwardly.</p><h3>What is an Enterprise Software Engineer</h3><p>Firstly, we need to understand that software engineering is defined by its scope. Significant differences exist between working solo on small to medium projects and collaborating within large teams on complex systems that must endure and evolve over time. Enterprise Software, as you might guess, falls into the latter category. This article won’t delve into the necessary soft skills like communication, teamwork, and creativity, despite their importance. Instead, our focus will be on the technical competencies related to code craftsmanship.</p><p>As mentioned above, enterprise software involves managing large, complex systems that must not only endure over time but also adapt seamlessly. These systems evolve with contributions from various engineers and teams. Over years, the workforce developing and maintaining an enterprise system may change significantly from the original team. And that applies to every stage in the development and evolution of a large enterprise software system. This cycle is typical for large-scale systems, underscoring the necessity for well-thought-out architectural and development decisions from the start and throughout the system’s life, especially as new features are integrated.</p><p>Given all the above we can more clearly see that just being a good programmer is a very very small piece of the big puzzle that constitutes what an enterprise software engineer is.</p><p>What are the other pieces? Those we will cover in the paragraph below but for now let’s try and formulate a definition for an enterprise software engineer.</p><blockquote>An Enterprise Software Engineer possesses all the skills of a proficient programmer, including a deep understanding of software performance fundamentals. They excel in teams of any size, working collaboratively with peers. Beyond technical skills, they understand the importance of applying design patterns and principles to build robust, maintainable, and extendable software, ensuring easy integration with other systems without the need for modifications.</blockquote><h3>Principles that an Enterprise Software Engineer should apply</h3><p>Not everyone has to become an Enterprise Software Engineer. However, if you aspire to work in a large enterprise, develop complex systems, experience working with large databases, and integrate complex systems with each other, as well as scaling large software systems, then please continue reading.</p><p>We defined what an Enterprise Software Engineer is. Now let’s unpack that definition and understand what each point means.</p><h4>Robust Software</h4><blockquote>When discussing robust software, the first aspect to keep in mind is testing.</blockquote><p>Testing is a vast topic in itself; however, in this context, I’ll highlight the crucial elements indispensable in enterprise software engineering. Before delving further, it’s important to address Test-Driven Development (TDD). Personally, I believe that TDD is not always the best fit for large enterprise systems, and in my view, it can be impractical. Nevertheless, if one is accustomed to developing in the TDD manner, continue with this approach as it offers a reliable and robust coding methodology.</p><p>The three most important types of testing in Enterprise Software are: unit testing, integration testing, and functional testing. While I won’t delve into the specifics of each, it’s critical to understand that testing acts as a safety net for your software system. It ensures that each unit operates as intended, integration with other systems is seamless, and, from end to end, the system functions flawlessly. Furthermore, testing guarantees that new features added do not break existing functionalities at the unit, system, and full end-to-end levels.</p><h4>Maintainable Software</h4><blockquote>The most crucial aspect of maintainable software systems is the implementation of SOLID principles.</blockquote><p>Adhering to these guidelines ensures that future development — whether adding new features or modifying existing ones — will be efficient and seamless. Additionally, when new developers or teams begin working on the existing code, it will be straightforward for them to comprehend the code and advance in the correct direction.</p><p>A brief review of the solid principles.</p><ol><li><strong>The Single Responsibility Principle (SRP) </strong>— SRP suggests that a piece of software should focus on a single functionality or responsibility. By adhering to this principle, code becomes more robust, easier to understand, and simpler to update or modify without affecting other parts of the system.</li><li><strong>The Open Closed Principle (OCP) </strong>— OCP promotes designing modules that don’t require changes when adding new features. Instead, the system is developed in a way that allows it to be extended without altering existing code, enhancing maintainability and reducing the risk of bugs.</li><li><strong>The Liskov Substitution Principle (LSP) </strong>— LSP ensures that subclasses can stand in for their parent classes without disrupting the application. This principle reinforces the importance of having a properly designed hierarchy where subclasses maintain the expected behavior of their base class.</li><li><strong>The Interface Segregation Principle (ISP) — I</strong>SP encourages splitting large interfaces into smaller, more specific ones so that clients only need to know about the methods that are of interest to them, leading to a cleaner, decoupled codebase.</li><li><strong>The Dependency Inversion Principle (DIP) </strong>— DIP advocates for a system’s design where high-level modules are not dependent on low-level modules, but both are dependent on abstractions. This means that rather than having business logic depend on database or other lower-level components, both should rely on interfaces or abstract classes.</li></ol><p>Besides the principles outlined above, code should be reusable and as decoupled as possible. For a better and more comprehensive understanding of these principles, please refer to “Clean Code” by Robert C. Martin.</p><h4>Extendable Software</h4><blockquote>When considering extendable software, one of the most crucial aspects is the correct application of Design Patterns.</blockquote><p>With extendability in mind, the goal is to ensure that new functionality can be easily added without altering existing code.</p><p>Regardless of the programming language one is using, relevant and correct implementation of design patterns is mandatory in order to keep complex features simple, modular, and easy to extend.</p><p>On my <a href="https://www.youtube.com/@programminglifeio">YouTube channel,</a> I have created easy-to-understand videos explaining the most important design patterns. If these do not meet your preferences, there are numerous other resources available on YouTube, as well as various blogs and websites, should you favour reading over video content.</p><h3>The unavoidable Interview Process discussion</h3><p>Before we delve into the interview process, let’s discuss how you can become a better Enterprise Software Engineer. There are two key aspects:</p><ol><li><strong>Code every day</strong> — Regardless of your job, the likelihood that you write a lot of code during your regular 9-to-5 is slim. If you do, consider yourself fortunate and apply the following principles over the weekend. If you don’t, seek opportunities to tackle challenging projects and solve difficult problems. For this, resources such as Manning’s LiveCoding and CodeCrafters’ “Build Your Own X” GitHub repository can offer numerous topics and projects to refine your skills. If you find yourself struggling to commit, reassess your priorities and passion for software development. If it’s not there, it might be worth exploring what you truly love.</li><li><strong>Solve very hard problems</strong> — Similar to progressive overload in the gym, the key to developing new skills in software is to tackle increasingly challenging problems and projects. With each problem solved or project completed, ensure the application of the aforementioned principles, making them a routine part of your software development practice.</li></ol><p>Regarding the interview, the central question is: Are interviews focusing solely on algorithms, data structures, or system design sufficient? The answer is no. Neither approach can accurately assess whether someone is a good Enterprise Software Engineer. Are they necessary? Yes, but only in the initial stage of the interview process, to distinguish poor programmers from competent ones. Following this, home assignments or any form of coding sessions, where Enterprise Software Development principles are applied, offer a much more effective method to evaluate if someone is a suitable candidate for an enterprise software engineer role.</p><h3>Conclusion</h3><p>During this article, I revisited concepts previously covered to emphasize their critical importance in developing large enterprise systems. Throughout my career, I’ve witnessed these concepts being sacrificed for speed, which ultimately compromised the software system and burdened future development teams. This is a primary reason why ‘legacy system’ or ‘legacy code’ often carries a negative connotation.</p><p>If sufficient thought, effort, and time are invested in designing and architecting a complex system, future development can be expedited tenfold, if not more. While initial features may take longer to deploy in production, subsequent ones will be developed significantly faster, saving immense amounts of time, effort, and headaches. Moreover, even vast systems can be maintained and extended by just a few skilled enterprise engineers, enhancing their job satisfaction by sparing them from dealing with unwieldy legacy code. In the long run, enterprises will benefit financially and operationally.</p><blockquote>The key takeaway for engineers is to hone the skills outlined above using the techniques discussed in this article. Additionally, this piece, along with the resources mentioned, should support your arguments for the necessity of proper design and development of enterprise systems over immediate speed gains.</blockquote><blockquote>For enterprises, the investment in such skilled engineers will mitigate future issues and save money over time.</blockquote><p>Thank you for reading. I would appreciate hearing your thoughts in the comments section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a493a06115b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>