<?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 Syed Basit Raza on Medium]]></title>
        <description><![CDATA[Stories by Syed Basit Raza on Medium]]></description>
        <link>https://medium.com/@basitraza228?source=rss-7f2544cd6530------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qNPmFdd7v96g9Vxt5fMzrg.jpeg</url>
            <title>Stories by Syed Basit Raza on Medium</title>
            <link>https://medium.com/@basitraza228?source=rss-7f2544cd6530------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:17:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@basitraza228/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[REST vs RPC: Understanding the Real Difference]]></title>
            <link>https://medium.com/@basitraza228/rest-vs-rpc-understanding-the-real-difference-530a6b3819dc?source=rss-7f2544cd6530------2</link>
            <guid isPermaLink="false">https://medium.com/p/530a6b3819dc</guid>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Syed Basit Raza]]></dc:creator>
            <pubDate>Thu, 28 May 2026 09:24:50 GMT</pubDate>
            <atom:updated>2026-05-28T09:26:33.569Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="REST vs RPC image from OpenReplay" src="https://cdn-images-1.medium.com/max/1024/1*hXLydG8vgeaQ-5iefP2HwA.png" /></figure><p>Many developers think REST and RPC are just two different ways to build APIs.</p><p>In reality, they represent two completely different architectural philosophies.</p><p>Most comparisons focus on:</p><ul><li>JSON vs Protobuf</li><li>REST vs gRPC</li><li>HTTP performance</li><li>Serialization formats</li></ul><p>But those are implementation details.</p><p>The real difference is how systems model communication.</p><p>REST is resource-oriented.</p><p>RPC is action-oriented.</p><p>Understanding this distinction helps you design APIs that are easier to scale, maintain, and evolve.</p><h3>What is REST?</h3><p>REST (Representational State Transfer) is an architectural style introduced by Roy Fielding.</p><p>REST treats everything as a resource.</p><p>Examples of resources:</p><ul><li>Users</li><li>Orders</li><li>Products</li><li>Payments</li><li>Comments</li></ul><p>In REST, APIs revolve around manipulating these resources using standard HTTP methods.</p><p>Example:</p><pre>GET /users/123</pre><p>This means:<br>“Retrieve the user resource with ID 123.”</p><p>Another example:</p><pre>POST /orders</pre><p>This means:<br>“Create a new order resource.”</p><p>REST emphasizes:</p><ul><li>Resource modeling</li><li>Standardized operations</li><li>Stateless communication</li><li>Uniform interfaces</li></ul><p>The client interacts with resources, not functions.</p><h3>What is RPC?</h3><p>RPC (Remote Procedure Call) treats communication as calling functions on another machine.</p><p>Instead of thinking in terms of resources, RPC thinks in terms of actions or procedures.</p><p>Example:</p><pre>POST /createUser<br>POST /generateInvoice<br>POST /calculateTax</pre><p>These endpoints behave more like function calls.</p><p>Conceptually:</p><pre>generateInvoice(orderId)</pre><p>The client calls a remote method and receives a response, similar to calling a local function.</p><p>RPC focuses on:</p><ul><li>Executing actions</li><li>Function-oriented communication</li><li>High efficiency</li><li>Tight service-to-service communication</li></ul><h3>The Core Philosophical Difference</h3><p>REST models nouns.</p><p>RPC models verbs.</p><p>REST asks:<br>“What resource are we working with?”</p><p>RPC asks:<br>“What action are we performing?”</p><p>REST examples:</p><ul><li>/users</li><li>/orders</li><li>/products/12</li></ul><p>RPC examples:</p><ul><li>/createUser</li><li>/submitOrder</li><li>/approvePayment</li></ul><p>This single distinction changes how APIs are designed.</p><h3>REST Encourages Standardization</h3><p>REST heavily relies on HTTP semantics.</p><p>For example:</p><ul><li>GET → Fetch data</li><li>POST → Create</li><li>PUT → Replace</li><li>PATCH → Partial update</li><li>DELETE → Remove</li></ul><p>The endpoint remains resource-focused:</p><pre>/users/123</pre><p>The HTTP method defines the operation.</p><p>This creates consistency across APIs.</p><h3>RPC Encourages Explicit Intent</h3><p>RPC endpoints usually describe exactly what they do.</p><p>Examples:</p><pre>POST /sendEmail<br>POST /generateReport<br>POST /resetPassword</pre><p>This often feels more intuitive for developers because the API mirrors business operations directly.</p><p>Instead of modeling resources carefully, you simply expose actions.</p><h3>REST Example</h3><p>Imagine a food delivery application.</p><p>REST-style endpoints:</p><pre>GET    /restaurants<br>GET    /restaurants/12<br>POST   /orders<br>PATCH  /orders/99<br>DELETE /cart/items/4</pre><p>The API revolves around resources.</p><h3>RPC Example</h3><p>The same application in RPC style:</p><pre>POST /getRestaurants<br>POST /placeOrder<br>POST /updateOrderStatus<br>POST /removeCartItem</pre><p>The API revolves around actions.</p><h3>Performance Differences</h3><p>REST is commonly implemented using:</p><ul><li>HTTP/1.1</li><li>JSON</li></ul><p>RPC systems like gRPC commonly use:</p><ul><li>HTTP/2</li><li>Protobuf</li></ul><p>This gives RPC frameworks several advantages:</p><ul><li>Smaller payloads</li><li>Faster serialization</li><li>Streaming support</li><li>Lower latency</li><li>Strong typing</li></ul><p>This is one reason why modern microservices often use RPC internally.</p><p>However, these performance gains come from implementation choices, not from the RPC philosophy itself.</p><p>RPC is not automatically faster than REST.</p><p>gRPC is faster than typical REST implementations because of:</p><ul><li>Protobuf</li><li>HTTP/2</li><li>Binary serialization</li></ul><h3>Developer Experience Differences</h3><p>REST advantages:</p><ul><li>Easy to debug</li><li>Human-readable</li><li>Works directly in browsers</li><li>Excellent for public APIs</li><li>Wide tooling support</li></ul><p>RPC advantages:</p><ul><li>Strong contracts</li><li>Auto-generated client SDKs</li><li>Better type safety</li><li>Cleaner internal service communication</li><li>Excellent for microservices</li></ul><h3>Where REST Works Best</h3><p>REST is ideal for:</p><ul><li>Public APIs</li><li>CRUD-heavy systems</li><li>Frontend-backend communication</li><li>Third-party integrations</li><li>Systems where readability matters</li></ul><p>Examples:</p><ul><li>E-commerce APIs</li><li>Social media APIs</li><li>SaaS platforms</li><li>Mobile app backends</li></ul><h3>Where RPC Works Best</h3><p>RPC is ideal for:</p><ul><li>Internal microservices</li><li>High-performance distributed systems</li><li>Real-time communication</li><li>Low-latency systems</li><li>Strongly typed service contracts</li></ul><p>Examples:</p><ul><li>Banking systems</li><li>Streaming platforms</li><li>Distributed infrastructure</li><li>Service meshes</li><li>Internal backend communication</li></ul><h3>Modern Systems Use Both</h3><p>Most large-scale systems do not choose only REST or only RPC. They combine both.</p><p>A common architecture today:</p><ul><li>REST for external/public APIs</li><li>gRPC/RPC for internal service communication</li></ul><p>Example:</p><p>Client → REST API Gateway → Internal gRPC Services</p><p>This gives:</p><ul><li>Simplicity externally</li><li>Performance internally</li></ul><p>Companies like Google, Netflix, Uber, and Discord heavily use RPC internally.</p><h3>Common Misconceptions</h3><h3>“REST is just HTTP + JSON”</h3><p>Incorrect.</p><p>REST is an architectural style.</p><p>JSON is merely a data format.</p><p>You can build non-REST APIs using JSON.</p><h3>“RPC means gRPC”</h3><p>Incorrect.</p><p>gRPC is one implementation of RPC.</p><p>Other RPC technologies include:</p><ul><li>XML-RPC</li><li>JSON-RPC</li><li>Apache Thrift</li></ul><h3>“REST cannot perform actions”</h3><p>Not entirely true.</p><p>REST APIs sometimes expose action-oriented endpoints when business operations do not map cleanly to resources.</p><p>Example:</p><pre>POST /orders/123/cancel</pre><p>Real-world APIs are often hybrids.</p><h3>Final Thoughts</h3><p>REST and RPC solve different problems.</p><p>REST focuses on resources, standardization, and simplicity.</p><p>RPC focuses on actions, efficiency, and service communication.</p><p>Neither is universally better.</p><p>The right choice depends on:</p><ul><li>System scale</li><li>Performance requirements</li><li>Team structure</li><li>API consumers</li><li>Architecture style</li></ul><p>The most important thing is understanding the philosophy behind each approach rather than treating them as competing technologies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=530a6b3819dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Efficient Dart: 8 Lesser-Known List Methods You Should Know]]></title>
            <link>https://medium.com/@basitraza228/efficient-dart-8-lesser-known-list-methods-you-should-know-c45229b31a7c?source=rss-7f2544cd6530------2</link>
            <guid isPermaLink="false">https://medium.com/p/c45229b31a7c</guid>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Syed Basit Raza]]></dc:creator>
            <pubDate>Wed, 02 Apr 2025 01:41:59 GMT</pubDate>
            <atom:updated>2025-04-02T09:05:25.791Z</atom:updated>
            <content:encoded><![CDATA[<p>Well! we all use Lists in our dart applications, don’t we? But do we actually know how feature packed is the List data structure and all the useful methods it comes with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*23BqrJS_SxR-W6Vuh6zJPQ.png" /></figure><p>So here is a list of 8 lesser-known List methods with code examples and explanation:</p><h4><strong>1. List.fillRange() – Replace a range of values</strong></h4><pre>List&lt;int&gt; numbers = [1, 2, 3, 4, 5];<br>numbers.fillRange(1, 4, 0);<br>print(numbers); // Output: [1, 0, 0, 0, 5]</pre><p><strong>Explanation:</strong> The first two parameters define the range (the second parameter is exclusive), and the third parameter specifies the value that will replace the original values. So in this example it replaces elements in the list from index 1 up to (but not including) index 4 with 0.</p><h4>2. List.setAll() – Set multiple values at specific indexes</h4><pre>List&lt;int&gt; numbers = [1, 2, 3, 4, 5];<br>numbers.setAll(1, [99, 88, 77]);<br>print(numbers); // Output: [1, 99, 88, 77, 5]</pre><p><strong>Explanation:</strong> This method replaces elements in the list starting from a given index with values from another iterable. The first parameter is the starting index, and the second parameter is the iterable containing new values. The number of replaced elements matches the length of the provided iterable.</p><p>If the iterable has more elements than the remaining space in the list, a <strong>RangeError</strong> occurs.</p><h4>3. List.every() — Check conditions on every element</h4><pre>List&lt;int&gt; numbers = [2, 4, 6, 8, -1];<br>print(numbers.every((num) =&gt; num &gt; 0)); // Output: false</pre><p><strong>Explanation:</strong> It checks if <strong>all</strong> elements in the list satisfy a given condition. It returns true if every element matches the condition, and false if any element does not.</p><h4>4. List.any() – Check conditions on elements</h4><pre>List&lt;int&gt; numbers = [2, 4, 6, 8, -1];<br>print(numbers.any((num) =&gt; num &lt; 0));   // Output: true</pre><p><strong>Explanation:</strong> This method checks if <strong>at least one</strong> element in the list satisfies a given condition. It returns true if any element matches the condition, and false if no element matches.</p><h4>5. List.fold() – Reduces a List to a single value</h4><pre>List&lt;int&gt; numbers = [1, 2, 3, 4];<br>var sum = numbers.fold(0, (prev, element) =&gt; prev + element);<br>print(sum); // Output: 10</pre><p><strong>Explanation:</strong> This method reduces the list to a single value by applying a function iteratively, starting with an initial value. It’s commonly used for accumulating results, like summing numbers or combining strings.</p><h4>6. List.reduce() – Similar to fold() but without an initial value</h4><pre>List&lt;int&gt; numbers = [3, 7, 2, 9, 5];<br>var maxNumber = numbers.reduce((a, b) =&gt; a &gt; b ? a : b);<br>print(maxNumber); // Output: 9</pre><p><strong>Explanation:</strong> The reduce() method is similar to <strong>fold()</strong>, but it doesn’t require an initial value. It starts with the first element of the list and applies the function to the rest of the elements, ultimately reducing the list to a single value.</p><h4>7. List.skip()<strong> </strong>– Skip a specific number of elements in the list</h4><pre>List&lt;int&gt; numbers = [10, 20, 30, 40, 50, 60];<br>final result = numbers.skip(2).toList();<br>print(result); // Output: [30, 40, 50, 60]</pre><p><strong>Explanation:</strong> The skip() method skips the first <strong>N</strong> elements of the list and returns the rest of the elements as an iterable. It is useful when you want to ignore the first few items.</p><h4>8. List.take() – Take a specific number of elements from the list</h4><pre>List&lt;int&gt; numbers = [10, 20, 30, 40, 50, 60];<br>final result = numbers.take(3).toList();<br>print(result); // Output: [10, 20, 30]</pre><p><strong>Explanation:</strong> It returns the first <strong>N</strong> elements from the list as an iterable. It’s useful when you need a subset of the list from the beginning.</p><p>Dart’s List class offers a variety of powerful methods, and while the common ones get most of the attention, these lesser-known methods can save you time and make your code more efficient.</p><p><em>Got any suggestions or methods you think should be included? </em>Feel free to comment below! Don’t forget to <strong>follow</strong> for more Dart tips and tricks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c45229b31a7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Free Fonts for Mobile Apps]]></title>
            <link>https://medium.com/@basitraza228/best-fonts-for-mobile-apps-in-2024-89a972d5867c?source=rss-7f2544cd6530------2</link>
            <guid isPermaLink="false">https://medium.com/p/89a972d5867c</guid>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[mobile-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[fonts]]></category>
            <dc:creator><![CDATA[Syed Basit Raza]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 15:13:34 GMT</pubDate>
            <atom:updated>2024-01-14T08:27:22.574Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-udAu-KAM3ERYURNHAtnTw.png" /></figure><p>In the dynamic world of mobile app development, where every pixel counts, typography emerges as a silent yet powerful design element. Beyond mere aesthetics, typography plays a pivotal role in shaping user experiences, conveying brand identity, and enhancing overall usability.</p><blockquote>“Display type is a visual voice. Without, reading, it imparts its message.”</blockquote><blockquote><em>- Laura Worthington</em></blockquote><p>Selecting the right fonts for your mobile app is a critical aspect of design that can significantly impact user experience and overall aesthetics. Here are key considerations to keep in mind when choosing fonts for your mobile app:</p><p><strong>Consistency:</strong></p><ul><li>Brand Consistency: Align font choices with your brand identity to create a cohesive and recognizable look. Consistency in fonts builds brand trust and recognition.</li><li>Hierarchy: Establish a clear typographic hierarchy with different fonts or variations to distinguish between headings, subheadings, and body text.</li></ul><p><strong>Readability:</strong></p><ul><li>Size Matters: Ensure that font sizes are appropriate for mobile screens. Text should be easily readable without causing strain.</li><li>Contrast: Choose fonts with sufficient contrast against the background to enhance readability, especially in various lighting conditions.</li></ul><p><strong>Accessibility:</strong></p><ul><li>Contrast and Color: Pay attention to the contrast between text and background colors. Ensure that your chosen colors comply with accessibility standards, making your app usable for everyone.</li><li>Font Weight: Opt for font weights that enhance legibility. Bolder weights can be useful for headings, while lighter weights may work well for body text.</li></ul><p>On that note, here are some of the most popular and versatile fonts that are suitable for your next mobile app:</p><p><strong>Montserrat: </strong><em>Montserrat</em>, a versatile and modern sans-serif typeface, has become a popular choice among designers for its clean lines, geometric shapes, and exceptional readability. Developed by Julieta Ulanovsky, Montserrat takes inspiration from the signage and lettering found in the Montserrat neighborhood of Buenos Aires, Argentina.</p><p><strong>Nunito Sans: </strong><em>Nunito,</em> is a well balanced sans serif typeface superfamily, with 2 versions: The project began with <a href="https://fonts.google.com/specimen/Nunito">Nunito</a>, created by Vernon Adams as a rounded terminal sans serif for display typography. Jacques Le Bailly extended it to a full set of weights, and an accompanying regular non-rounded terminal version, Nunito Sans.</p><p><strong>Fredoka: </strong><em>Fredoka, </em>is a big, round, bold font that is perfect for adding a little fun to any headline or large text. The initial Latin component was designed by Milena Brandão. The later Hebrew component was designed by Ben Nathan. Fredoka is a variable font with a width and weight axes.</p><p><strong>Raleway: </strong><em>Raleway,</em> is an elegant sans-serif typeface family. Initially designed by Matt McInerney as a single thin weight, it was expanded into a 9 weight family by Pablo Impallari and Rodrigo Fuenzalida in 2012 and iKerned by Igino Marini. A thorough review and italic was added in 2016.</p><p><strong>Lato: </strong><em>Lato,</em> is a sans serif typeface family started in the summer of 2010 by Warsaw-based designer Łukasz Dziedzic (“Lato” means “Summer” in Polish). In December 2010 the Lato family was published under the Open Font License by his foundry tyPoland, with support from Google.</p><p><strong>Inter: </strong><em>Inter,</em> is a variable font family carefully crafted &amp; designed for computer screens. Inter features a tall x-height to aid in readability of mixed-case and lower-case text. Several OpenType features are provided as well, like contextual alternates that adjusts punctuation.</p><blockquote>The beauty of type lies in its utility; prettiness without readability serves neither the author nor the reader.</blockquote><blockquote><em>- James Felici</em></blockquote><p>If you’re eager to delve deeper into the world of mobile app development, stay tuned for my upcoming articles. The journey to creating stunning mobile apps is just beginning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89a972d5867c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>