<?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: Mohammad Shariya</title>
    <description>The latest articles on DEV Community by Mohammad Shariya (@shariya_shuvo).</description>
    <link>https://dev.to/shariya_shuvo</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%2F1874760%2F7c78dfd6-a757-463c-b82a-790b88f94da2.png</url>
      <title>DEV Community: Mohammad Shariya</title>
      <link>https://dev.to/shariya_shuvo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shariya_shuvo"/>
    <language>en</language>
    <item>
      <title>Ever Wondered How Powerful a Well-Written Prompt Can Be?</title>
      <dc:creator>Mohammad Shariya</dc:creator>
      <pubDate>Sat, 24 May 2025 14:57:15 +0000</pubDate>
      <link>https://dev.to/shariya_shuvo/ever-wondered-how-powerful-a-well-written-prompt-can-be-8ee</link>
      <guid>https://dev.to/shariya_shuvo/ever-wondered-how-powerful-a-well-written-prompt-can-be-8ee</guid>
      <description>&lt;p&gt;Lately, I’ve been experimenting with writing &lt;strong&gt;clear, structured prompts&lt;/strong&gt; for AI tools—and honestly, the results have been impressive!&lt;/p&gt;

&lt;p&gt;I realized that when I tell the AI &lt;em&gt;exactly&lt;/em&gt; what I want, the output becomes much more useful and aligned. So I started following a simple prompt-writing &lt;strong&gt;formula&lt;/strong&gt; that’s been giving me surprisingly &lt;strong&gt;consistent and smart results&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;And I thought—why not share my little experience with the community? &lt;/p&gt;

&lt;h3&gt;
  
  
  Here's how I structure prompts that actually work:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;System Instruction&lt;/strong&gt;&lt;br&gt;
→ Tell the AI what “role” it’s supposed to play. (e.g., a teacher, developer, assistant)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Context&lt;/strong&gt;&lt;br&gt;
→ Give it the background or situation—so it understands the purpose.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Few-shot Examples&lt;/strong&gt;&lt;br&gt;
→ Provide 1–2 short examples to guide the kind of output you expect.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;User Task&lt;/strong&gt;&lt;br&gt;
→ Clearly define what the AI needs to do.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Requirements&lt;/strong&gt;&lt;br&gt;
→ Mention tone, style, or any must-haves to guide the final response.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Example:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;System: You are a research assistant.  
Context: Helping to summarize academic papers for social media.  
Few-shot Examples: "Key findings", "Why this matters", "Future work".  
User Task: Summarize a paper on machine learning in healthcare.  
Requirements: Use simple language, bullet points, include 1 key takeaway.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When I follow these five steps, the prompts become much more effective, and the results feel genuinely tailored. It's become my go-to style whenever I work with AI tools now. &lt;/p&gt;

&lt;h3&gt;
  
  
  How do &lt;em&gt;you&lt;/em&gt; write prompts?
&lt;/h3&gt;

&lt;p&gt;Do you follow a specific structure, or have any tips of your own?&lt;br&gt;
Drop a comment—I'd love to learn from your approach too!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>promptengineering</category>
      <category>chatgpt</category>
    </item>
    <item>
      <title>Writing Better Git Commit Messages — What I Learned from Experience</title>
      <dc:creator>Mohammad Shariya</dc:creator>
      <pubDate>Fri, 23 May 2025 15:29:00 +0000</pubDate>
      <link>https://dev.to/shariya_shuvo/writing-better-git-commit-messages-what-i-learned-from-experience-27fi</link>
      <guid>https://dev.to/shariya_shuvo/writing-better-git-commit-messages-what-i-learned-from-experience-27fi</guid>
      <description>&lt;p&gt;&lt;strong&gt;Is writing a &lt;em&gt;good&lt;/em&gt; commit message really that important?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After working on projects for quite some time, I’ve realized that a clear, to-the-point commit message makes teamwork a whole lot easier — and it helps me too when reviewing or debugging code later!&lt;/p&gt;

&lt;p&gt;Lately, I’ve been more intentional about how I write my commits, and honestly, the entire process has become smoother and more enjoyable.&lt;/p&gt;

&lt;h4&gt;
  
  
  Why do good commit messages matter?
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Easier team collaboration:&lt;/strong&gt; No more guessing games about who changed what.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Faster debugging:&lt;/strong&gt; Tools like &lt;code&gt;git blame&lt;/code&gt; and &lt;code&gt;git bisect&lt;/code&gt; are only useful when the messages give actual clues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quicker code reviews:&lt;/strong&gt; A good message helps the reviewer understand what to focus on instantly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The format I follow (and it really works!)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I stick to a simple, consistent format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;type&amp;gt;(&amp;lt;scope&amp;gt;): &amp;lt;short, clear summary&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;type:&lt;/strong&gt; feat, fix, docs, style, refactor, test&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;scope:&lt;/strong&gt; the part of the project (like auth, ui)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;summary:&lt;/strong&gt; under 50 characters, written in the imperative mood (e.g., “Add”, “Fix”, “Refactor”)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If needed, I also add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Body:&lt;/strong&gt; What I did and &lt;em&gt;why&lt;/em&gt; I did it (not just &lt;em&gt;what&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Footer:&lt;/strong&gt; Issue numbers (e.g., &lt;code&gt;Closes #123&lt;/code&gt;) or notes about breaking changes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;A few real examples I use:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;feat(api): add user-profile endpoint&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fix(ui): prevent navbar overflow on mobile&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;docs(readme): update installation instructions&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;refactor(auth): extract token logic into service&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;test(payment): add unit tests for Stripe webhook handler&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What I avoid now:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;❌ Vague messages like &lt;code&gt;"stuff"&lt;/code&gt; or &lt;code&gt;"bugfix"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;❌ Non-descriptive ones like &lt;code&gt;"updated files"&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Since I started following this approach, things have become more efficient — both for me and my team. Less confusion, fewer meetings, and faster progress. 😄&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What’s your approach to writing commit messages?&lt;/strong&gt;&lt;br&gt;
Would love to hear your style or tips — feel free to share in the comments!&lt;/p&gt;

</description>
      <category>git</category>
      <category>commit</category>
      <category>productivity</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
