<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: rahul mishra</title>
    <description>The latest articles on DEV Community by rahul mishra (@yogi_rahul).</description>
    <link>https://dev.to/yogi_rahul</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3366584%2F709ef4c6-0643-4673-8655-ebe0a4a0c1c1.png</url>
      <title>DEV Community: rahul mishra</title>
      <link>https://dev.to/yogi_rahul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yogi_rahul"/>
    <language>en</language>
    <item>
      <title>Why Writing Efficient Code Still Matters (Even in the Age of AI) ?</title>
      <dc:creator>rahul mishra</dc:creator>
      <pubDate>Wed, 03 Sep 2025 02:41:16 +0000</pubDate>
      <link>https://dev.to/yogi_rahul/why-writing-efficient-code-still-matters-even-in-the-age-of-ai--3528</link>
      <guid>https://dev.to/yogi_rahul/why-writing-efficient-code-still-matters-even-in-the-age-of-ai--3528</guid>
      <description>&lt;p&gt;We live in a time where you can ask an AI to write you code But If you aren’t comfortable reading and understanding that code, you can easily get stuck in the loop of:&lt;/p&gt;

&lt;p&gt;“What’s wrong with my code? It looks fine…”&lt;/p&gt;

&lt;p&gt;The truth is, it’s often not about whether the code runs, but how efficiently it runs. That’s where space and time complexity  and a basic understanding of algorithms comes into play.&lt;/p&gt;

&lt;p&gt;Let's take an example from building an App : Imagine building a feature where users can search through a large product catalog.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;If you naively loop through every item (O(n)), the app feels slow as data grows.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you use the right data structure (like a hash map or binary search on a sorted list → O(log n)), the same search feels instant.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s the difference between a cumbersome app and one users love.&lt;/p&gt;

&lt;p&gt;If you are from AI background, you must have experienced there too. Training a deep learning model with millions of parameters is already resource heavy.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;If you store and process data inefficiently (say, dense matrices instead of sparse), you could need 10x more GPU memory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you choose the right algorithm (say, an optimized gradient descent variant or caching strategy), training can finish in days instead of weeks.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s the difference between research that scales and one that stalls.&lt;/p&gt;

&lt;p&gt;You don’t need to memorize every algorithm, that’s not the point. &lt;/p&gt;

&lt;p&gt;What you do need is the habit of thinking in terms of efficiency. AI can write code for you, but if you don’t know how to analyze or optimize it, you’ll struggle to debug and improve it.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>softwaredevelopment</category>
      <category>ai</category>
    </item>
    <item>
      <title>Looking to Connect with Devs/Builders to Start Something Together</title>
      <dc:creator>rahul mishra</dc:creator>
      <pubDate>Wed, 06 Aug 2025 14:12:04 +0000</pubDate>
      <link>https://dev.to/yogi_rahul/looking-to-connect-with-devsbuilders-to-start-something-together-maybe-yc-2na6</link>
      <guid>https://dev.to/yogi_rahul/looking-to-connect-with-devsbuilders-to-start-something-together-maybe-yc-2na6</guid>
      <description>&lt;p&gt;I’m a solo builder who's been thinking seriously about starting up. I’m looking to connect with like-minded devs who want to explore startup ideas together — maybe even apply to Y Combinator if it feels right.&lt;/p&gt;

&lt;p&gt;Not pitching any fixed idea right now — just open chats, bouncing thoughts, and seeing if there’s a good vibe to build with someone. If you’re curious, motivated, and want to work on something meaningful, let’s connect!&lt;/p&gt;

&lt;p&gt;Drop a comment or DM me here. I’d love to talk.&lt;/p&gt;

</description>
      <category>buildinpublic</category>
      <category>ai</category>
      <category>startup</category>
    </item>
    <item>
      <title>Query Smarter, Not Harder</title>
      <dc:creator>rahul mishra</dc:creator>
      <pubDate>Sat, 26 Jul 2025 08:58:17 +0000</pubDate>
      <link>https://dev.to/yogi_rahul/query-smarter-not-harder-ci5</link>
      <guid>https://dev.to/yogi_rahul/query-smarter-not-harder-ci5</guid>
      <description>&lt;p&gt;If you're building a music app with on_audio_query, it’s tempting to call querySongs() everywhere—home screen, playlists, search, etc. But this means repeated storage scans → slower UI, battery drain, and unnecessary complexity.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Wrong Way – Querying Every Time
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;final OnAudioQuery audioQuery = OnAudioQuery();

Future&amp;lt;List&amp;lt;SongModel&amp;gt;&amp;gt; getSongs() async {
  return await audioQuery.querySongs(); // Called in every screen
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In each screen:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;final songs = await getSongs(); // Repeats scan again&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Better Way – Query Once, Share via Provider
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Fetch once in a service (e.g., MusicPlaybackService):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class MusicPlaybackService extends ChangeNotifier {
  List&amp;lt;SongModel&amp;gt; _allSongs = [];

  Future&amp;lt;void&amp;gt; loadSongs() async {
    final OnAudioQuery query = OnAudioQuery();
    _allSongs = await query.querySongs();
    notifyListeners();
  }

  List&amp;lt;SongModel&amp;gt; get allSongs =&amp;gt; _allSongs;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Provide it globally:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;runApp(
  ChangeNotifierProvider(
    create: (_) {
      final service = MusicPlaybackService();
      service.loadSongs(); // Fetch once
      return service;
    },
    child: MyApp(),
  ),
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Reuse anywhere without re-querying:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;final allSongs = context.watch&amp;lt;MusicPlaybackService&amp;gt;().allSongs;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Benefits&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No repeated disk access.&lt;/li&gt;
&lt;li&gt;Faster UI transitions (playlist, search, player use the same list).&lt;/li&gt;
&lt;li&gt;Centralized state → easier maintenance.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>appdevelopment</category>
      <category>flutter</category>
      <category>androiddev</category>
      <category>programming</category>
    </item>
    <item>
      <title>The AI Effect on Coding</title>
      <dc:creator>rahul mishra</dc:creator>
      <pubDate>Fri, 18 Jul 2025 16:41:04 +0000</pubDate>
      <link>https://dev.to/yogi_rahul/the-ai-effect-on-coding-3ioa</link>
      <guid>https://dev.to/yogi_rahul/the-ai-effect-on-coding-3ioa</guid>
      <description>&lt;p&gt;Before AI, learning to code meant starting with the basics, following tutorials, and gradually building projects.&lt;/p&gt;

&lt;p&gt;Now? It’s flipped.&lt;/p&gt;

&lt;p&gt;I often start by asking an AI to write the code. Then, when it breaks (or doesn’t work exactly how I want), I go step by step, debugging and understanding the logic.&lt;/p&gt;

&lt;p&gt;It feels like reverse learning—build first, understand later. And honestly, it works surprisingly well for rapid problem-solving.&lt;/p&gt;

&lt;p&gt;AI hasn’t just changed what we learn, but how we learn.&lt;/p&gt;

&lt;p&gt;Does anyone else learn this way? Or do you prefer the old-school approach of mastering concepts first?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
