<?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[Aesthetic coders - Medium]]></title>
        <description><![CDATA[This publication post programming related articles that is aesthetically pleasing. - Medium]]></description>
        <link>https://medium.com/indian-coder?source=rss----932cb05284aa---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Aesthetic coders - Medium</title>
            <link>https://medium.com/indian-coder?source=rss----932cb05284aa---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:24:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/indian-coder" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Unlock Visuals in Neovim: Viewing Images Made Easy]]></title>
            <link>https://medium.com/indian-coder/unlock-visuals-in-neovim-viewing-images-made-easy-7753848e26e8?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/7753848e26e8</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[image]]></category>
            <category><![CDATA[lunarvim]]></category>
            <category><![CDATA[neovim]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Md Sadab Wasim]]></dc:creator>
            <pubDate>Sat, 08 Jun 2024 13:15:12 GMT</pubDate>
            <atom:updated>2024-06-08T13:15:12.417Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yDGaPDCOUwIg3wDHCaljAA.png" /><figcaption>Rendering image in kitty</figcaption></figure><p>I’m a mobile engineer, and every day I work with image assets. It’s such a hassle to constantly open files just to check images before using them. The lack of image rendering inside Neovim was really bugging me. But finally, we have our savior: Image.nvim!</p><p><a href="https://github.com/3rd/image.nvim"><strong>image.nvim</strong></a><strong> </strong>is a plugin that allows you to display images in <strong>Neovim</strong>. It supports a variety of image formats, including <strong>PNG</strong>, <strong>GIF</strong> and even <strong>SVG</strong>.</p><p>You will need to use the <a href="https://sw.kovidgoyal.net/kitty/"><strong>kitty terminal</strong></a> emulator to display the images or install <a href="https://github.com/jstkdng/ueberzugpp"><strong>ueberzug++</strong></a> if you’d like to use a different terminal.</p><p>Before adding any configurations, we’ll need to install a few dependencies:</p><p>First up, you’ll need to <a href="https://github.com/3rd/image.nvim#installing-imagemagick"><strong>install ImageMagick</strong></a>, a powerful software suite for editing and manipulating digital images.</p><p><strong>Ubuntu/Debian</strong></p><pre>sudo apt install imagemagick-dev</pre><p><strong>MacOS</strong></p><pre>brew install imagemagick</pre><p><strong>NOTE</strong>: If you are using MacOS you may need to add the following to your <strong>`~/.zshrc`</strong> or <strong>`~/.bashrc`</strong> file(only add it if default config doesn’t work for you):</p><pre>export DYLD_LIBRARY_PATH=&quot;$(brew - prefix)/lib:$DYLD_LIBRARY_PATH&quot;</pre><p>If you’re using any terminal other than kitty you need to use use the <strong>ueberzug++</strong> you can install it with the following command:</p><p><strong>MacOS</strong></p><pre>brew install jstkdng/programs/ueberzugpp</pre><p>If you’re on Linux you can install <strong>ueberzug++</strong> <a href="https://software.opensuse.org/download.html?project=home%3Ajustkidding&amp;package=ueberzugpp">from here</a>.</p><h3>Install the magick rock</h3><p>Before we can start using <strong>image.nvim</strong> we need to install the <strong>magick</strong> <strong>rock</strong>.</p><p>Here is a lazy specification for the plugin:</p><pre>{<br> &quot;vhyrro/luarocks.nvim&quot;,<br> priority = 1001, -- this plugin needs to run before anything else<br> opts = {<br> rocks = { &quot;magick&quot; },<br> },<br>}</pre><h3>Configure image.nvim</h3><p>Now that we have the <strong>magick rock</strong> installed we can install the image.nvim plugin.</p><pre>{<br> &quot;3rd/image.nvim&quot;,<br> dependencies = { &quot;luarocks.nvim&quot; },<br> config = function()<br> require(&quot;image&quot;).setup({<br> backend = &quot;kitty&quot;, - or &quot;ueberzug&quot;<br> max_height_window_percentage = 50,<br> hijack_file_patterns = { &quot;*.png&quot;, &quot;*.jpg&quot;, &quot;*.jpeg&quot;, &quot;*.gif&quot;, &quot;*.webp&quot;, &quot;*.svg&quot; },<br> })<br> end<br>}</pre><p>If you find any issues while doing the configuration please comment here or look it up on the <a href="https://github.com/3rd/image.nvim?tab=readme-ov-file#configuration">readme</a>.</p><h4>That’s it, now you should be able to see the images from your terminal.</h4><p>If you want to setup Neovim for flutter with debugger, check out my article about it here:</p><p><a href="https://medium.com/indian-coder/supercharge-flutter-with-neovim-a-complete-setup-guide-cbe5cbf5b073">Supercharge Flutter with Neovim: A Complete Setup Guide</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_RtYYkBQASqpdKjI" /><figcaption>Photo by <a href="https://unsplash.com/@goian?utm_source=medium&amp;utm_medium=referral">Ian Schneider</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7753848e26e8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/unlock-visuals-in-neovim-viewing-images-made-easy-7753848e26e8">Unlock Visuals in Neovim: Viewing Images Made Easy</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supercharge Flutter with Neovim: A Complete Setup Guide]]></title>
            <link>https://medium.com/indian-coder/supercharge-flutter-with-neovim-a-complete-setup-guide-cbe5cbf5b073?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/cbe5cbf5b073</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[dx]]></category>
            <category><![CDATA[neovim]]></category>
            <dc:creator><![CDATA[Md Sadab Wasim]]></dc:creator>
            <pubDate>Sun, 17 Sep 2023 12:17:50 GMT</pubDate>
            <atom:updated>2024-12-23T12:48:45.115Z</atom:updated>
            <content:encoded><![CDATA[<p>Effortless Flutter Development with Neovim and LunarVim: Master Streamlined Configurations, and DAP Debugging.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CIC_U3iOdTLCOUqXAu411w.png" /></figure><p>Hey there, Get ready to level up your coding game with the unbeatable combo of Flutter and Neovim. 🚀 We all love Speed and Flutter, it’s one common thing that brings us all together, And that’s why you’ll love Neovim.</p><p>I’m super excited to share this article because it all started with my own month-long search for the perfect Neovim setup for Flutter. Unfortunately, I couldn’t find what I needed, but after figuring it all out, I knew I had to create this guide to help my awesome fellow Flutter developers!</p><h4>How I started my Neovim configuration?</h4><p>Unlike many, I prefer not to start my Neovim configuration from scratch. Don’t get me wrong, I enjoy tweaking and playing with my IDE configs, but I’d rather not waste time on the most basic things.</p><p>Wondering what prebuilt Neovim configurations are out there? You’ve got two popular options to choose from: NvChad and LunarVim. At first, I dived into NvChad, but the configuration style was akin to starting from scratch (which has its long-term benefits). However, that wasn’t quite what I was after. My goal was to have a setup where I could easily tweak my configuration and see the changes in action without having to make adjustments across multiple files.</p><p>So I chose <a href="https://www.lunarvim.org/">Lunarvim</a>, and it provided me with exactly what I needed. It offers options to quickly tweak my configuration, and if I ever feel like it, I can switch back to a more traditional Neovim setup. It’s the best of both worlds!</p><h4>What do I have now?</h4><p>With Lunarvim, I have everything I need in my IDE fully set up, and there’s even more to love! One feature I adore is the integrated whichkey, which conveniently displays the keymaps bound to the key I just pressed. It’s like having a helpful guide right at my fingertips!</p><h4>Initial Flutter setup</h4><p>I found<a href="https://github.com/akinsho/flutter-tools.nvim"> the flutter-tools</a> plugin which has all I need to run the Flutter app. I started with basic configuration.</p><pre>{<br>    &#39;akinsho/flutter-tools.nvim&#39;,<br>    dependencies = {<br>        &#39;nvim-lua/plenary.nvim&#39;,<br>        &#39;stevearc/dressing.nvim&#39;,<br>    },<br>    config = true,<br>}</pre><p>That’s all you need to start running your Flutter apps, While that may be sufficient for some, it’s not quite enough for me. I require a debugger to be seamlessly integrated into my setup, enabling me to effortlessly debug my Flutter apps with ease. Let’s take our Flutter development to the next level!</p><h4><strong>DAP integration</strong></h4><p>For Dart, we’re going to use dart-debug-adapter (install it using <a href="https://github.com/williamboman/mason.nvim">mason</a>), and f<a href="https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#dart">ollow these instructions</a> to quickly set this up.</p><h4>Final Flutter setup with debug support</h4><pre>lvim.plugins = {<br>  -- for DAP support<br>  { &quot;mfussenegger/nvim-dap&quot; },<br>  {<br>    &quot;akinsho/flutter-tools.nvim&quot;,<br>    dependencies = { &quot;nvim-lua/plenary.nvim&quot;, &quot;stevearc/dressing.nvim&quot; },<br>    config = function()<br>      require(&#39;flutter-tools&#39;).setup {<br>       -- (uncomment below line for windows only)<br>       -- flutter_path = &quot;home/flutter/bin/flutter.bat&quot;,<br><br>        debugger = {<br>          -- make these two params true to enable debug mode<br>          enabled = false,<br>          run_via_dap = false,<br>          register_configurations = function(_)<br><br>             require(&quot;dap&quot;).adapters.dart = {<br>                type = &quot;executable&quot;,<br>                command = vim.fn.stdpath(&quot;data&quot;) .. &quot;/mason/bin/dart-debug-adapter&quot;,<br>                args = {&quot;flutter&quot;}<br>              }<br><br>            require(&quot;dap&quot;).configurations.dart = {<br>              {<br>                type = &quot;dart&quot;,<br>                request = &quot;launch&quot;,<br>                name = &quot;Launch flutter&quot;,<br>                dartSdkPath = &#39;home/flutter/bin/cache/dart-sdk/&#39;,<br>                flutterSdkPath = &quot;home/flutter&quot;,<br>                program = &quot;${workspaceFolder}/lib/main.dart&quot;,<br>                cwd = &quot;${workspaceFolder}&quot;,<br>              }<br>            }<br>            -- uncomment below line if you&#39;ve launch.json file already in your vscode setup<br>            -- require(&quot;dap.ext.vscode&quot;).load_launchjs()<br>          end,<br>        },<br>        dev_log = {<br>          -- toggle it when you run without DAP<br>          enabled = false,<br>          open_cmd = &quot;tabedit&quot;,<br>        },<br>        lsp = {<br>          on_attach = require(&quot;lvim.lsp&quot;).common_on_attach,<br>          capabilities = require(&quot;lvim.lsp&quot;).default_capabilities,<br>        },<br><br>      }<br>    end<br>  },<br>  -- for dart syntax hightling<br>  {<br>    &quot;dart-lang/dart-vim-plugin&quot;<br>  },<br>}</pre><p>In this article, I’ve focused solely on Flutter and Dart-related plugins for Neovim. However, stay tuned for future articles where I’ll be sharing my other configurations and setups.</p><p>And there you have it, my fellow Flutter developers! I hope this article has been a game-changer for your Neovim and Flutter journey. Remember, we’re all in this together, so let’s keep sharing our knowledge and making our coding experiences even more enjoyable.</p><blockquote><strong>Update</strong>: Since Lunarvim is no longer actively maintained, I switched to <a href="https://www.lazyvim.org/"><strong>Lazyvim</strong></a> with the same setup, you can check <a href="https://github.com/MDSADABWASIM/.dotfiles/tree/master/nvim"><strong>my dotfiles</strong></a> for reference.</blockquote><p>Read my other popular articles:</p><ul><li><a href="https://medium.com/codechai/5-concepts-every-flutter-dev-should-know-48673ab074cb">5 concepts every Flutter dev should know</a></li><li><a href="https://medium.com/indian-coder/flutter-architecture-that-i-adore-8139080abb">Flutter state management architecture that I adore</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g_T86NnIBi5r7Tt0" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbe5cbf5b073" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/supercharge-flutter-with-neovim-a-complete-setup-guide-cbe5cbf5b073">Supercharge Flutter with Neovim: A Complete Setup Guide</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 oldest tips to write clean code.]]></title>
            <link>https://medium.com/indian-coder/5-oldest-tips-to-write-clean-code-1c6b41fc7ef4?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/1c6b41fc7ef4</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Md Sadab Wasim]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 09:57:49 GMT</pubDate>
            <atom:updated>2022-10-12T09:57:49.643Z</atom:updated>
            <content:encoded><![CDATA[<p>These will make your codebase solid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-3e7eI31cUIhsJqG" /><figcaption>Photo by <a href="https://unsplash.com/@towfiqu999999?utm_source=medium&amp;utm_medium=referral">Towfiqu barbhuiya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Want to write clean code, but don’t know where to start?<br>I am here to give you a path that you can easily follow.</p><p>We all know how to write code and build a project, but it’s not enough if you want to maintain the project for a long time.</p><p>And that’s where the concept of clean code comes into the picture.</p><h3>Sadab | Clean Code And Life on Twitter: &quot;I once heard Uncle bob saying: &quot;Clean code is written by someone who cares.&quot; / Twitter&quot;</h3><p>I once heard Uncle bob saying: &quot;Clean code is written by someone who cares.&quot;</p><p>Today we will focus on <strong>SOLID</strong> principles:</p><h4>S: Single responsibility principle</h4><p>This concept is fairly simple, it says your class and function should have only one responsibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*ln0dqWrGPPf0UkDK" /></figure><h4>O: Open closed principle</h4><p>Your class should be open for extension but closed for modification. <br>For example, if you want to add some parameters or methods to an existing class then don’t directly modify the class, create another class that extends the existing class properties, and here add the new things you need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/0*O8mqKHyX6gWlSBIr" /></figure><h4>L: Liskov Substitution Principle</h4><p>It simply says your subclass should be able to replace your superclass.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*ozsleCqPZ-FGTD8C" /></figure><h4>I: Interface segregation principle</h4><p>Your interface should not force any class to implement something which it’s not going to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*gBg28C12Z60p1uni" /></figure><h4>D: Dependency inversion principle</h4><p>Your high-level modules should not directly depend on your low-level modules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/0*OeroGAUe_3SypYBg" /></figure><p>These are the easiest principles that you can start with. Let me know if you want a detailed article on any one of these concepts.</p><p>Follow me to learn advanced concepts of programming in a non-boring way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c6b41fc7ef4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/5-oldest-tips-to-write-clean-code-1c6b41fc7ef4">5 oldest tips to write clean code.</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speech to text in a minute]]></title>
            <link>https://medium.com/indian-coder/speech-to-text-in-a-minute-e6d851f5e41e?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/e6d851f5e41e</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[speech-recognition]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[services]]></category>
            <dc:creator><![CDATA[Md Sadab Wasim]]></dc:creator>
            <pubDate>Sat, 20 Aug 2022 05:05:46 GMT</pubDate>
            <atom:updated>2022-09-06T06:58:28.991Z</atom:updated>
            <content:encoded><![CDATA[<h4>Flutter implementation of speech-to-text functionality</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H6bhWQ7rfr9PJkHQ" /><figcaption>Photo by <a href="https://unsplash.com/@omidarmin?utm_source=medium&amp;utm_medium=referral">Omid Armin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You want to add speech-to-text functionality in your app or just want to see how it’s done. Let’s see how to do it in flutter.</p><p><strong>Step 1: Add the plugin</strong></p><pre>speech_to_text: &lt;latest version&gt;</pre><p><strong>Step 2: Initialise it</strong></p><pre>bool _speechEnabled = false;<br>String _lastWords = &#39;&#39;;<br>final SpeechToText speechToText = SpeechToText();</pre><pre>Future&lt;void&gt; initSpeech() async {<br>_speechEnabled = await speechToText.initialize();<br>}</pre><p><strong>Step 3: Write the start and stop function</strong></p><pre>///Call when you want to listen <br>void startListening() async {<br>await speechToText.listen(<em>onResult</em>: _onSpeechResult);<br>}</pre><pre>///Call when you want to stop listening<br>void stopListening() async {<br>await speechToText.stop();<br>}</pre><pre>///It automatically get called when plugin recognize any word.<br>void _onSpeechResult(SpeechRecognitionResult <em>result</em>) {<br>_lastWords = <em>result</em>.recognizedWords;</pre><pre>//here you can do anything with recognize words.<br>}</pre><p><strong>Step 4: Check the status, if the plugin is enabled or not</strong></p><pre>String status() {</pre><pre>if (speechEnabled) {<br>return “Press the button to start speaking”;<br>} </pre><pre>else {<br>return “Speech not available”;<br>}</pre><pre>}</pre><p>That’s it, now you can directly use these functions with your UI class.</p><p>You can check this <a href="https://github.com/MDSADABWASIM/dictionary-app">repository </a>where I’m using this code.</p><p>See you guys in the next <strong>“in a minute”</strong> article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DnMtU1hMIlxkjpYd" /><figcaption>Photo by <a href="https://unsplash.com/@goian?utm_source=medium&amp;utm_medium=referral">Ian Schneider</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6d851f5e41e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/speech-to-text-in-a-minute-e6d851f5e41e">Speech to text in a minute</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supabase vs. Firebase: Why I Made the Switch]]></title>
            <link>https://medium.com/indian-coder/why-did-i-choose-supabase-over-firebase-467a7cf9c18?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/467a7cf9c18</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[supabase]]></category>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Md Sadab Wasim]]></dc:creator>
            <pubDate>Thu, 16 Jun 2022 06:29:14 GMT</pubDate>
            <atom:updated>2024-06-25T04:14:08.528Z</atom:updated>
            <content:encoded><![CDATA[<p>Supabase is a new but better version of firebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9HPLfL3_qrGZe2rO2QbS2g.png" /></figure><ol><li><strong>You know what you will pay</strong></li></ol><p>It was one of the main pain points for me when using firebase, it’s so hard to calculate the price based on read/write calls, with Supabase’s pricing is more clear, they only charge for database storage and give unlimited API calls.</p><p><strong>2. Supabase support Postgress SQL database</strong></p><p>With SQL support you can write complex queries and everything is a breeze if you have already worked with SQL.</p><p><strong>3. Open source nature</strong></p><p>We all love open source software, Supabase is open source and we can see what is going on with the project, while this is not the case with firebase.</p><p><strong>4. Support of extensions and plugins for Postgres</strong></p><p>Supabase is pre-configured with over 50 extensions. You can also install your own SQL extensions directly into the database through the SQL editor.</p><p><strong>5. Performance</strong></p><p>Supabase team created a benchmarking repo where you can compare the performance of both services in different scenarios. Most recent results show that Supabase outperforms Firebase by up to 4x on the number of reads per second, and 3.1x on writes per second, you can check the benchmark <a href="https://github.com/supabase/benchmarks/issues/8">here</a>.</p><p>These are the reasons that led me to choose Supabase, but I will still say that Supabase has limited services, they just launched support for functions, while Firebase is a mature product and has tons of free services that can be a good decision maker like crashlytics, notification, etc. So choose wisely and see what you really need for your project.</p><p>Thanks for reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I_PTEfA5TglnQTjR" /><figcaption>Photo by <a href="https://unsplash.com/@goian?utm_source=medium&amp;utm_medium=referral">Ian Schneider</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=467a7cf9c18" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/why-did-i-choose-supabase-over-firebase-467a7cf9c18">Supabase vs. Firebase: Why I Made the Switch</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playing small sounds in Flutter]]></title>
            <link>https://medium.com/indian-coder/playing-small-sounds-in-flutter-344a5fc722c2?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/344a5fc722c2</guid>
            <category><![CDATA[appdevelopmentinbangalore]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[sound]]></category>
            <category><![CDATA[audio]]></category>
            <dc:creator><![CDATA[Md Sadab Wasim]]></dc:creator>
            <pubDate>Wed, 27 Apr 2022 07:43:28 GMT</pubDate>
            <atom:updated>2022-04-27T07:43:28.857Z</atom:updated>
            <content:encoded><![CDATA[<p>play sounds without any heavy libraries</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yEhCi78p-tUZmpuw" /><figcaption>Photo by <a href="https://unsplash.com/@icons8?utm_source=medium&amp;utm_medium=referral">Icons8 Team</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Oftentimes you want to play small sounds in your app when you are showing some dialog, snack bar, or notification and today I’ll tell you how to play small sounds efficiently.</p><p>install this lightweight plugin:</p><pre>soundpool: &lt;latest version&gt;</pre><p>once you have this plugin installed let’s make a sound service class.</p><pre>import ‘package:flutter/services.dart’;<br>import ‘package:soundpool/soundpool.dart’;</pre><pre>class SoundService {<br>Soundpool? pool;<br>int? soundId;</pre><pre>SoundService() {<br>init();<br>}</pre><pre>Future init() async {<br>pool = Soundpool.fromOptions();</pre><pre>soundId = await rootBundle<br>.load(“assets/sound/success_sound.mp3”) //your sound file name here<br>.then((ByteData <em>soundData</em>) {<br>return pool!.load(<em>soundData</em>);<br>});<br>}</pre><pre>playSound() {<br>pool!.play(soundId!);<br>}</pre><pre>}</pre><p>After writing this service initialize this service only once in your app, and whenever you want to play the sound just call the <strong>playSound </strong>method of this service.</p><p>In this way, we don’t have to use heavy libraries like <strong>audio_player </strong>to play a simple small sound and this implementation will make our app structure cleaner and more efficient.</p><h4>Thanks for reading,</h4><p>please applaud if you find this article useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=344a5fc722c2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/playing-small-sounds-in-flutter-344a5fc722c2">Playing small sounds in Flutter</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart contracts in a minute]]></title>
            <link>https://medium.com/indian-coder/smart-contracts-in-a-minute-4f23f277ebae?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/4f23f277ebae</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[MSW]]></dc:creator>
            <pubDate>Mon, 14 Feb 2022 15:03:36 GMT</pubDate>
            <atom:updated>2022-02-14T15:03:30.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhPnVpnHahVgLj0TnJa0Hg.png" /></figure><blockquote>What is smart about smart contracts?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-hJpq-s0aZf7RDJidfJxA.png" /></figure><p>A smart contract is just like a simple real-world paper contract but with some differences. Let’s say we’ve made a paper contract which says that if tomorrow it rains then my friend will give me 1 BTC or if it doesn’t rain then I’ll give him 1 BTC. Considering how lucky I am tomorrow it rains and I went to my friend for BTC but he denied it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*71EhsbCDMpiUsqe0OW4KBg.png" /></figure><p>Now I’ve only one option, I need to go to court and prove that we had made this silly contract yesterday and I won it, but in this situation, we’ll waste our time and money. So what is the solution?</p><h4>Here come the smart contracts into the picture. It is basically a computer program.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqjnsSKP1nRhjPavm6jDLw.png" /></figure><p>suppose instead of making a paper contract earlier, we had made a smart contract, now this contract will take 1 BTC from both parties, and tomorrow it’ll give both BTC to the winning party. Once this contract is written and published it can’t be changed, no one can withdraw their BTC from it. It will work as it is programmed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHevY5yPB67W4EfI0VsMYw.png" /></figure><p>A simple smart contract can contain more than one set of instructions, we call it functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhGIO1gK5FAYzjaEoyLU9Q.png" /></figure><p>Here we explained smart contracts in a simple way, you at least know the gist of it and now you know smart contracts are smart or dumb.</p><blockquote><strong><em>Thanks, and if you are enjoying this series please consider applauding this article and follow me for more articles. see you in the next ELI5 post.</em></strong></blockquote><p>If you want to see the video version of this post in Hindi you can watch it <a href="https://www.youtube.com/watch?v=0Yz5maV7Fkg&amp;t=1s">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f23f277ebae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/smart-contracts-in-a-minute-4f23f277ebae">Smart contracts in a minute</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain explained]]></title>
            <link>https://medium.com/indian-coder/blockchain-explained-44a14365f0ad?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/44a14365f0ad</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[eli5]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <dc:creator><![CDATA[MSW]]></dc:creator>
            <pubDate>Sat, 12 Feb 2022 06:06:07 GMT</pubDate>
            <atom:updated>2022-02-12T06:06:07.392Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzHfNvkkJV_wthyJwWKETQ.png" /></figure><p>Blockchain is the technology behind bitcoin and other cryptocurrencies, and as we know, how the internet revolutionized information, like that blockchain brings revolution for money.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEv8iDdV473SPHvDUVoRuQ.png" /></figure><p>Blockchain is basically a public ledger and everyone can see it. This is mostly unchangeable it means that only data blocks get added into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEbg_mGl_hoCRgjw2ciZbQ.png" /></figure><p>It is designed in a way that, in theory, it is impossible to hack it because the copy of the same database literally saved by thousands of people we call <strong>miners</strong>. If you successfully hacked at one place you still can’t change the database cause every change in the database is verified by miners and if they find it incorrect they’ll not accept your changes. Ultimately it’s the most secure and immutable database in the world right now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GIOp8HmL45oDKo81ePRc6Q.png" /></figure><p>In 2009 Blockchain technology is released with the launch of bitcoin. Bitcoin uses blockchain technology but blockchain has far more utility than that. It can be used to execute a computer program we call that smart contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaiF6-GboKby1TLJnJcSXQ.png" /></figure><p>Here we explained blockchain in a simple way, you at least know the gist of it and now you can take part in the conversation about blockchain among your friends.</p><blockquote><strong>Thanks and see you in the next ELI5 post.</strong></blockquote><p>If you want to see the video version of this post in Hindi you can watch it <a href="https://youtu.be/1Nnp8iEtlUg">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44a14365f0ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/blockchain-explained-44a14365f0ad">Blockchain explained</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing flutter package in an easy way]]></title>
            <link>https://medium.com/indian-coder/writing-flutter-package-in-an-easy-way-dc1e7410637d?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/dc1e7410637d</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[package]]></category>
            <category><![CDATA[plugins]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Md Sadab Wasim]]></dc:creator>
            <pubDate>Mon, 09 Aug 2021 07:30:20 GMT</pubDate>
            <atom:updated>2021-08-09T07:30:20.639Z</atom:updated>
            <content:encoded><![CDATA[<p>Build flutter package smoothly</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jfj6ubEXBWUZxtjJ" /><figcaption>Photo by <a href="https://unsplash.com/@tegethoff?utm_source=medium&amp;utm_medium=referral">Mark Tegethoff</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’m here to share my experience of creating a package, cause I don’t want you to get stuck in any of these creation steps, let’s understand this concept with a simple example.</p><h3>Create a plugin project</h3><p>Run this command to create a plugin project</p><pre>flutter create --org com.example --template<strong>=</strong>plugin --platforms<strong>=</strong>android,ios -a kotlin -i swift test_project</pre><p>It will create an empty project with kotlin and swift support for android and ios sides respectively.</p><h3>What we get out of the box</h3><ol><li>Android folder that contains a kotlin class, we will add all native android side code here.</li><li>Ios folder which contains a swift class, and we will add native ios code here.</li><li>lib folder that contains our beloved dart code.</li></ol><p>Add plugin_platform_interface: in pubspec.yaml file, This class package provides common functionality for platform interfaces to enforce that they are extended and not implemented.</p><h3>Let’s create method calls that interacts with both the ios and android side</h3><p>We’re going to add <a href="https://magic.link/">magic sdk</a> which is available for both android and ios.</p><h3>Dart side</h3><ol><li>Let’s create an abstract class magic_platform_interface.dart it extends PlatformInterface. It contains definitions of the functions, that we need to implement.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O1djVrYUAUGSLH_oC5iYcQ.png" /></figure><p>We have added two functions definition here intializeMagic for initializing SDK and loginWithMagicLink to use SDK and do login.</p><p>2. We will then create a class magic_method_channel.dart which will extend our abstract class here we will write function implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wl6RPtFYikX5kGLitOMkBg.png" /></figure><p>3. Finally we will create a class magic_flutter.dart this will be the main class that any user of this plugin will import and use all plugin functionality, we also add docs for each method, so that it’ll be easy to use for any plugin user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w26nCRVXo9ag3tSIozb5qA.png" /></figure><p>That’s it for the dart side, let’s dive into the native side.</p><h3>Android side</h3><p>Open the Android folder in Android studio separately, it will give us essentially code completion and debug-related functionality which will be a huge time saver in long run.</p><ol><li>Add method calls with their respective names.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzuZMNgprrzgQx0XtbMqmw.png" /><figcaption>mapping names with method calls</figcaption></figure><p>2. Define some utility methods that will be helpful to send results or error cases to the flutter side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8i3_OSW9x3Ru3eytxXsiDA.png" /></figure><p>3. Now, we can write our method implementation for the Android side, let’s first write for intializeMagic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6Mna0i8td21jmg12s_j7g.png" /><figcaption>Magic constructor needs current activity, key, and CustomNodeConfiguration</figcaption></figure><p>4. Write implementation for loginWithMagicLink method</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fZG11DUCQ5kW074iJZw62g.png" /><figcaption>It only needs email as an argument</figcaption></figure><h3>ios side</h3><ol><li>Add these method calls with their respective names</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r0Kwx2pY73pbpgeXzQMwog.png" /></figure><p>2. Let’s implement initializeMagic function on the ios side</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OAeXR8ZxrC1g2OFTAN667g.png" /></figure><p>3. Add implementation of loginWithMagicLink function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhsySVbvMzCtD3WpR_Dbpg.png" /></figure><p>You can check out the project and copy any part of the code, the project has complete implementation with many more functions, <strong>check it out </strong><a href="https://gitlab.com/mdsadabwasim/magic_flutter"><strong>here</strong></a><strong>.</strong></p><p><strong>Thanks for sharing your time with me 🙌</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc1e7410637d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/writing-flutter-package-in-an-easy-way-dc1e7410637d">Writing flutter package in an easy way</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to become a writer in Indian coder publication]]></title>
            <link>https://medium.com/indian-coder/how-to-become-a-writer-in-indian-coder-publication-a80b9c673986?source=rss----932cb05284aa---4</link>
            <guid isPermaLink="false">https://medium.com/p/a80b9c673986</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[publication]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Md Sadab Wasim]]></dc:creator>
            <pubDate>Sat, 31 Jul 2021 08:35:30 GMT</pubDate>
            <atom:updated>2021-07-31T08:35:29.932Z</atom:updated>
            <content:encoded><![CDATA[<p>I am going to explain the steps you should follow to become a writer in our publication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S75oM_v1o_-fTflc" /><figcaption>Photo by <a href="https://unsplash.com/@patrickian4?utm_source=medium&amp;utm_medium=referral">Patrick Fore</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s time, we are finally opening up this publication for other good tech writers to publish their articles in this publication.</p><h4>Follow these simple steps to become a writer in this publication</h4><ol><li>Write an article with tech-related content, it can be as simple as a tutorial or your point of view towards any technology, or about anything, just make sure your article comes in the tech category.</li><li>Go to <a href="https://twitter.com/sadab_wasim">my Twitter account </a>and message me with the article’s draft link, I will read and make sure to reply whether we accept your article or not, I will let you know.</li><li>Once you messaged me, I will check your article and if it fulfills all criteria I will directly add you as a writer in the publication, and then you can directly add your article to this publication and get published.</li></ol><blockquote>It is as simple as that</blockquote><p>Thanks for taking interest in this publication,</p><p>we are happy and excited to see your articles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*19nHoKRIV4TdZzEm" /><figcaption>Photo by <a href="https://unsplash.com/@goian?utm_source=medium&amp;utm_medium=referral">Ian Schneider</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a80b9c673986" width="1" height="1" alt=""><hr><p><a href="https://medium.com/indian-coder/how-to-become-a-writer-in-indian-coder-publication-a80b9c673986">How to become a writer in Indian coder publication</a> was originally published in <a href="https://medium.com/indian-coder">Aesthetic coders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>