<?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 Joshua Akintemi on Medium]]></title>
        <description><![CDATA[Stories by Joshua Akintemi on Medium]]></description>
        <link>https://medium.com/@jakintemi?source=rss-19d15e6ca86c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wms0G1mgbIZ7QSyH0deEGA.webp</url>
            <title>Stories by Joshua Akintemi on Medium</title>
            <link>https://medium.com/@jakintemi?source=rss-19d15e6ca86c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:58:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jakintemi/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[From Flutter UI to Production: The Engineering Problems You Only Discover After Shipping]]></title>
            <link>https://medium.com/@jakintemi/from-flutter-ui-to-production-the-engineering-problems-you-only-discover-after-shipping-5813c292fc22?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5813c292fc22</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 10:26:47 GMT</pubDate>
            <atom:updated>2026-10-29T10:26:47.269Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RN1z-ZEbBtSbEnc18ekjzg.png" /></figure><p><em>Building a mobile interface is one challenge. Making it reliable on real devices, with real users and real-world constraints, is another.</em></p><p>When I started building mobile applications, it was easy to measure progress by what I could see on the screen.</p><p>A page rendered correctly. A button responded to a tap. An API returned the expected data. Navigation worked as intended.</p><p>Those were satisfying milestones, and they still matter.</p><p>But a working interface does not necessarily mean a working product.</p><p>A mobile application can look perfect during development and still struggle when users lose their internet connection, deny a permission, switch between applications, run out of storage, or use a device with different system restrictions.</p><p>The gap between building an interface and delivering a reliable product is where many of the most important engineering decisions happen.</p><p>Here are some of the problems worth thinking about before shipping a Flutter application.</p><h3>1. The UI Is Only One Part of the Application</h3><p>Flutter makes it relatively straightforward to build responsive interfaces and reuse code across platforms. But as an application grows, the challenge shifts from displaying information to managing where that information comes from, how it changes, and what happens when something goes wrong.</p><p>Consider an application that displays a user’s transactions.</p><p>The interface might contain a list, a balance, a loading indicator, and an error message. The difficult questions are not necessarily visual:</p><ul><li>What happens when the API takes ten seconds to respond?</li><li>What if the request fails after the user has opened the screen?</li><li>What happens when the same request is triggered twice?</li><li>Should previously loaded data disappear when refreshing fails?</li><li>How does the application recover when the user returns after several minutes?</li></ul><p>These are state-management and data-flow problems disguised as UI problems.</p><p>One approach that helps is separating presentation logic from business logic and data access. A widget should primarily display state and communicate user actions. It should not have to understand every detail of how an API request is authenticated, retried, parsed, and stored.</p><p>For example, a simplified repository might look like this:</p><pre>class TransactionRepository {<br>  TransactionRepository(this._apiClient);<br>  <br>  final ApiClient _apiClient;<br>  Future&lt;List&lt;Transaction&gt;&gt; fetchTransactions() async {<br>    final response = await _apiClient.get(&#39;/transactions&#39;);<br>    return (response.data as List)<br>        .map(<br>          (item) =&gt; Transaction.fromJson(<br>            item as Map&lt;String, dynamic&gt;,<br>          ),<br>        )<br>        .toList();<br>  }<br>}</pre><p>The example is intentionally simple. In a production application, the repository may also handle data mapping, pagination, caching, and domain-specific error handling.</p><p>The important idea is the boundary: the UI requests transactions, while the data layer is responsible for retrieving them.</p><p>This separation makes the application easier to test and reduces the risk of every screen implementing the same logic differently.</p><p>The <a href="https://docs.flutter.dev/app-architecture/guide">official Flutter architecture guide</a> is a useful reference for understanding these boundaries and organizing an application as it grows.</p><h3>2. Background Execution Is More Complicated Than It Looks</h3><p>Some mobile features work only when the application is doing more than displaying a screen.</p><p>Location tracking, file uploads, scheduled synchronization, and certain forms of data processing may need to continue when the application is not in the foreground.</p><p>Consider an employee-tracking application. A requirement such as collecting a location every few minutes sounds straightforward:</p><ol><li>Request location permission.</li><li>Read the device’s coordinates.</li><li>Send them to an API.</li><li>Repeat at the required interval.</li></ol><p>That describes the basic workflow, but it leaves out the most important constraints.</p><p>What happens when the user locks the screen? What if the application is moved to the background? What if the network is unavailable when a location is collected? What if the operating system suspends the application?</p><p>Android and iOS both manage background execution, but they have different mechanisms and restrictions. Android, for example, limits background location updates to help reduce battery consumption. Apple’s background execution model also depends on the type of work and the capabilities an application is authorized to use.</p><p>Flutter does not remove these operating-system constraints simply because the application is written in Dart.</p><p>This means background functionality requires more than choosing a Flutter package and starting a timer.</p><p>You need to understand the lifecycle of the application, the relevant platform permissions, the supported background execution mechanisms, and the behavior you can reasonably guarantee on each platform.</p><p>For further reading, the Android documentation explains <a href="https://developer.android.com/develop/sensors-and-location/location/battery">background location and battery life</a>, while Flutter provides guidance on <a href="https://docs.flutter.dev/packages-and-plugins/background-processes">background processes</a>.</p><p>The lesson is simple: <strong>design around the operating system’s rules instead of assuming the operating system will accommodate your implementation.</strong></p><h3>3. A Network Request Can Fail Even When Your Code Is Correct</h3><p>A request that succeeds in development is not evidence that it will always succeed in production.</p><p>Users move between Wi-Fi and mobile data. Connections become unreliable. Servers experience temporary failures. Authentication tokens expire. Requests time out, and responses occasionally contain data the application did not expect.</p><p>The important engineering decision is not whether failures will happen. It is how the application responds when they do.</p><p>Imagine a user submitting a payment or creating an order. The request reaches the server, but the response never reaches the device.</p><p>Should the application immediately retry?</p><p>Not necessarily.</p><p>The server may have completed the operation even though the client never received confirmation. Retrying without an appropriate strategy could create a duplicate operation.</p><p>This is why network reliability is not just about catching exceptions.</p><p>Depending on the operation, a resilient approach may involve request timeouts, appropriate retry policies, idempotency keys, and clear communication with the user. It may also require the backend to enforce uniqueness or other business rules.</p><p>Retries should be used thoughtfully. A failed read request and an uncertain payment submission do not have the same consequences.</p><p>For operations that can safely be repeated, a retry with backoff may be appropriate. For operations that create records or initiate financial transactions, the application and backend need a deliberate strategy for preventing duplicates.</p><p>The UI should also communicate what is happening.</p><p>A user should be able to distinguish between an operation that is still processing, one that failed, and one whose final outcome has not yet been confirmed.</p><p>That distinction is part of the product’s reliability.</p><h3>4. The Happy Path Is Not a Test Strategy</h3><p>Most features begin with an expected sequence of events.</p><p>The user opens the app, signs in, navigates to a screen, enters valid information, and submits a request. Everything works.</p><p>Testing only that sequence leaves many important behaviors unexplored.</p><p>What happens when the user submits an empty form? What if the server returns an unexpected response? What happens when the application is interrupted halfway through an operation?</p><p>For mobile applications, I would pay particular attention to these scenarios:</p><ul><li><strong>Connectivity:</strong> Switch between networks, disconnect completely, and reconnect.</li><li><strong>Application lifecycle:</strong> Put the app in the background, return to it, and reopen it after termination.</li><li><strong>Authentication:</strong> Test expired sessions and failed refresh attempts.</li><li><strong>Repeated actions:</strong> Tap a submission button more than once or navigate away while a request is running.</li><li><strong>Device differences:</strong> Test on multiple supported OS versions and physical devices.</li><li><strong>Data consistency:</strong> Verify that the UI reflects the actual result of an operation, not merely the optimistic assumption that it succeeded.</li></ul><p>Not every application needs the same test suite. A simple informational app has different risks from an application that handles payments, sensitive data, or background location.</p><p>The goal is to identify the situations most likely to affect users and test those situations deliberately.</p><p>Unit tests can help validate business logic and data transformations. Integration tests can exercise interactions between components, while testing on physical devices helps expose behavior that a simulator or emulator may not fully reproduce.</p><p>Testing becomes more useful when it is driven by failure scenarios rather than by the number of screens completed.</p><h3>5. Performance Is About More Than Smooth Animations</h3><p>A mobile application can have smooth animations and still perform poorly.</p><p>Slow API responses, excessive memory use, repeated network requests, large images, and unnecessarily expensive computations can make an application frustrating to use.</p><p>Performance problems also become more visible as the amount of data grows.</p><p>A list that works well with ten records may struggle with thousands. A screen that loads quickly with a cached response may feel slow when every visit triggers multiple sequential requests.</p><p>This is why performance should be considered at the architecture level, not only when polishing the interface.</p><p>Some useful practices include:</p><ul><li>Paginating large datasets instead of downloading everything at once.</li><li>Avoiding unnecessary widget rebuilds and expensive work in frequently executed UI code.</li><li>Moving suitable computationally expensive work away from the main isolate.</li><li>Caching data when doing so is appropriate for its freshness and security requirements.</li><li>Measuring performance in profile or release mode rather than relying exclusively on debug-mode behavior.</li></ul><p>These techniques are not rules to apply blindly. Caching, for example, introduces questions about invalidation and stale data. Background processing introduces its own scheduling and resource constraints.</p><p>The right solution depends on the actual bottleneck.</p><p><strong>Measure first, identify the constraint, and then optimize the part of the system responsible for it.</strong></p><h3>6. Shipping the App Introduces Another Set of Responsibilities</h3><p>Passing tests locally is an important milestone, but releasing an application involves more than generating a build.</p><p>Production delivery includes configuration, signing, version management, store requirements, environment-specific settings, and testing the exact artifact intended for release.</p><p>There is also a difference between deploying an application and maintaining it.</p><p>After release, developers must pay attention to crashes, failed requests, user feedback, compatibility issues, and unexpected usage patterns. A feature that behaves correctly for the development team may reveal problems when exposed to a wider range of devices and user behavior.</p><p>This is one reason logging and observability deserve attention before release.</p><p>When something fails, developers need enough information to investigate the problem without collecting unnecessary personal information. Useful diagnostics might include the failed operation, an error category, the application version, and a correlation identifier that helps trace a request across the client and backend.</p><p>Sensitive tokens, passwords, and unnecessary personal data should not be written into logs.</p><p>A production-ready application should make failures easier to detect, investigate, and correct.</p><p>The release itself is not the end of the engineering process. It is the beginning of learning from how the software behaves outside the development environment.</p><h3>7. Think About Failure Before It Happens</h3><p>One principle connects all these challenges: reliable applications are designed with failure in mind.</p><p>This does not mean anticipating every possible problem before writing code. That would be impossible.</p><p>It means making deliberate decisions about the failures that matter most.</p><p>If an API is unavailable, what does the user see?</p><p>If a background task is interrupted, what state is preserved?</p><p>If a request is repeated, could it create duplicate data?</p><p>If a session expires, can the user recover without losing work?</p><p>If a release introduces a regression, how will the team discover it?</p><p>These questions influence architecture, state management, testing, backend contracts, and operational practices. Answering them early can prevent costly changes later.</p><p>They also encourage better collaboration. Mobile developers need to understand backend guarantees, product requirements, platform behavior, and the consequences of particular user interactions.</p><p>Good engineering is rarely confined to one layer of the application.</p><h3>Final Thoughts</h3><p>Building a mobile interface teaches you how to turn requirements into something users can interact with. Shipping a production application teaches you to think about everything surrounding that interface.</p><p>It changes how you approach state, network requests, background execution, testing, performance, and deployment. You begin to recognize that many difficult bugs do not originate in a widget. They emerge from the interaction between the application, the operating system, the backend, and the conditions under which people actually use the product.</p><p>Flutter provides a strong foundation for building cross-platform applications, but the framework alone cannot make an application reliable.</p><p>That responsibility belongs to the engineering decisions made around it.</p><p>For me, the most useful question to ask when building a feature is no longer just, <em>“Does it work?”</em></p><p>It is also, <em>“What happens when it doesn’t work as expected?”</em></p><p>That is where the difference between a working demo and a dependable product begins.</p><p><strong>What has been the most challenging problem you’ve encountered when taking a mobile application from development to production?</strong> I’d be interested to hear how other developers have approached it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5813c292fc22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter and React Native in Production: What Nobody Tells You Before You Scale]]></title>
            <link>https://medium.com/@jakintemi/flutter-and-react-native-in-production-what-nobody-tells-you-before-you-scale-f7d12b0cd176?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7d12b0cd176</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 09:15:54 GMT</pubDate>
            <atom:updated>2026-08-26T09:15:54.764Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uPATCdAGUQSSj0bw8pJ7Ag.jpeg" /></figure><p>When you are building your first mobile application, Flutter and React Native can both feel incredibly productive.</p><p>You install the framework, create a screen, connect an API, add navigation, integrate authentication, and before long you have something running on both Android and iOS.</p><p>Then the application grows.</p><p>Suddenly, the questions change.</p><p>Why does the app take so long to start?</p><p>Why is this screen rebuilding every time something changes?</p><p>Why does background location stop working on some devices?</p><p>Why does an upgrade to Android break a native dependency?</p><p>Why does a package that worked perfectly six months ago suddenly become the source of three days of debugging?</p><p>Why does the same feature behave differently on Android and iOS?</p><p>This is where the difference between <strong>building a mobile application</strong> and <strong>engineering a mobile application for production</strong> becomes obvious.</p><p>I have worked with both Flutter and React Native, and one lesson has become increasingly clear:</p><blockquote><strong><em>The framework rarely becomes your biggest problem at scale. Your architectural decisions do.</em></strong></blockquote><p>This article is about the things you discover after building real applications, not the things you usually see in framework comparisons.</p><h3>1. The First 80% Is Surprisingly Easy</h3><p>Both Flutter and React Native are excellent at getting you from an idea to a working application quickly.</p><p>With Flutter, you can go from:</p><pre>Screen → Widget → State → API</pre><p>With React Native:</p><pre>Screen → Component → State → API</pre><p>And you can build a functional application surprisingly quickly.</p><p>That’s exactly why developers love them.</p><p>But production applications are not just collections of screens.</p><p>A production mobile application has to deal with:</p><ul><li>unreliable networks</li><li>background execution</li><li>authentication expiration</li><li>offline data</li><li>push notifications</li><li>deep links</li><li>device permissions</li><li>memory constraints</li><li>battery consumption</li><li>application lifecycle</li><li>native SDKs</li><li>analytics</li><li>crash reporting</li><li>app-store releases</li><li>OS updates</li><li>third-party dependency failures</li></ul><p>The complexity isn’t necessarily visible in the UI.</p><p>It’s in everything happening <strong>around</strong> the UI.</p><h3>2. Flutter and React Native Have Different Mental Models</h3><p>One of the biggest mistakes developers make is treating Flutter and React Native as interchangeable technologies.</p><p>They’re both cross-platform frameworks, but their architectures are fundamentally different.</p><h3>Flutter</h3><p>Flutter brings its own rendering engine.</p><p>Your Dart code describes the UI, and Flutter renders that UI using its rendering system.</p><p>Conceptually:</p><pre>Dart<br>  ↓<br>Flutter Framework<br>  ↓<br>Flutter Engine<br>  ↓<br>Rendering<br>  ↓<br>Platform</pre><p>This gives Flutter a significant advantage in terms of having consistent UI behavior across platforms.</p><p>If you’re building a highly customized interface, you generally have a lot of control over how that interface behaves.</p><p>But there’s a trade-off.</p><p>When you need something that isn’t directly supported by Flutter, you may have to cross the boundary into native platform code.</p><p>That’s where <strong>platform channels</strong>, plugins, or native integrations become important.</p><h3>3. React Native Has a Different Architecture</h3><p>React Native takes a different approach.</p><p>Your application is primarily written in JavaScript or TypeScript, while React Native connects your application logic with native platform capabilities.</p><p>The modern React Native architecture has significantly improved the communication between JavaScript and native code through technologies such as <strong>JSI, TurboModules, and Fabric</strong>.</p><p>Conceptually:</p><pre>JavaScript / TypeScript<br>          ↓<br>      React<br>          ↓<br> React Native Architecture<br>          ↓<br>     Native APIs<br>          ↓<br> Android / iOS</pre><p>This is important because older explanations of React Native often focus heavily on the “bridge.”</p><p>That explanation is incomplete for modern React Native.</p><p>The architecture has evolved considerably.</p><p>The practical lesson is:</p><blockquote><em>Don’t judge modern React Native based entirely on how React Native worked several years ago.</em></blockquote><h3>4. The Framework Is Not Your Architecture</h3><p>This is probably the most important lesson I learned working with cross-platform mobile applications.</p><p>Flutter doesn’t automatically give you a good architecture.</p><p>React Native doesn’t automatically give you a good architecture either.</p><p>You can create a beautiful Flutter application with terrible architecture.</p><p>You can create a beautiful React Native application with terrible architecture.</p><p>For example:</p><pre>HomeScreen<br> ├── API calls<br> ├── authentication logic<br> ├── database queries<br> ├── navigation<br> ├── validation<br> ├── business logic<br> └── UI</pre><p>This might work when the application has five screens.</p><p>At 50 screens, it becomes a maintenance problem.</p><p>A more sustainable architecture separates responsibilities:</p><pre>Presentation<br>     ↓<br>Application / State<br>     ↓<br>Domain<br>     ↓<br>Data<br>     ↓<br>API / Database</pre><p>The exact architecture can vary.</p><p>You might use Clean Architecture.</p><p>You might use feature-based architecture.</p><p>You might use a simpler layered architecture.</p><p>The important thing is <strong>separation of responsibilities</strong>.</p><h3>5. State Management Becomes a Bigger Problem Than You Expect</h3><p>State management is easy when you have:</p><pre>isLoading<br>user<br>products</pre><p>It becomes much harder when you have:</p><pre>authenticated user<br>cached user<br>network state<br>pagination<br>optimistic updates<br>pending mutations<br>local database state<br>remote state<br>push notification state<br>deep-link state<br>background task state</pre><p>This is where inexperienced teams often make one mistake:</p><blockquote><em>They put everything into one global state management solution.</em></blockquote><p>That creates a giant state container that eventually becomes difficult to reason about.</p><p>A better approach is to distinguish between different types of state.</p><h3>UI state</h3><p>Examples:</p><pre>isModalOpen<br>selectedTab<br>searchText<br>isExpanded</pre><h3>Server state</h3><p>Examples:</p><pre>user profile<br>orders<br>products<br>notifications</pre><h3>Persistent local state</h3><p>Examples:</p><pre>authentication tokens<br>user preferences<br>offline records<br>cached data</pre><h3>Application state</h3><p>Examples:</p><pre>current session<br>permissions<br>feature flags<br>connectivity</pre><p>Flutter and React Native both give you many options here.</p><p>Flutter developers might use Riverpod, Bloc, Provider, Cubit, or other patterns.</p><p>React Native developers might use Redux, Zustand, Context, MobX, or server-state tools such as TanStack Query.</p><p>But the important question isn’t:</p><blockquote><em>“Which state management library is best?”</em></blockquote><p>The better question is:</p><blockquote><strong><em>“What kind of state am I managing, and who owns it?”</em></strong></blockquote><p>That question becomes much more important as the application grows.</p><h3>6. API Calls Shouldn’t Live Everywhere</h3><p>I have seen mobile applications where every screen directly performs HTTP requests.</p><p>Something like:</p><pre>class ProfileScreen extends StatelessWidget {<br>  Future&lt;void&gt; loadProfile() async {<br>    final response = await dio.get(&#39;/profile&#39;);<br>  }<br>}</pre><p>Or in React Native:</p><pre>const loadProfile = async () =&gt; {<br>  const response = await axios.get(&#39;/profile&#39;);<br>};</pre><p>There’s nothing inherently wrong with making an HTTP request.</p><p>The problem is when <strong>every screen becomes responsible for networking</strong>.</p><p>Eventually you end up duplicating:</p><ul><li>authentication headers</li><li>error handling</li><li>retries</li><li>response parsing</li><li>logging</li><li>token refresh</li><li>loading states</li><li>caching</li></ul><p>Instead, I prefer centralizing networking concerns.</p><p>For example:</p><pre>UI<br> ↓<br>Repository<br> ↓<br>API Client<br> ↓<br>HTTP</pre><p>The API client handles infrastructure concerns.</p><p>The repository handles data access.</p><p>The UI shouldn’t care whether data came from:</p><pre>REST API<br>GraphQL<br>SQLite<br>cache<br>mock server</pre><p>This separation becomes extremely valuable when you introduce offline support.</p><h3>7. Authentication Is More Than Login and Logout</h3><p>A common beginner implementation is:</p><pre>Login<br> ↓<br>Store token<br> ↓<br>Send token with requests</pre><p>Production authentication is much more complicated.</p><p>What happens when the access token expires?</p><p>Suppose five requests happen simultaneously:</p><pre>Request A → 401<br>Request B → 401<br>Request C → 401<br>Request D → 401<br>Request E → 401</pre><p>You don’t want five independent refresh requests racing against each other.</p><p>You need a token-refresh strategy.</p><p>Conceptually:</p><pre>API Request<br>    ↓<br>401?<br>    ↓<br>Refresh token<br>    ↓<br>New access token<br>    ↓<br>Retry original request</pre><p>But there are more questions:</p><ul><li>What happens if refresh fails?</li><li>What happens if the refresh token expires?</li><li>Where is the token stored?</li><li>Can another application access it?</li><li>What happens after logout?</li><li>What happens if the application is killed during authentication?</li><li>How do you prevent requests from continuing after logout?</li></ul><p>In Flutter, secure storage solutions are commonly used for sensitive credentials.</p><p>In React Native, developers often use secure storage mechanisms rather than plain AsyncStorage for sensitive tokens.</p><p>The principle is the same:</p><blockquote><strong><em>Authentication state is infrastructure, not UI state.</em></strong></blockquote><h3>8. Offline Support Changes Everything</h3><p>This is one of the biggest differences between a demo application and a production application.</p><p>Imagine a delivery application.</p><p>A driver is moving through an area with poor connectivity.</p><p>The application records:</p><pre>Location 1<br>Location 2<br>Location 3<br>Location 4</pre><p>But the network is unavailable.</p><p>What should happen?</p><p>A naive application does this:</p><pre>GPS → API</pre><p>No network:</p><pre>GPS → ❌</pre><p>A production application can do:</p><pre>GPS<br> ↓<br>Local Database<br> ↓<br>Sync Queue<br> ↓<br>Network Available?<br> ↓<br>API</pre><p>Now the application can continue working even when the network disappears.</p><p>This introduces new engineering problems:</p><ul><li>How long should data remain locally?</li><li>What happens if synchronization fails?</li><li>What happens if the same event is uploaded twice?</li><li>How do we resolve conflicts?</li><li>How do we know which records have already synchronized?</li><li>What happens if the app is killed?</li><li>How much storage should be used?</li></ul><p>At this point, you’re no longer just building a mobile UI.</p><p>You’re designing a distributed system.</p><h3>9. Background Tasks Are Where Mobile Gets Serious</h3><p>One of the most misleading assumptions in mobile development is:</p><blockquote><em>“I’ll just run this function every five minutes.”</em></blockquote><p>Mobile operating systems don’t work that way.</p><p>Android and iOS aggressively manage background execution because of:</p><ul><li>battery</li><li>memory</li><li>privacy</li><li>performance</li><li>thermal constraints</li></ul><p>If your application needs background location, synchronization, notifications, or periodic work, you need to understand the operating system, not just the framework.</p><p>For example:</p><pre>Application Open<br>       ↓<br>Background<br>       ↓<br>Process Suspended<br>       ↓<br>Process Terminated</pre><p>Your application must be designed around the possibility that the operating system can interrupt your process.</p><p>This is particularly important for:</p><ul><li>location tracking</li><li>fitness applications</li><li>delivery applications</li><li>navigation</li><li>messaging</li><li>synchronization</li><li>media applications</li></ul><p>Flutter and React Native can both access these capabilities, but eventually you need to understand the native platform behavior underneath the framework.</p><h3>10. Native Knowledge Becomes Necessary</h3><p>This is probably one of the biggest surprises for developers who enter Flutter or React Native expecting to never touch native code.</p><p>Eventually you encounter something like:</p><pre>AndroidManifest.xml<br>Info.plist<br>Gradle<br>Xcode<br>CocoaPods<br>Kotlin<br>Swift<br>Java<br>Objective-C</pre><p>And suddenly your “cross-platform” application isn’t entirely cross-platform anymore.</p><p>This isn’t necessarily a bad thing.</p><p>It’s simply reality.</p><p>Cross-platform frameworks give you abstraction.</p><p>But abstraction doesn’t eliminate the underlying platform.</p><p>For example, if you’re implementing:</p><ul><li>Bluetooth</li><li>background location</li><li>NFC</li><li>advanced camera functionality</li><li>background services</li><li>health data</li><li>native payment SDKs</li><li>custom notifications</li><li>platform-specific security</li></ul><p>you may need to understand native APIs.</p><p>A senior cross-platform developer doesn’t try to avoid native development at all costs.</p><p>They understand <strong>when the abstraction is useful and when to go below it.</strong></p><h3>11. Dependency Management Can Become a Full-Time Job</h3><p>Your application might depend on:</p><pre>Flutter<br>React Native<br>Android Gradle Plugin<br>Kotlin<br>Xcode<br>CocoaPods<br>Firebase<br>Maps SDK<br>Analytics SDK<br>Payment SDK<br>Push notification SDK</pre><p>And then you add:</p><pre>Package A<br>Package B<br>Package C</pre><p>Everything works.</p><p>Then you upgrade one dependency.</p><p>Suddenly:</p><pre>Gradle build failed</pre><p>Or:</p><pre>Pod installation failed</pre><p>Or:</p><pre>Undefined symbols</pre><p>Or:</p><pre>Minimum deployment target is too low</pre><p>This is where dependency discipline becomes important.</p><p>Don’t upgrade packages blindly.</p><p>Read changelogs.</p><p>Understand breaking changes.</p><p>Keep your dependency graph manageable.</p><p>Remove packages you no longer need.</p><p>And most importantly:</p><blockquote><strong><em>Don’t add a dependency for something you can reasonably implement yourself.</em></strong></blockquote><p>A dependency isn’t free.</p><p>You are outsourcing part of your application’s future maintenance to someone else’s codebase.</p><h3>12. Performance Is More Than “The App Feels Slow”</h3><p>Performance problems often become visible only after the application grows.</p><p>In Flutter, you need to understand things such as:</p><ul><li>unnecessary widget rebuilds</li><li>expensive build methods</li><li>large widget trees</li><li>inefficient lists</li><li>image memory</li><li>layout cost</li><li>excessive synchronous work</li><li>unnecessary animations</li></ul><p>In React Native:</p><ul><li>unnecessary component renders</li><li>poor list virtualization</li><li>excessive state updates</li><li>expensive JavaScript execution</li><li>large bundles</li><li>unnecessary work during startup</li><li>expensive communication with native functionality</li></ul><p>For example, rendering thousands of records at once is a bad idea regardless of framework.</p><p>You need virtualization/pagination.</p><p>Instead of:</p><pre>Fetch 10,000 records<br>        ↓<br>Render 10,000 items</pre><p>you want something closer to:</p><pre>Fetch 20–50 records<br>        ↓<br>Render visible items<br>        ↓<br>Load more</pre><p>Performance is an architectural concern.</p><p>It shouldn’t be something you think about only after users complain.</p><h3>13. Image Optimization Is Surprisingly Important</h3><p>Images can quietly destroy mobile performance.</p><p>Consider an application displaying product images.</p><p>The backend returns:</p><pre>4000 × 4000</pre><p>but the phone displays:</p><pre>200 × 200</pre><p>You’re downloading and decoding dramatically more data than necessary.</p><p>Production applications should think about:</p><ul><li>image resizing</li><li>compression</li><li>WebP/AVIF where appropriate</li><li>caching</li><li>thumbnails</li><li>lazy loading</li><li>CDN delivery</li><li>memory usage</li></ul><p>This matters especially on devices with limited memory or poor network connectivity.</p><h3>14. Error Handling Is Part of the User Experience</h3><p>A common implementation is:</p><pre>API fails<br> ↓<br>Show &quot;Something went wrong&quot;</pre><p>That’s not really error handling.</p><p>Different failures should produce different behaviors.</p><p>For example:</p><pre>401 → Refresh authentication<br>403 → Permission error<br>404 → Resource unavailable<br>409 → Conflict<br>422 → Validation error<br>429 → Retry later<br>500 → Server failure<br>timeout → Retry<br>offline → Use cached/local state</pre><p>A good mobile application doesn’t merely <strong>detect errors</strong>.</p><p>It knows what to do about them.</p><h3>15. Observability Changes How You Debug</h3><p>When you’re developing locally, you have:</p><pre>console.log()</pre><p>and:</p><pre>debugger</pre><p>In production, you don’t have the user’s device sitting in front of you.</p><p>A user might report:</p><blockquote><em>“The app crashed when I clicked the payment button.”</em></blockquote><p>That’s not enough information.</p><p>You need:</p><ul><li>crash reports</li><li>stack traces</li><li>application version</li><li>operating system</li><li>device model</li><li>breadcrumbs</li><li>network failures</li><li>relevant application state</li><li>performance metrics</li></ul><p>Tools such as Crashlytics and Sentry become incredibly useful here.</p><p>The goal isn’t simply knowing <strong>that</strong> the app crashed.</p><p>You want to know:</p><blockquote><strong><em>Why did it crash, on which version, on which device, and what was the user doing immediately before it happened?</em></strong></blockquote><h3>16. Testing Needs to Go Beyond “It Works on My Phone”</h3><p>Another production lesson:</p><p>Your phone is not your user base.</p><p>You might test on:</p><pre>Pixel 9<br>iPhone 16</pre><p>while your users have:</p><pre>low-end Android<br>older iPhone<br>small screen<br>large screen<br>slow network<br>limited storage<br>battery saver enabled</pre><p>Your testing strategy needs multiple levels.</p><h3>Unit tests</h3><p>Test business logic:</p><pre>calculatePrice()<br>validateOrder()<br>calculateDistance()</pre><h3>Integration tests</h3><p>Test interactions:</p><pre>Login → API → persistence</pre><h3>Widget/component tests</h3><p>Test UI behavior.</p><h3>End-to-end tests</h3><p>Test real user flows:</p><pre>Open app<br> ↓<br>Login<br> ↓<br>Search<br> ↓<br>Add item<br> ↓<br>Checkout</pre><p>The goal isn’t achieving a magical 100% coverage number.</p><p>The goal is protecting <strong>critical business behavior</strong>.</p><h3>17. Release Management Becomes Engineering</h3><p>Building the application is only half the job.</p><p>You also need to ship it.</p><p>That means dealing with:</p><ul><li>Android signing</li><li>iOS certificates</li><li>provisioning profiles</li><li>build variants</li><li>environment variables</li><li>staging</li><li>production</li><li>app versioning</li><li>release notes</li><li>CI/CD</li><li>store review</li><li>rollback strategies</li></ul><p>A mature setup might look like:</p><pre>Pull Request<br>     ↓<br>Tests<br>     ↓<br>Build<br>     ↓<br>Staging<br>     ↓<br>QA<br>     ↓<br>Production</pre><p>Instead of:</p><pre>Developer&#39;s Laptop<br>       ↓<br>     Build<br>       ↓<br>     Upload</pre><p>Manual releases might work initially.</p><p>They become dangerous as the team grows.</p><h3>18. Flutter vs React Native: What I’ve Learned</h3><p>After working with both, I don’t think the question should be:</p><blockquote><em>“Which framework is better?”</em></blockquote><p>The better question is:</p><blockquote><strong><em>“Which technology makes sense for this product, this team, and this environment?”</em></strong></blockquote><h3>I generally like Flutter when:</h3><ul><li>I want highly consistent UI across platforms.</li><li>The application has a heavily customized interface.</li><li>The team is comfortable with Dart.</li><li>We want a strong, cohesive UI framework.</li><li>We don’t need to rely heavily on an existing React/web ecosystem.</li></ul><h3>I generally like React Native when:</h3><ul><li>The team already has strong React/TypeScript experience.</li><li>There is significant JavaScript/TypeScript expertise.</li><li>The organization has existing React infrastructure.</li><li>Sharing knowledge between web and mobile teams is valuable.</li><li>Native integration requirements align well with available libraries and platform capabilities.</li></ul><p>Neither choice eliminates engineering complexity.</p><p>It simply moves some of that complexity around.</p><h3>19. The Biggest Mistake: Optimizing for Developer Experience Only</h3><p>Flutter and React Native are both extremely productive.</p><p>That’s one of their greatest strengths.</p><p>But productivity can create a trap.</p><p>You can build an MVP so quickly that you don’t realize how much technical debt you’re accumulating.</p><p>The application goes from:</p><pre>5 screens</pre><p>to:</p><pre>20 screens</pre><p>then:</p><pre>50 screens</pre><p>and suddenly you have:</p><pre>Global State<br>   ↓<br>Everything</pre><p>and:</p><pre>Screen<br>   ↓<br>API<br>   ↓<br>Database<br>   ↓<br>Business Logic</pre><p>all living together.</p><p>The framework didn’t create the problem.</p><p>The architecture did.</p><h3>20. What I’d Do Differently on My Next Large Mobile Application</h3><p>If I were starting a large Flutter or React Native application today, I would establish these principles early.</p><h3>1. Organize by feature</h3><p>Instead of:</p><pre>screens/<br>components/<br>services/<br>utils/</pre><p>for the entire application, consider:</p><pre>features/<br>    authentication/<br>    payments/<br>    profile/<br>    orders/<br>    notifications/</pre><p>Each feature owns much of its functionality.</p><h3>2. Separate UI from business logic</h3><p>A screen should primarily answer:</p><blockquote><em>What should the user see?</em></blockquote><p>It shouldn’t also answer:</p><blockquote><em>How does the database work?</em></blockquote><blockquote><em>How does token refresh work?</em></blockquote><blockquote><em>How do we retry this request?</em></blockquote><h3>3. Treat network failures as normal</h3><p>Don’t build as though the internet is guaranteed.</p><p>Design for:</p><pre>Online<br>Offline<br>Slow<br>Timeout<br>Partial failure<br>Server failure</pre><h3>4. Understand the native platforms</h3><p>You don’t need to become a full-time Android or iOS developer.</p><p>But if you’re a serious Flutter or React Native developer, you should understand:</p><ul><li>Android lifecycle</li><li>iOS lifecycle</li><li>permissions</li><li>background execution</li><li>native builds</li><li>signing</li><li>platform configuration</li><li>native debugging</li></ul><p>The abstraction is valuable only when you understand what it is abstracting.</p><h3>5. Build observability from day one</h3><p>Don’t wait until production crashes become difficult to reproduce.</p><p>Add:</p><pre>Crash reporting<br>Analytics<br>Performance monitoring<br>Structured logging</pre><p>early.</p><h3>The Real Skill Isn’t Flutter or React Native</h3><p>After working with both frameworks, I’ve come to believe that senior mobile development is less about memorizing framework APIs and more about understanding <strong>systems</strong>.</p><p>A junior developer asks:</p><blockquote><em>“Which package should I use?”</em></blockquote><p>An experienced developer asks:</p><blockquote><em>“What problem am I actually solving?”</em></blockquote><p>A junior developer asks:</p><blockquote><em>“How do I make this API call?”</em></blockquote><p>An experienced developer asks:</p><blockquote><em>“What happens if the request fails halfway through?”</em></blockquote><p>A junior developer asks:</p><blockquote><em>“How do I run this in the background?”</em></blockquote><p>An experienced developer asks:</p><blockquote><em>“What happens when the operating system suspends or kills my application?”</em></blockquote><p>A junior developer asks:</p><blockquote><em>“Which state management library should we use?”</em></blockquote><p>An experienced developer asks:</p><blockquote><em>“Which state belongs where?”</em></blockquote><p>That’s the difference.</p><p>Flutter and React Native are tools.</p><p>The real engineering skill is knowing how to use those tools to build systems that remain <strong>reliable, observable, maintainable, and performant after the application leaves the developer’s laptop.</strong></p><p>And that’s the part nobody tells you before you scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7d12b0cd176" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your API Works. Your System Doesn’t: 7 Engineering Decisions That Matter in Production]]></title>
            <link>https://medium.com/@jakintemi/your-api-works-your-system-doesnt-7-engineering-decisions-that-matter-in-production-4898d3e713ea?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4898d3e713ea</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 18:48:49 GMT</pubDate>
            <atom:updated>2026-08-14T18:48:49.681Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57mrl2yZevRhq965RcUFuA.jpeg" /></figure><p><em>Building an API is easy. Building a system that can survive production is a completely different problem.</em></p><p>I used to think a successful backend feature was simple to define:</p><p>The endpoint returns 200 OK.</p><p>The database contains the expected record, the frontend displays the result. Done.</p><p>Then you start working on systems that have real users, real business rules, real data, and real consequences when something goes wrong.</p><p>Suddenly, the questions change.</p><p>What happens if the request reaches the server twice?</p><p>What happens if the database goes down halfway through a transaction?</p><p>What happens when 10,000 users hit the same endpoint?</p><p>What happens when someone has a valid login session but shouldn’t have access to a particular resource?</p><p>What happens when a third-party service takes 30 seconds to respond?</p><p>What happens when your application is technically “up” but users are experiencing failures?</p><p>That’s when you realize something important:</p><blockquote><strong><em>An API can work perfectly while the system around it is fundamentally broken.</em></strong></blockquote><p>The difference between writing code and engineering software is often found in the decisions nobody notices when everything is working.</p><p>Here are seven of them.</p><h3>1. Design APIs Around Business Capabilities, Not Database Tables</h3><p>One of the easiest mistakes when building APIs is allowing the database schema to dictate the API design.</p><p>You have a users table, so you create:</p><pre>GET /users<br>POST /users<br>PUT /users/:id<br>DELETE /users/:id</pre><p>You have an orders table:</p><pre>GET /orders<br>POST /orders<br>PUT /orders/:id<br>DELETE /orders/:id</pre><p>It looks clean, but real systems rarely work that way.</p><p>Consider an e-commerce system.</p><p>Creating an order might involve:</p><ul><li>validating the customer</li><li>checking inventory</li><li>calculating prices</li><li>applying discounts</li><li>calculating taxes</li><li>reserving stock</li><li>processing payment</li><li>creating an audit record</li><li>sending notifications</li></ul><p>That’s not simply:</p><pre>POST /orders</pre><p>It’s a business operation.</p><p>The API should represent meaningful capabilities of the system rather than exposing every database operation directly.</p><p>For example:</p><pre>POST /orders<br>POST /orders/:id/cancel<br>POST /orders/:id/confirm<br>POST /orders/:id/refund</pre><p>The difference seems small, but architecturally it is significant.</p><p>Your database describes <strong>how data is stored</strong>.</p><p>Your API should describe <strong>what the system can do</strong>.</p><p>That distinction becomes extremely valuable as the application grows.</p><h3>2. Authentication Is Not Authorization</h3><p>This is one of the most common architectural mistakes I have seen.</p><p>A user logs in successfully.</p><p>The server verifies the token.</p><p>The request is authenticated.</p><p>So we allow the operation.</p><p>But authentication only answers:</p><blockquote><strong><em>Who are you?</em></strong></blockquote><p>Authorization answers:</p><blockquote><strong><em>What are you allowed to do?</em></strong></blockquote><p>Imagine an ERP system with:</p><ul><li>administrators</li><li>accountants</li><li>sales representatives</li><li>inventory managers</li><li>regular employees</li></ul><p>A valid JWT doesn’t mean every user should be able to access every resource.</p><p>This is dangerous:</p><pre>if (user) {<br>    return updateInvoice();<br>}</pre><p>The better question is:</p><pre>if (user &amp;&amp; canUpdateInvoice(user)) {<br>    return updateInvoice();<br>}</pre><p>And canUpdateInvoice() shouldn&#39;t just be a collection of random if statements scattered throughout controllers.</p><p>Permissions should be treated as part of the system’s architecture.</p><p>For example:</p><pre>User<br>  ↓<br>Role<br>  ↓<br>Permissions<br>  ↓<br>Resource<br>  ↓<br>Action</pre><p>As systems grow, authorization becomes more complex.</p><p>You may eventually need:</p><ul><li>role-based access control</li><li>resource ownership</li><li>organization-level permissions</li><li>permission inheritance</li><li>audit trails</li><li>service-to-service authorization</li></ul><p>A senior engineer doesn’t just ask:</p><blockquote><em>“Can this user log in?”</em></blockquote><p>They ask:</p><blockquote><strong><em>“What exactly can this identity do, under what conditions, and how do we prove it?”</em></strong></blockquote><h3>3. Database Transactions Are Part of Your Business Logic</h3><p>Here’s a deceptively simple operation:</p><blockquote><em>Transfer $1,000 from Account A to Account B.</em></blockquote><p>You might write:</p><pre>Debit A<br>Credit B</pre><p>But what happens if the first operation succeeds and the second fails?</p><p>Now the system has created money out of nowhere or lost it.</p><p>The database isn’t just a place where you store objects.</p><p>For many systems, it is responsible for maintaining <strong>business invariants</strong>.</p><p>A transaction might look conceptually like:</p><pre>BEGIN</pre><pre>    Debit Account A</pre><pre>    Credit Account B</pre><pre>    Create Transaction Record</pre><pre>COMMIT</pre><p>If anything fails:</p><pre>ROLLBACK</pre><p>The important part isn’t knowing the syntax for transactions.</p><p>The important part is recognizing <strong>where atomicity matters</strong>.</p><p>Consider an order system:</p><pre>Create Order<br>     ↓<br>Reserve Inventory<br>     ↓<br>Create Payment Record<br>     ↓<br>Update Customer Balance</pre><p>If these operations must succeed or fail together, treating them as independent database writes can create inconsistent state.</p><p>This is why experienced engineers ask:</p><blockquote><em>What must always be true about my data?</em></blockquote><p>Those statements are your <strong>invariants</strong>.</p><p>And your architecture should protect them.</p><h3>4. Design for Failure, Not Just the Happy Path</h3><p>Most applications are designed like this:</p><pre>Request<br>  ↓<br>API<br>  ↓<br>Database<br>  ↓<br>Response</pre><p>Production looks more like this:</p><pre>User<br>  ↓<br>Internet<br>  ↓<br>Load Balancer<br>  ↓<br>Application<br>  ↓<br>Cache<br>  ↓<br>Database<br>  ↓<br>Third-party API<br>  ↓<br>Message Queue</pre><p>Every arrow is a potential failure.</p><p>The network can fail.</p><p>The database can become unavailable.</p><p>A third-party API can timeout.</p><p>A service can return malformed data.</p><p>A queue can become backed up.</p><p>A deployment can introduce a regression.</p><p>So one of the most important questions when designing a system is:</p><blockquote><strong><em>“What happens when this dependency fails?”</em></strong></blockquote><p>For external services, you may need:</p><ul><li>timeouts</li><li>retries</li><li>exponential backoff</li><li>circuit breakers</li><li>fallbacks</li><li>idempotency</li><li>dead-letter queues</li></ul><p>But there’s an important warning here:</p><p><strong>Retries are not automatically good.</strong></p><p>If an operation charges a customer’s credit card and the response times out, blindly retrying could potentially charge them twice.</p><p>That is where <strong>idempotency</strong> becomes important.</p><p>For example:</p><pre>POST /payments<br>Idempotency-Key: 83f2a9...</pre><p>The server can recognize that the operation has already been processed.</p><p>The goal is not to eliminate failure. That’s impossible.</p><p>The goal is to make failure <strong>safe and predictable</strong>.</p><h3>5. Scaling Isn’t Just Adding More Servers</h3><p>When developers hear “the application needs to scale,” the first instinct is often:</p><blockquote><em>Add more servers.</em></blockquote><p>Sometimes that’s exactly what you need.</p><p>But horizontal scaling doesn’t magically fix an inefficient system.</p><p>Imagine an endpoint that performs:</p><pre>SELECT * FROM orders<br>WHERE customer_id = ?<br>ORDER BY created_at DESC;</pre><p>If the table contains 50 million records and there is no appropriate index, adding ten application servers won’t solve the underlying database problem.</p><p>You may have:</p><pre>10 Application Servers<br>        ↓<br>      Database<br>        ↓<br>  50 Million Rows</pre><p>The bottleneck is still the database.</p><p>Scaling requires understanding where the bottleneck actually is.</p><p>Sometimes the answer is:</p><ul><li>database indexing</li><li>query optimization</li><li>caching</li><li>connection pooling</li><li>pagination</li><li>asynchronous processing</li><li>read replicas</li><li>partitioning</li><li>horizontal application scaling</li></ul><p>And sometimes the problem isn’t performance at all.</p><p>It’s architecture.</p><p>A senior engineer doesn’t ask:</p><blockquote><em>“How do I make this faster?”</em></blockquote><p>They ask:</p><blockquote><strong><em>“What is currently limiting the system, and what evidence do I have?”</em></strong></blockquote><p>Measure first.</p><p>Optimize second.</p><h3>6. Observability Is More Than Logging</h3><p>Imagine your production application is “up.”</p><p>Your servers are running.</p><p>Your health check returns:</p><pre>200 OK</pre><p>But users are complaining that requests are taking 15 seconds.</p><p>Is your application healthy?</p><p>Technically, yes.</p><p>Operationally?</p><p>No.</p><p>This is why production systems need observability.</p><p>At minimum, I want to understand:</p><h3>Logs</h3><p>What happened?</p><pre>Payment failed for transaction 82931</pre><h3>Metrics</h3><p>How often is it happening?</p><pre>Payment failure rate: 4.8%</pre><h3>Traces</h3><p>Where is the request spending time?</p><pre>API<br> ↓ 50ms<br>Payment Service<br> ↓ 120ms<br>Database<br> ↓ 8.4s<br>Third-party provider</pre><p>Suddenly, the problem becomes obvious.</p><p>Without observability, debugging production becomes:</p><blockquote><em>“It seems slow.”</em></blockquote><p>With observability, it becomes:</p><blockquote><em>“95th percentile latency increased from 350ms to 4.2s, primarily because the payment provider is timing out.”</em></blockquote><p>That’s a completely different engineering conversation.</p><p>Good systems don’t just tell you <strong>that something failed</strong>.</p><p>They help you understand <strong>why</strong>.</p><h3>7. Security Has to Exist Beyond the Login Screen</h3><p>Security isn’t a feature you add at the end of development.</p><p>It’s a property of the architecture.</p><p>Consider a simple API:</p><pre>POST /users</pre><p>Even if authentication and authorization are implemented correctly, there are still questions.</p><p>What happens if someone sends:</p><pre>{<br>  &quot;role&quot;: &quot;admin&quot;<br>}</pre><p>during registration?</p><p>What happens if someone submits a massive payload?</p><p>What happens if the endpoint is called 100,000 times in a minute?</p><p>What happens if an ID from another organization is supplied?</p><p>What happens if an attacker tries SQL injection?</p><p>What happens if sensitive information appears in application logs?</p><p>Security requires thinking about:</p><ul><li>input validation</li><li>rate limiting</li><li>secrets management</li><li>least privilege</li><li>encryption</li><li>secure headers</li><li>dependency vulnerabilities</li><li>audit logging</li><li>data exposure</li><li>tenant isolation</li></ul><p>And one of my favorite security principles is:</p><blockquote><strong><em>Never trust the client.</em></strong></blockquote><p>Not React.</p><p>Not mobile apps.</p><p>Not browser requests.</p><p>Not hidden form fields.</p><p>Not local storage.</p><p>The client is controlled by the user.</p><p>The backend must enforce the rules.</p><h3>The Real Engineering Skill: Thinking in Failure Modes</h3><p>If there’s one thing I’ve learned from working on software systems, it’s that writing the endpoint is often the easiest part.</p><p>The difficult questions come afterward.</p><p>What happens when:</p><ul><li>the request is duplicated?</li><li>the database is unavailable?</li><li>two users modify the same resource?</li><li>the third-party API times out?</li><li>the application receives unexpected input?</li><li>permissions change?</li><li>traffic increases 100×?</li><li>a deployment goes wrong?</li><li>a service becomes slow instead of completely unavailable?</li><li>data is partially written?</li></ul><p>These aren’t edge cases.</p><p><strong>These are production.</strong></p><p>The happy path is only one possible path through your system.</p><h3>A Different Definition of “Done”</h3><p>I’ve started thinking about “done” differently.</p><p>A feature isn’t done because:</p><pre>✓ API works<br>✓ UI works<br>✓ Tests pass</pre><p>Those things matter.</p><p>But production readiness requires asking more questions.</p><pre>✓ Is it secure?<br>✓ Is it observable?<br>✓ Is it resilient?<br>✓ Is the data consistent?<br>✓ Can it handle concurrency?<br>✓ Can it scale?<br>✓ Can it fail safely?<br>✓ Can we recover from failure?<br>✓ Can another engineer understand it six months from now?</pre><p>That’s the difference between:</p><p><strong>“I built the feature.”</strong></p><p>and</p><p><strong>“I engineered the system.”</strong></p><h3>Final Thought</h3><p>The more software I build, the more I realize that senior engineering isn’t about knowing the most frameworks.</p><p>It’s not about having the longest list of technologies on your résumé.</p><p>And it’s definitely not about writing the most complicated code.</p><p>It’s about making good decisions when the requirements are incomplete, the system is growing, and failure is inevitable.</p><p>A junior engineer might ask:</p><blockquote><em>“How do I make this endpoint work?”</em></blockquote><p>An experienced engineer asks:</p><blockquote><em>“How should this endpoint behave when everything goes wrong?”</em></blockquote><p>And a strong systems engineer asks:</p><blockquote><strong><em>“How do I design the system so that failure doesn’t become a disaster?”</em></strong></blockquote><p>That’s where production engineering begins.</p><p>And that’s where writing code becomes <strong>software engineering</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4898d3e713ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI Is Changing Frontend Development in 2026: What Every Developer Should Know]]></title>
            <link>https://medium.com/@jakintemi/how-ai-is-changing-frontend-development-in-2026-what-every-developer-should-know-632b65da927d?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/632b65da927d</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Sun, 31 May 2026 21:42:45 GMT</pubDate>
            <atom:updated>2026-05-31T21:42:45.695Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*M7ZhlFzQ0YmvnTSonIzffw.avif" /></figure><p>A few years ago, frontend development was mostly about writing code.</p><p>Today, it feels more like directing code.</p><p>The difference is huge.</p><p>In 2026, AI can generate components, write tests, explain bugs, create documentation, review pull requests, and even build entire applications from a simple prompt.</p><p>The question is no longer:</p><blockquote><em>“Can AI write code?”</em></blockquote><p>The real question is:</p><blockquote><em>“How do frontend developers stay valuable when AI can write so much of it?”</em></blockquote><p>The answer is surprisingly simple.</p><p>Developers are not becoming obsolete.</p><p>They are becoming more important.</p><p>But the skills that matter are changing.</p><h3>The Frontend Workflow Has Changed Forever</h3><p>This was the traditional workflow:</p><pre>Idea<br> ↓<br>Design<br> ↓<br>Write Code<br> ↓<br>Debug<br> ↓<br>Deploy</pre><p>This is what it looks like today:</p><pre>Idea<br> ↓<br>Prompt AI<br> ↓<br>Review Output<br> ↓<br>Improve Architecture<br> ↓<br>Ship Faster</pre><p>Notice something?</p><p>The coding step didn’t disappear.</p><p>It simply got smaller.</p><p>Frontend engineers are spending less time typing and more time making decisions.</p><h3>AI Has Turned Junior-Level Coding Into a Commodity</h3><p>Let’s be honest.</p><p>Most frontend developers have spent hours writing things like:</p><ul><li>Login forms</li><li>Navigation bars</li><li>CRUD dashboards</li><li>Authentication pages</li><li>Responsive layouts</li><li>API integrations</li></ul><p>In 2026, AI can generate these in seconds.</p><p>Need a React component?</p><p>AI can do it.</p><p>Need a Next.js dashboard?</p><p>AI can do it.</p><p>Need Tailwind styling?</p><p>AI can do it.</p><p>Need unit tests?</p><p>AI can do it too.</p><p>What used to take three hours can now take three minutes.</p><h3>The New Developer Superpower Is Judgment</h3><p>AI generates.</p><p>Developers evaluate.</p><p>That distinction matters.</p><p>Imagine asking AI:</p><blockquote><em>Build a payment dashboard for a fintech application.</em></blockquote><p>You’ll get code.</p><p>Lots of it.</p><p>But AI doesn’t understand:</p><ul><li>Business goals</li><li>User psychology</li><li>Product strategy</li><li>Accessibility requirements</li><li>Long-term maintainability</li><li>Team conventions</li></ul><p>That’s where developers come in.</p><p>Think of AI as a very fast junior engineer.</p><p>It can produce work quickly.</p><p>But it still needs direction.</p><h3>The Rise of the AI-Augmented Developer</h3><p>The best developers today are not competing with AI.</p><p>They are collaborating with it.</p><p>Here is what modern development looks like:</p><pre>Developer<br>    ↓<br>Defines Problem<br>    ↓<br>AI Generates Solution<br>    ↓<br>Developer Refines<br>    ↓<br>Production Application</pre><p>The developer remains in control.</p><p>AI simply removes repetitive work.</p><p>This is why many engineers are becoming dramatically more productive.</p><p>One developer can now accomplish what previously required an entire team.</p><h3>UI Development Is Becoming Prompt-Driven</h3><p>One of the biggest shifts happening right now is prompt-driven UI development.</p><p>Instead of writing every component manually, developers describe what they want.</p><p>Example:</p><pre>Create a responsive pricing section with:<br><br>* Three pricing tiers<br>* Monthly and yearly toggle<br>* Dark mode support<br>* Smooth animations</pre><p>Seconds later, the code appears.</p><p>This doesn’t eliminate frontend engineering.</p><p>It changes where frontend engineering begins.</p><p>Instead of starting from a blank file, developers start with a generated foundation.</p><h3>The Skills That Matter More Than Ever</h3><p>If AI is handling more coding, what should developers focus on?</p><h3>1. System Design</h3><p>Understanding how applications fit together is becoming a premium skill.</p><p>Questions like:</p><ul><li>How should state be managed?</li><li>How should services communicate?</li><li>What should be cached?</li><li>What should be server-rendered?</li></ul><p>AI can suggest answers.</p><p>Developers choose the right one.</p><h3>2. User Experience (UX)</h3><p>AI can build interfaces.</p><p>It cannot fully understand humans.</p><p>Developers who understand:</p><ul><li>User behavior</li><li>Accessibility</li><li>Design principles</li><li>Product thinking</li></ul><p>will continue to stand out.</p><h3>3. Problem Solving</h3><p>The real job has never been writing code.</p><p>The real job is solving problems.</p><p>Companies don’t hire developers because they need React components.</p><p>They hire developers because they need business problems solved.</p><h3>4. AI Literacy</h3><p>Every frontend engineer should understand:</p><ul><li>Prompt engineering</li><li>AI-assisted workflows</li><li>LLM limitations</li><li>AI debugging techniques</li><li>Agent-based development</li></ul><p>Using AI effectively is becoming as important as knowing Git.</p><h3>The Developers Who Will Struggle</h3><p>Let us address the uncomfortable truth.</p><p>Some developers may struggle.</p><p>Not because AI replaced them.</p><p>Because they refused to adapt.</p><p>The same thing happened when:</p><ul><li>jQuery became less relevant</li><li>React became popular</li><li>Cloud computing became mainstream</li><li>Mobile-first design became standard</li></ul><p>Technology evolves.</p><p>Developers evolve with it.</p><p>Those who don’t get left behind.</p><h3>The Developers Who Will Thrive</h3><p>The most successful frontend engineers in 2026 have a different mindset.</p><p>They:</p><p>✅ Use AI daily</p><p>✅ Focus on architecture</p><p>✅ Understand product thinking</p><p>✅ Communicate clearly</p><p>✅ Learn continuously</p><p>✅ Solve business problems</p><p>Notice that “typing code quickly” isn’t on the list.</p><p>That isno longer the competitive advantage.</p><h3>Final Thoughts</h3><p>AI is not killing frontend development.</p><p>It is removing the parts many developers secretly disliked anyway.</p><p>The repetitive coding.</p><p>The boilerplate.</p><p>The endless setup.</p><p>What’s left is the interesting part:</p><p>Understanding users.</p><p>Designing solutions.</p><p>Building products.</p><p>Making decisions.</p><p>The developers who embrace AI won’t be replaced by it.</p><p>They will become faster, more effective, and more valuable than ever before.</p><p>The future doesn’t belong to developers who write the most code.</p><p>It belongs to developers who create the most impact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=632b65da927d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Microservices in Modern ERP Systems]]></title>
            <link>https://medium.com/@jakintemi/understanding-microservices-in-modern-erp-systems-bbb509f39760?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbb509f39760</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 16:17:11 GMT</pubDate>
            <atom:updated>2026-04-21T16:17:11.048Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*-O8BFWucHB_hxhU_fMOtrw.jpeg" /></figure><p>Modern startups are no longer building large, monolithic applications where everything is tightly coupled. Instead, they are moving toward <strong>microservices architecture</strong>, especially when building complex systems like ERP (Enterprise Resource Planning) platforms. If you have ever wondered how systems like inventory, payments, and customer management work together seamlessly, this guide will give you a clear and practical understanding.</p><p>An ERP system is essentially a centralized platform that manages core business operations such as accounting, inventory, sales (POS), and customer relationships (CRM). In traditional systems, all these features exist in a single codebase. But in modern systems, each of these functionalities is broken into <strong>independent services</strong>, each responsible for a specific domain.</p><p>Think of it like a company with departments. Instead of one person handling everything, you have separate teams for finance, sales, and operations. Each team works independently but collaborates when necessary. That is exactly how microservices work.</p><h3><strong>Microservices (Core Idea)</strong></h3><p>A <strong>microservice architecture</strong> means:</p><ul><li>Each feature = its own service</li><li>Services run independently</li><li>Each service has its own database</li></ul><p>For example:</p><ul><li>The <strong>Inventory Service</strong> manages stock levels</li><li>The <strong>Accounting Service</strong> handles financial records</li><li>The <strong>POS Service</strong> processes sales</li><li>The <strong>CRM Service</strong> manages customers</li></ul><p>Each service has its own database and logic, which makes the system more scalable and easier to maintain.</p><h3>API Gateway (Your System Entry Point)</h3><p>The <strong>API Gateway</strong> is the <strong>single entry point</strong>.</p><p>In a system with many services, you need a single entry point. This is where the <strong>API Gateway</strong> comes in.</p><p>Instead of clients (like web apps or mobile apps) calling multiple services directly, they send all requests to the API Gateway. The gateway then routes each request to the appropriate service.</p><p>Flow:</p><ol><li>Client (web/mobile/POS) sends request</li><li>API Gateway receives it</li><li>Gateway routes it to the correct service</li></ol><p>For example:</p><ul><li>A request to fetch products goes to the Inventory Service</li><li>A request to create an invoice goes to the Accounting Service</li></ul><p>👉 You can say:</p><blockquote><em>“The API Gateway acts as a traffic controller between clients and microservices.”</em></blockquote><h3>Inter-Service Communication</h3><p>There are <strong>two main ways services talk to each other:</strong></p><h3>1. Synchronous Communication</h3><p>This is a direct request-response model using HTTP or gRPC. For example, the POS service may directly request the Inventory service to check stock availability before completing a sale.</p><p>This approach is simple but tightly couples services and can fail if one service is unavailable.</p><h3>2. Asynchronous Communication</h3><p>This is where message brokers like <strong>RabbitMQ</strong> come into play. Instead of calling another service directly, a service sends a message to a queue. The receiving service processes it when it becomes available.</p><p>Imagine this flow:</p><ul><li>The POS service completes a sale</li><li>It sends a message: “Order Created”</li><li>The Inventory service later consumes this message and updates stock</li></ul><p>This approach improves reliability and decouples services.</p><h3>How it works:</h3><ul><li>Service A sends a message to a queue</li><li>Service B consumes it later</li></ul><p>👉 Benefits:</p><ul><li>Loose coupling</li><li>Better performance</li><li>Fault tolerance</li></ul><h3>Handling Failures and Data Consistency</h3><p>One of the biggest challenges in microservices is <strong>data inconsistency</strong>.</p><p>For example, what happens if a sale is recorded, but the inventory service is temporarily down? The stock won’t update immediately, leading to inconsistent data.</p><p>To solve this, modern systems use <strong>event-driven architecture</strong> and embrace a concept called <strong>eventual consistency</strong>.</p><p>Instead of forcing all services to update at the same time, the system allows temporary inconsistencies but ensures that data becomes correct over time.</p><p>Here is how:</p><ul><li>Messages are stored in a queue</li><li>If a service is down, it processes the message later</li><li>Data eventually becomes consistent</li></ul><p>This approach makes systems more resilient.</p><h3>Idempotency: The Safety Net for Reliable Systems</h3><p>In a microservices architecture, especially one that uses message brokers like RabbitMQ, messages can sometimes be delivered more than once. This can happen due to retries, network failures, or service restarts.</p><p>This is where <strong>idempotency</strong> becomes critical.</p><p>Idempotency means that <strong>performing the same operation multiple times produces the same result as performing it once</strong>. In other words, no matter how many times a request or message is processed, the final state of the system remains correct.</p><p>Let’s look at a simple example.</p><p>Imagine a POS service sends a message indicating that a product quantity should be reduced by 2 after a sale. Due to a temporary failure, the message is processed twice by the Inventory service.</p><p>Without idempotency:</p><ul><li>First processing → stock reduces from 10 to 8</li><li>Second processing → stock reduces from 8 to 6 ❌</li></ul><p>Now your data is incorrect.</p><p>With idempotency:</p><ul><li>The system recognizes that this operation has already been processed</li><li>The second attempt is ignored or safely handled</li><li>Stock remains at 8 ✅</li></ul><p>So how do we implement idempotency in practice?</p><p>One common approach is to attach a <strong>unique identifier (idempotency key)</strong> to every operation. Before processing a request or message, the service checks whether that ID has already been handled. If it has, the service simply skips it.</p><p>In essence, idempotency is what allows distributed systems to be <strong>both reliable and safe under failure conditions</strong>. Without it, retries; which are meant to improve reliability, can actually corrupt your data.</p><h3>Key Supporting Concepts</h3><p>To make microservices work efficiently, several supporting patterns and tools are used:</p><p><strong>Caching</strong> improves performance by storing frequently accessed data in memory instead of querying the database repeatedly.</p><p><strong>ORM (Object Relational Mapping)</strong> simplifies database interactions by allowing developers to work with objects instead of writing raw SQL queries.</p><p><strong>DTOs (Data Transfer Objects)</strong> define the structure of data shared between services, ensuring consistency and validation.</p><p><strong>Shared Libraries</strong> help reuse common logic like validation rules, utility functions, and data models across services.</p><h3>A Real-World Flow</h3><p>Now, Let us tie everything together with a simple scenario:</p><p>A customer buys an item using a POS system.</p><ol><li>The POS sends a request to the API Gateway</li><li>The Gateway routes the request to the POS Service</li><li>The POS Service records the sale</li><li>It sends an event to the message queue</li><li>The Inventory Service consumes the event and updates stock</li><li>The Accounting Service records the transaction</li></ol><p>Even if one service is temporarily unavailable, the system continues to function, and updates happen once services recover.</p><h3>Why This Architecture Matters</h3><p>Microservices are not just a trend, they are a response to real-world scalability and reliability challenges.</p><p>They allow teams to:</p><ul><li>Build and deploy independently</li><li>Scale specific parts of the system</li><li>Handle failures gracefully</li><li>Maintain cleaner, more modular codebases</li></ul><p>However, they also introduce complexity, especially around communication and data consistency. That is why understanding patterns like event-driven architecture and eventual consistency is critical.</p><h3>Final Thought</h3><p>Microservices architecture is less about splitting code and more about designing systems that can <strong>handle growth, failure, and change</strong>.</p><p>If you remember one thing, let it be this:</p><p>Modern systems are not designed to avoid failure; they are designed to <strong>work despite failure</strong>.</p><p>And that mindset is what separates scalable systems from fragile ones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbb509f39760" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Server Components vs Client Components in React]]></title>
            <link>https://medium.com/@jakintemi/server-components-vs-client-components-in-react-8312bfd78dd8?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8312bfd78dd8</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Thu, 19 Mar 2026 09:41:55 GMT</pubDate>
            <atom:updated>2026-03-19T09:41:55.102Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ejeekZiUQwCk-EXaN-XIGQ.avif" /></figure><p>React Server Components (RSC) are powerful, but many teams are using them incorrectly.</p><p>If you are working with <strong>React</strong> and <strong>Next.js 16</strong>, understanding the correct boundary between Server and Client Components directly impacts:</p><ul><li>Performance</li><li>Bundle size</li><li>SEO</li><li>User experience</li></ul><p>Let’s get straight to it.</p><h3>When to Use Server Components vs Client Components</h3><p>Use Server Components when:</p><ul><li>Fetching data from a database</li><li>Calling internal APIs</li><li>Rendering static or semi-static content</li><li>Handling sensitive logic (API keys, tokens)</li><li>Reducing bundle size</li></ul><p>Example</p><pre>// app/users/page.tsx<br>export default async function UsersPage() {<br>  const users = await fetch(&quot;https://api.example.com/users&quot;).then(res =&gt; res.json());<br><br>  return (<br>    &lt;ul&gt;<br>      {users.map(user =&gt; (<br>        &lt;li key={user.id}&gt;{user.name}&lt;/li&gt;<br>      ))}<br>    &lt;/ul&gt;<br>  );<br>}</pre><p>✔ Runs on the server<br>✔ No JS sent to the client<br>✔ Smaller bundle</p><h3>Use Client Components when:</h3><ul><li>You need useState, useEffect</li><li>Handling user interaction</li><li>Using browser APIs</li><li>Managing UI state</li></ul><p>Example:</p><pre>&quot;use client&quot;;<br><br>import { useState } from &quot;react&quot;;<br><br>export default function Counter() {<br>  const [count, setCount] = useState(0);<br><br>  return (<br>    &lt;button onClick={() =&gt; setCount(count + 1)}&gt;<br>      {count}<br>    &lt;/button&gt;<br>  );<br>}</pre><h3>Common Mistakes Developers Make</h3><h4>❌ Mistake #1: Making Everything a Client Component</h4><p>Adding &quot;use client&quot; everywhere defeats the purpose of RSC.</p><p>Result:</p><ul><li>Larger JS bundles</li><li>Slower initial load</li><li>Worse performance</li></ul><p><strong>Fix:</strong><br> Default to Server Components. Only opt into Client Components when necessary.</p><h4>❌ Mistake #2: Fetching Data Inside Client Components</h4><p>Bad pattern:</p><pre>&quot;use client&quot;;<br>useEffect(() =&gt; {<br>  fetch(&quot;/api/data&quot;)<br>}, []);</pre><p>This causes:</p><ul><li>Double fetching</li><li>Slower hydration</li><li>SEO issues</li></ul><p><strong>Correct pattern:</strong><br> Fetch in Server Component and pass data down.</p><pre>// Server Component<br>export default async function Page() {<br>  const data = await getData();<br><br>  return &lt;ClientComponent data={data} /&gt;;<br>}</pre><h4>❌ Mistake #3: Mixing Heavy Client Logic at the Top Level</h4><p>Putting interactive logic high in the tree forces large parts of your app to become Client Components.</p><p><strong>Fix:</strong><br> Push Client Components deeper in the tree.</p><p>Good structure:</p><pre>Server Layout<br>  ├── Server Content<br>  └── Client Button</pre><p>Not:</p><pre>Client Layout<br>  └── Everything becomes client-rendered</pre><h3>Final Rule of Thumb</h3><ul><li><strong>Server Components = Data + Structure</strong></li><li><strong>Client Components = Interactivity</strong></li></ul><p>Start server-first. Add client behavior only where necessary.</p><p>That’s how you keep your app fast, scalable, and clean.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8312bfd78dd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Protecting Routes in Next.js: The Right Way to Avoid UI Flicker]]></title>
            <link>https://medium.com/@jakintemi/protecting-routes-in-next-js-the-right-way-to-avoid-ui-flicker-f90934947b0c?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f90934947b0c</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 13:59:23 GMT</pubDate>
            <atom:updated>2026-02-18T13:59:23.310Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLSCAbR9BI_a9JPPIDUUKw.avif" /></figure><p>I want to share something that humbled me recently.</p><p>It’s one of those bugs you may not notice during development. Everything <em>looks</em> fine. Your redirect works. Your auth logic works. Your dashboard is “protected.”</p><p>Until production reminds you that “working” and “secure” are not always the same thing</p><p>If you are using <strong>Next.js App Router</strong>, this is something you absolutely need to understand.</p><h3>The Mistake Most people Make</h3><p>A very common pattern for protecting routes looks like this:</p><pre>// ❌ Insecure: Renders content BEFORE redirecting<br>export default function Dashboard({ user }) {<br>  const router = useRouter();<br><br>  useEffect(() =&gt; {<br>    if (!user) router.push(&#39;/login&#39;);<br>  }, [user]);<br><br>  return &lt;AdminPanel /&gt;;<br>}</pre><p>At first glance, this feels correct.</p><ul><li>If there’s no user → redirect to /login</li><li>If there’s a user → show the dashboard</li></ul><p>Simple, right?</p><p>Not exactly.</p><h3>What is Actually Happening?</h3><p>Here is the subtle issue:</p><p>useEffect runs <strong>after the component renders</strong>.</p><p>That means:</p><ol><li>The page renders.</li><li>&lt;AdminPanel /&gt; gets sent to the browser.</li><li>Then useEffect runs.</li><li>Then the redirect happens.</li></ol><p>That tiny moment before the redirect, Your protected UI is visible.</p><p>Maybe just for a split second. Maybe barely noticeable. But it’s there.</p><p>And if it’s visible, it can potentially be captured, scraped, or inspected.</p><p>That tiny flash?<br>That’s your Admin Panel leaking before redirect ⚠️</p><h3>The Production Humbling Moment</h3><p>In development, you might never notice this because</p><p>Local builds are fast.<br>Your machine is fast.<br>The redirect feels instant.</p><p>But in production:</p><ul><li>Slower devices</li><li>Slower networks</li><li>Real users</li></ul><p>Suddenly that “instant” redirect becomes a visible flash.</p><p>And that is when you realize client-side redirects are not protection - they are just navigation.</p><h3>The Safer Approach (App Router Way)</h3><p>With the Next.js App Router, there’s a better way.</p><p>Instead of redirecting after render, you abort rendering entirely using redirect().</p><pre>import { redirect } from &#39;next/navigation&#39;;<br><br>// ✅ Secure: Aborts rendering immediately<br>export default async function Dashboard({ user }) {<br>  if (!user) {<br>    redirect(&#39;/login&#39;); // Stops execution here<br>  }<br><br>  return &lt;AdminPanel /&gt;; // Never sent if user is missing<br>}</pre><p>What is different here?</p><ul><li>This runs on the server.</li><li>If there’s no user, redirect() throws and stops execution.</li><li>The component never renders.</li><li>The HTML for &lt;AdminPanel /&gt; is never sent to the browser.</li></ul><p>No flash.<br>No leak.<br>No risk.</p><h3>Why This Matters</h3><p>In client-side React apps, we’re used to thinking:</p><blockquote><em>“If I redirect, I’ve protected the route.”</em></blockquote><p>But in modern frameworks like Next.js, especially with Server Components and the App Router, we have stronger tools.</p><p>Security should happen <strong>before rendering</strong>, not after.</p><p>Redirecting inside useEffect is like locking the door after the visitor already stepped inside.</p><h3>The Bigger Lesson</h3><p>This isn’t just about Next.js.</p><p>It’s about understanding <em>where</em> your code runs:</p><ul><li>Client-side logic controls UX.</li><li>Server-side logic controls access.</li></ul><p>If something must not be seen, even for a millisecond, don’t rely on client-side effects to protect it.</p><h3>Final Thoughts</h3><p>This is one of those small details you may not notice…</p><p>If you are working with Next.js App Router, make sure you are handling authentication <strong>before render</strong> using redirect().</p><p>Your future self (and your security posture) will thank you.</p><p>Have you ever faced something like this - where everything looked correct until production exposed the flaw?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f90934947b0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Senior Developers Don’t Ship Code Without Jest]]></title>
            <link>https://medium.com/@jakintemi/why-senior-developers-dont-ship-code-without-jest-58fbe6d247f0?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/58fbe6d247f0</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[jest]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 18:46:41 GMT</pubDate>
            <atom:updated>2026-01-12T18:46:41.058Z</atom:updated>
            <content:encoded><![CDATA[<p>(And Why You Shouldn’t Either)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TmABV4s1N1DXQjaUrl_F4A.jpeg" /></figure><p>When I first started writing JavaScript professionally, testing felt optional.</p><p>If the app worked in the browser and didn’t crash, I shipped it.</p><p>But that mindset changed the first time I worked on a <strong>large, shared, production codebase, </strong>the kind with multiple developers, frequent releases, tight deadlines, and real users relying on the product every day.</p><p>That is where I learned what tools like <strong>Jest</strong> are really for.</p><p>It is not for beginners, not for tutorials, but for <strong>engineering at scale</strong>.</p><h3><strong>The Real Problem: Code Breaks When You are Not Looking</strong></h3><p>In a serious codebase, you are never just writing code for yourself.</p><p>You are writing code that other developers will touch, refactore in 3 months, will be deployed 100+ times, will be used by thousands of users</p><p>Now imagine this scenario:</p><p>You update a small utility function.<br> It looks harmless.<br> But it silently breaks login, checkout, or data processing.</p><p>No errors.<br>No warnings.<br>Just broken production.</p><p>This is exactly what Jest protects us from.</p><h3>What Jest Really Is</h3><p>Jest is not just a “testing tool”.</p><p>It is a <strong>safety net for engineering teams</strong>.</p><p>Jest answers questions like:</p><ul><li>“Did this change break something else?”</li><li>“Can I refactor this safely?”</li><li>“Is this function actually doing what we think?”</li></ul><p>In a robust system, you don’t trust memory or manual testing.<br> You trust <strong>automated tests</strong>.</p><p>And Jest is the standard way we do that in modern JavaScript and React ecosystems.</p><h3>Why We Use Jest in Real Projects</h3><p>In real-world projects I’ve worked on (including apps with authentication, APIs, dashboards, and user data) Jest is used for three main reasons:</p><h3>1. Confidence to Change Code</h3><p>When a project grows, you stop remembering how everything works.</p><p>But with Jest, you can change a file and run:</p><pre>npm test</pre><p>And instantly know if you break anything, violate an assumption or introduced a bug</p><p>That confidence is priceless.</p><p>Senior developers refactor aggressively but only because tests protect them.</p><h3>2. Catching Bugs Before Users Do</h3><p>Every bug that reaches production costs time, reputaion and money.</p><p>Jest catches issues <strong>before deployment</strong>.</p><p>That means:</p><ul><li>No angry users</li><li>No emergency fixes</li><li>No “why did this break?” meetings</li></ul><p>We catch mistakes when they’re cheap not when they’re expensive.</p><h3>3. Protecting the Codebase From Future Developers</h3><p>This is a hard truth</p><p>Your code will outlive you on the project.</p><p>New developers will change, extend and sometimes misunderstand it.</p><p>Jest tests act as <strong>living documentation</strong>:</p><blockquote><em>“This is how this code is supposed to behave.”</em></blockquote><p>That is why senior developers insist on tests . Not because they like writing them, but because they like <strong>sleeping peacefully at night</strong>.</p><h3>Why Beginners Skip Jest and Why Seniors Don’t</h3><p>Beginners write code to make things work.</p><p>Seniors write code to make things <strong>stay working</strong>.</p><p>When you only care about today, testing feels slow.</p><p>When you care about the next 2 years of this product, testing feels essential.</p><p>Jest is how professionals think about stability, scalability and long-term maintenance.</p><h3>Jest in My Own Workflow</h3><p>When I work on serious applications that includes authentication systems, dashboards, APIs, or any code that affects users, I never trust “it works on my machine”.</p><p>I trust:</p><ul><li>Unit tests</li><li>Integration tests</li><li>Regression tests</li></ul><p>All powered by Jest because it allows me to refactor without fear, ship faster and break less things</p><p>And that is what separates hobby projects from production software.</p><h3>Final Thought</h3><p>Jest is not about writing more code.</p><p>It is about writing <strong>safer code</strong>.</p><p>It iswhat allows teams to move fast <strong>without breaking everything</strong>.</p><p>And once you experience what it’s like to work on a codebase protected by tests… you will never want to go back.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58fbe6d247f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Rendering in Next.js: SSR, SSG, and ISR Explained]]></title>
            <link>https://medium.com/@jakintemi/understanding-rendering-in-next-js-ssr-ssg-and-isr-explained-e77a5a05faff?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e77a5a05faff</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 19:59:27 GMT</pubDate>
            <atom:updated>2025-11-30T19:59:27.318Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*RtpnlEpS-KTr6jeaAyR0AA.avif" /></figure><p>Rendering is at the heart of every web application, and Next.js stands out because it gives developers multiple ways to control <em>how</em> pages are built and delivered. Whether you’re building a personal blog, an e-commerce site, or a large dashboard, choosing the right rendering strategy affects <strong>performance</strong>, <strong>SEO</strong>, and <strong>user experience</strong>.</p><p>In this post, I’ll break down the three major rendering methods in Next.js — <strong>Server-Side Rendering (SSR)</strong>, <strong>Static Site Generation (SSG)</strong>, and <strong>Incremental Static Regeneration (ISR)</strong>. I’ll explore how they work, where they differ, and how they relate as part of Next.js’ hybrid rendering model.</p><h3>⭐ 1. Server-Side Rendering (SSR)</h3><p>Server-Side Rendering means the page is generated <strong>on every request</strong>.</p><p>When a user visits a route, Next.js:</p><ol><li>Runs your server-side code (getServerSideProps or server components)</li><li>Fetches data on-demand</li><li>Builds the HTML</li><li>Sends it back to the browser</li></ol><h3>✔️ When to Use SSR</h3><ul><li>Pages that need <strong>real-time</strong> data</li><li>User-specific dashboards</li><li>Admin pages, analytics, or personalized feeds</li><li>Frequent data updates (stocks, crypto, weather, etc.)</li></ul><h3>✔️ Pros</h3><ul><li>Fresh data on every request</li><li>Great for SEO</li><li>Works well with authentication</li></ul><h3>❌ Cons</h3><ul><li>Slower than static methods</li><li>More load on the server</li><li>Less caching opportunity</li></ul><h3>⭐ 2. Static Site Generation (SSG)</h3><p>Static Site Generation means pages are <strong>pre-rendered at build time</strong>.</p><p>When you run npm run build, Next.js:</p><ol><li>Fetches the required data</li><li>Generates a static HTML file</li><li>Serves it instantly from the cache or CDN</li></ol><h3>✔️ When to Use SSG</h3><ul><li>Blogs and articles</li><li>Marketing pages</li><li>Documentation</li><li>Product listings that don’t change often</li></ul><h3>✔️ Pros</h3><ul><li>Extremely fast (served from CDN)</li><li>No server processing on request</li><li>Many pages can be generated once and reused forever</li></ul><h3>❌ Cons</h3><ul><li>Data becomes “stale” until you rebuild</li><li>Not ideal for fast-changing content</li></ul><h3>⭐ 3. Incremental Static Regeneration (ISR)</h3><p>ISR is a hybrid approach that lets you generate static pages <strong>and update them in the background</strong> without rebuilding the entire site.</p><p>It works like this:</p><ol><li>Build time: Next.js pre-renders the page</li><li>First visitor after revalidate time triggers regeneration</li><li>The new version replaces the old one</li><li>Future visitors see the updated static page</li></ol><h3>✔️ When to Use ISR</h3><ul><li>E-commerce product data</li><li>Blog posts with occasional updates</li><li>Events, listings, directories</li><li>Content that is mostly static but updated sometimes</li></ul><h3>✔️ Pros</h3><ul><li>Fast like SSG</li><li>Up-to-date like SSR</li><li>No need for full rebuilds</li><li>Scales extremely well</li></ul><h3>❌ Cons</h3><ul><li>Regeneration is not instant on every request</li><li>Rare edge cases where the first visitor after revalidate sees older content</li></ul><h3>🔍 How They Are Related (The Hybrid Model)</h3><p>SSR, SSG, and ISR are not isolated concepts — they form the core of Next.js’ <strong>hybrid rendering system</strong>, allowing each page to choose the best strategy.</p><h3>They relate in these ways:</h3><h3>1. SSR and SSG are opposites on a spectrum</h3><ul><li><strong>SSR:</strong> builds on <em>every request</em></li><li><strong>SSG:</strong> builds <em>once at build time</em></li></ul><h3>2. ISR sits between SSR and SSG</h3><p>It combines the <strong>speed of static generation</strong> with the <strong>freshness of server rendering</strong>.</p><h3>3. All three produce HTML — they only differ in when it is created</h3><ul><li><strong>SSR:</strong> runtime</li><li><strong>SSG:</strong> build time</li><li><strong>ISR:</strong> build time + scheduled regeneration</li></ul><h3>4. Next.js lets you mix them in one project</h3><p>Example:</p><ul><li>Homepage → SSG</li><li>Blog posts → ISR (revalidate every 10 minutes)</li><li>Dashboard → SSR</li><li>API → serverless functions</li></ul><h3>5. They all benefit from CDN caching and edge delivery</h3><p>Next.js treats every rendering method as part of a single performance-oriented pipeline.</p><h3>🧠 Which Should You Use? (Quick Guide)</h3><p>ScenarioBest OptionReal-time, user-specific, auth-required data<strong>SSR</strong>Static content that rarely changes<strong>SSG</strong>Frequently updated content, but not real-time<strong>ISR</strong>SEO-critical pagesSSR or SSGMassive sites with thousands of pagesSSG + ISR</p><h3>✨ Final Thoughts</h3><p>Next.js stands out because it doesn’t force you into one rendering strategy. Instead, you get <strong>flexibility, </strong>the ability to choose the most efficient method based on the page type, data requirements, and performance goals.</p><p>Understanding SSR, SSG, and ISR is essential for building scalable, fast, and optimized modern web applications. Once you master when to use each one, you’ll naturally build apps that are both user-friendly and developer-friendly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e77a5a05faff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Push Code From a Local Project to Two Different GitHub Repositories]]></title>
            <link>https://medium.com/@jakintemi/how-to-push-code-from-a-local-project-to-two-different-github-repositories-380b63077135?source=rss-19d15e6ca86c------2</link>
            <guid isPermaLink="false">https://medium.com/p/380b63077135</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Joshua Akintemi]]></dc:creator>
            <pubDate>Mon, 29 Sep 2025 13:16:27 GMT</pubDate>
            <atom:updated>2025-09-29T13:16:27.826Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k__bFgFKow1JosHSVnVcwg.jpeg" /></figure><p>Sometimes you may want to keep the same project in two different GitHub repositories. Maybe you’re contributing to an organization’s repo while also maintaining a personal backup, or perhaps you’re syncing your code with both GitHub and another Git hosting service.</p><p>Whatever the reason, Git makes this process surprisingly straightforward.</p><p>In this post, I’ll walk you through <strong>how to push code from your local project to two different GitHub repositories</strong> step by step.</p><h3>Step 1: Initialize Git in Your Project</h3><p>If your project isn’t already a Git repository, initialize it first:</p><pre>git init</pre><p>Then add your files and make your first commit:</p><pre>git add .<br>git commit -m &quot;Initial commit&quot;</pre><h3>Step 2: Add the First Remote Repository</h3><p>Normally, you add one remote (usually named origin) like this:</p><pre>git remote add origin https://github.com/username/repo-one.git</pre><p>You can check the added remote with:</p><pre>git remote -v</pre><h3>Step 3: Add the Second Remote Repository</h3><p>Here’s the trick — you can add another remote with a different name.<br> For example:</p><pre>git remote add backup https://github.com/username/repo-two.git</pre><p>Now, if you check again:</p><pre>git remote -v</pre><p>You’ll see both:</p><pre>origin  https://github.com/username/repo-one.git (fetch)<br>origin  https://github.com/username/repo-one.git (push)<br>backup  https://github.com/username/repo-two.git (fetch)<br>backup  https://github.com/username/repo-two.git (push)</pre><h3>Step 4: Push to Both Repositories</h3><p>To push to the first repository:</p><pre>git push origin main</pre><p>To push to the second repository:</p><pre>git push backup main</pre><p>If your default branch is master, replace main with master.</p><h3>Step 5 (Optional): Push to Both Repos at Once</h3><p>If you want to push to both repositories in one command, you can set multiple URLs for a single remote:</p><pre>git remote set-url --add --push origin https://github.com/username/repo-one.git<br>git remote set-url --add --push origin https://github.com/username/repo-two.git</pre><p>Now, when you push:</p><pre>git push origin main</pre><p>Git will push to <strong>both repos simultaneously</strong>. 🚀</p><h3>Recap</h3><ul><li>Initialize Git and make your first commit.</li><li>Add two remotes (origin and backup).</li><li>Push separately with git push origin main and git push backup main.</li><li>(Optional) Configure multiple push URLs to update both repositories in one go.</li></ul><p>This way, you can maintain the same codebase across multiple repositories without extra effort.</p><p>✅ Pro Tip: Always confirm your remotes with git remote -v before pushing to avoid mistakes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=380b63077135" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>