<?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 talha tarique on Medium]]></title>
        <description><![CDATA[Stories by talha tarique on Medium]]></description>
        <link>https://medium.com/@talhatarique?source=rss-d0501fcd0ff5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CuUelkeBZ-enYKmHFI_xAg.png</url>
            <title>Stories by talha tarique on Medium</title>
            <link>https://medium.com/@talhatarique?source=rss-d0501fcd0ff5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 07:15:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@talhatarique/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[html2canvas: ওয়েবপেজ থেকে স্ক্রিনশট নেওয়ার সহজ উপায়]]></title>
            <link>https://medium.com/@talhatarique/html2canvas-%E0%A6%93%E0%A7%9F%E0%A7%87%E0%A6%AC%E0%A6%AA%E0%A7%87%E0%A6%9C-%E0%A6%A5%E0%A7%87%E0%A6%95%E0%A7%87-%E0%A6%B8%E0%A7%8D%E0%A6%95%E0%A7%8D%E0%A6%B0%E0%A6%BF%E0%A6%A8%E0%A6%B6%E0%A6%9F-%E0%A6%A8%E0%A7%87%E0%A6%93%E0%A7%9F%E0%A6%BE%E0%A6%B0-%E0%A6%B8%E0%A6%B9%E0%A6%9C-%E0%A6%89%E0%A6%AA%E0%A6%BE%E0%A7%9F-6b8e29c63478?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b8e29c63478</guid>
            <category><![CDATA[html2canvas]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Tue, 04 Mar 2025 16:15:25 GMT</pubDate>
            <atom:updated>2025-03-04T16:15:25.098Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TF3u6EXYxF1NNzvyChNzOg.png" /></figure><p>ওয়েব পেজের স্ক্রিনশট নেওয়ার বিভিন্ন ধরনের উপায় আছে, তবে আমার কাছে html2canvas(জাভাস্ক্রিপ্ট লাইব্রেরি) বেশ ভালো লাগে।<br>html2canvas ওয়েবপেজের স্ক্রিনশট নেওয়ার একটি সহজ ও কার্যকর উপায়। এটি ব্যাকএন্ড ছাড়াই ক্লায়েন্ট-সাইডে কাজ করে, যা ওয়েব অ্যাপ্লিকেশনকে আরো ইউজার-ফ্রেন্ডলি ও শক্তিশালী করে তুলতে পারে।<br>এটি HTML DOM থেকে ক্যানভাস বা ইমেজ হিসেবে রূপান্তর করতে সাহায্য করে</p><h4>html2canvas কী এবং কীভাবে কাজ করে?</h4><p>html2canvas হল একটি <strong>JavaScript লাইব্রেরি</strong>, যা HTML DOM (ওয়েবপেজের অংশ) থেকে স্ক্রিনশট নিয়ে <strong>Canvas</strong> বা <strong>ইমেজ (PNG, JPEG ইত্যাদি)</strong> হিসেবে রূপান্তর করতে সাহায্য করে। এটি <strong>ব্যাকএন্ড সার্ভার</strong> ছাড়াই ক্লায়েন্ট-সাইডেই এই কাজটি সম্পন্ন করতে পারে।</p><h4>💡 html2canvas কেন ব্যবহার করবেন?</h4><p>✔ ওয়েবপেজ বা নির্দিষ্ট HTML এলিমেন্টের <strong>স্ক্রিনশট নেওয়া যায়</strong><br>✔ স্ক্রিনশটকে <strong>Canvas বা Image (PNG/JPEG) হিসেবে সংরক্ষণ</strong> করা যায়<br>✔ <strong>ব্যাকএন্ড ছাড়াই ক্লায়েন্ট-সাইডে কাজ করে</strong><br>✔ HTML, CSS, এবং স্টাইলসহ <strong>ডিজাইন করা এলিমেন্টের স্ন্যাপশট নেয়</strong></p><h4>কিভাবে html2canvas ব্যবহার করবেন?</h4><ol><li><strong>প্রথমে লাইব্রেরি ইনস্টল করুন</strong></li></ol><p>আপনি <strong>npm</strong> বা <strong>CDN</strong> দিয়ে এটি ব্যবহার করতে পারেন।</p><p>npm দিয়ে ইনস্টল করতে:</p><pre>npm install html2canvas</pre><p>CDN লিংক ব্যবহার করতে:</p><pre>&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js&quot;&gt;&lt;/script&gt;</pre><p>2. ব্যবহার করার পদ্ধতি (একটি HTML এলিমেন্টের স্ক্রিনশট নেওয়া)</p><p>ধরুন, আমাদের একটি div আছে যার আইডি #capture, আমরা এর স্ক্রিনশট নিতে চাই।</p><h4>HTML:</h4><pre>&lt;div id=&quot;capture&quot;&gt;<br>    &lt;h2&gt;এই এলিমেন্টের স্ক্রিনশট নেওয়া হবে&lt;/h2&gt;<br>&lt;/div&gt;<br>&lt;button onclick=&quot;captureScreenshot()&quot;&gt;স্ক্রিনশট নিন&lt;/button&gt;</pre><p><strong>JavaScript (স্ক্রিনশট নেওয়া এবং দেখানো):</strong></p><pre>function captureScreenshot() {<br>    html2canvas(document.querySelector(&quot;#capture&quot;)).then(canvas =&gt; {<br>        document.body.appendChild(canvas); // স্ক্রিনশটকে পেজে যোগ করা হবে<br>    });<br>}</pre><p>3.স্ক্রিনশট ইমেজ হিসেবে ডাউনলোড করা (PNG ফরম্যাট)</p><p>আমরা চাইলে স্ক্রিনশটকে <strong>PNG/JPEG ফরম্যাটে</strong> ডাউনলোড করতে পারি।</p><pre>function captureAndDownload() {<br>    html2canvas(document.querySelector(&quot;#capture&quot;)).then(canvas =&gt; {<br>        let imgData = canvas.toDataURL(&quot;image/png&quot;);  // PNG ফরম্যাটে রূপান্তর<br>        let link = document.createElement(&quot;a&quot;);  <br>        link.href = imgData;<br>        link.download = &quot;screenshot.png&quot;; // ফাইলের নাম নির্ধারণ<br>        link.click(); // স্বয়ংক্রিয়ভাবে ডাউনলোড শুরু হবে<br>    });<br>}</pre><p>তবে এর কিছু সীমাব্দতা থাকে</p><p>❌ <strong>Cross-origin ইমেজ:</strong> অন্য ওয়েবসাইটের ইমেজ বা ভিডিও স্ক্রিনশটে আসবে না<br>❌ <strong>CSS সীমাবদ্ধতা:</strong> কিছু জটিল CSS (যেমন: filter, clip-path) সঠিকভাবে রেন্ডার নাও হতে পারে<br>❌ <strong>ভিডিও/আইফ্রেম ক্যাপচার হয় না</strong></p><p><strong>html2canvas কোথায় ব্যবহার করতে পারেন?</strong></p><p>✅ ওয়েবসাইটের স্ক্রিনশট নেওয়া<br>✅ রিপোর্ট বা ইনভয়েস ডাউনলোড করা<br>✅ ইউজার জেনারেটেড কনটেন্ট সংরক্ষণ করা<br>✅ ওয়েবপেজ ডিজাইন প্রিভিউ তৈরি করা</p><p>FrontEnd এর এসব জিনিস আমাকে ভালোই লাগে।<br><strong>এর(html2canvas) অল্টারনেটিভ হিসেবে আপনি ব্যবহার করতে পারেন </strong><br>1. dom-to-image<br>2. Puppeteer<br>3. jsPDF<br>4. Canvas2Image<br>5. wkhtmltoimage<br>6. html-to-image</p><p>html2canvas ওয়েবপেজের স্ক্রিনশট নেওয়ার <strong>একটি সহজ ও কার্যকর উপায়</strong>।</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b8e29c63478" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Access Your Localhost Site on Mobile Without Hosting]]></title>
            <link>https://medium.com/@talhatarique/access-your-localhost-site-on-mobile-without-hosting-568b1357a582?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/568b1357a582</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[localhost]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Mon, 03 Mar 2025 09:14:39 GMT</pubDate>
            <atom:updated>2025-03-03T09:16:45.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*hLl-GXx8CLcSnduM7L9eNA.jpeg" /></figure><p>Have you ever imagined how can you access the webpage on your mobile which is present on localhost.I was thinking today about how to access localhost on a mobile device. Is it really possible? Yes, it is possible — I can access my laptop’s localhost on my phone without hosting it.</p><h3>Step 1: Open Visual Studio Code</h3><p>Launch VS Code and make sure your project is ready to run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_amjBQAlZcaqwfQmKMMJg.png" /></figure><h3>Step 2: Start Your Local Server</h3><p>Run your web project on localhost (e.g., npm start, live-server, etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-UmdSK2a-Y0zCy_VjejTg.png" /></figure><h3>Step 3: Open the Terminal in VS Code</h3><p>Navigate to Terminal in the top menu or use Ctrl + ` (backtick) or Ctrl+ j to open it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Vewtf285MkNcV_lfqRukw.png" /></figure><h3>Step 4: Enable Port Forwarding</h3><p>Click on the Ports section in VS Code and select Forward a Port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdf_gFxv8EC1BsZ2Qk1Cwg.png" /></figure><h3>Step 5: Enter Your Port Number</h3><p>Type in the port number your project is running on (e.g., 3000, 5500, etc.) and press Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m90469p9TbNxxp5PvPUMrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZCf_6MD4gsMgnw45MEj0FQ.png" /></figure><h3>Step 6: Get Your Temporary Link</h3><p>Once the port is forwarded, a temporary link will be generated. Copy this link! 📋</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VA6cp89fSVgLFowBPlkllg.png" /></figure><h3>Step 7: Access It on Your Phone!</h3><p>Open the link in your mobile browser, and Bravo! The same webpage running on your PC will now be visible on your phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*PEcHfCHIxCJXBcmVlFna6Q.png" /></figure><p>This link will only work as long as your project is running on localhost on your PC. So, make sure VS Code stays open and the project is active.</p><p>That’s it! You’re now browsing your localhost project on mobile like a pro. 🔥 Did you find this helpful?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=568b1357a582" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ওয়েব ব্রাউজারে শুধুমাত্র HTML, CSS ও JavaScript ব্যবহারে কারণ?]]></title>
            <link>https://medium.com/@talhatarique/%E0%A6%93%E0%A6%AF%E0%A6%BC%E0%A7%87%E0%A6%AC-%E0%A6%AC%E0%A7%8D%E0%A6%B0%E0%A6%BE%E0%A6%89%E0%A6%9C%E0%A6%BE%E0%A6%B0%E0%A7%87-%E0%A6%B6%E0%A7%81%E0%A6%A7%E0%A7%81%E0%A6%AE%E0%A6%BE%E0%A6%A4%E0%A7%8D%E0%A6%B0-html-css-%E0%A6%93-javascript-%E0%A6%AC%E0%A7%8D%E0%A6%AF%E0%A6%AC%E0%A6%B9%E0%A6%BE%E0%A6%B0%E0%A7%87-%E0%A6%95%E0%A6%BE%E0%A6%B0%E0%A6%A3-ead1fdd58144?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ead1fdd58144</guid>
            <category><![CDATA[v8-engine]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 21:22:37 GMT</pubDate>
            <atom:updated>2025-02-11T21:22:37.585Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1V7OKaE_rgC9eTmr1NRww.jpeg" /></figure><p>আমরা যেভাবে ওয়েবকে চিনি, তা তিনটি মূল ভাষার উপর ভিত্তি করে চলে:<strong> HTML, CSS এবং JavaScript</strong>।</p><p>এই প্রযুক্তিগুলো প্রতিটি ওয়েবসাইটের মেরুদণ্ড গঠন করে, যা ডেভেলপারদের ইন্টারঅ্যাক্টিভ ও দৃষ্টিনন্দন ওয়েব অ্যাপ্লিকেশন তৈরি করতে সহায়তা করে।</p><p>কিন্তু আপনি কি কখনো ভেবে দেখেছেন কেন ব্রাউজারগুলো শুধুমাত্র এই তিনটি ভাষাকে সরাসরি সমর্থন করে এবং এর মধ্যে সীমাবদ্ধ রাখে, অন্য কোনো প্রোগ্রামিং ভাষাকে সমর্থন করে না?</p><p>চলুন এর কারণগুলো বিশ্লেষণ করি</p><p>কেন শুধুমাত্র HTML, CSS এবং JavaScript?</p><p><strong>১. ওয়েব স্ট্যান্ডার্ড ও সামঞ্জস্যতা</strong><br>ওয়েব ব্রাউজারগুলো <a href="https://www.w3.org/">W3C</a> (World Wide Web Consortium) এবং <a href="https://whatwg.org/"><strong>WHATWG</strong></a> (Web Hypertext Application Technology Working Group)-এর মতো সংস্থাগুলোর নির্ধারিত মানদণ্ড অনুসরণ করে।</p><p>এই মানদণ্ডগুলো নিশ্চিত করে যে ওয়েবসাইটগুলো সব ব্রাউজারে সঠিকভাবে কাজ করে। HTML, CSS এবং JavaScript বেছে নেওয়া হয়েছে কারণ তারা —</p><p>● স্বতন্ত্র ভূমিকা পালন করে: কাঠামো (HTML), স্টাইলিং (CSS) এবং ইন্টারঅ্যাক্টিভিটি (JavaScript)।<br> ● সর্বজনীনভাবে গৃহীত এবং ওয়েবের জন্য অপ্টিমাইজ করা হয়েছে।</p><p><strong>২. ব্রাউজারে অন্তর্গত ইঞ্জিন</strong></p><p>প্রতিটি ব্রাউজারে এই ভাষাগুলোর জন্য বিশেষভাবে তৈরি ইঞ্জিন থাকে — <br> ● HTML লেআউট ইঞ্জিন দ্বারা পার্স করা হয় (যেমন Chrome-এ <a href="https://www.chromium.org/blink/">Blink</a>)।<br> ● CSS <a href="https://css-tricks.com/how-the-style-engine-generates-classes/#:~:text=The%20Style%20Engine%20is%20responsible,other%20sources%20is%20rather%20important.">স্টাইলিং ইঞ্জিন </a>দ্বারা পরিচালিত হয়।<br> ● JavaScript JavaScript ইঞ্জিন দ্বারা এক্সিকিউট করা হয় (যেমন Chrome-এ <a href="https://v8.dev/">V8</a>, Firefox-এ <a href="https://spidermonkey.dev/">SpiderMonkey</a>)।<br>অন্যান্য প্রোগ্রামিং ভাষার ব্রাউজারে নেটিভ সমর্থন নেই, কারণ তাদের জন্য ইঞ্জিন তৈরি করা জটিল এবং এটি পারফরম্যান্সকে প্রভাবিত করতে পারে।</p><p><strong>৩. নিরাপত্তা</strong><br>JavaScript-এর <a href="https://healeycodes.com/sandboxing-javascript-code">স্যান্ডবক্সড</a> পরিবেশ ব্যবহারকারীর সিস্টেমে অননুমোদিত অ্যাক্সেস প্রতিরোধ করতে ডিজাইন করা হয়েছে।<br>ব্রাউজারে সরাসরি অতিরিক্ত ভাষা যোগ করা হলে তা নিরাপত্তার ঝুঁকি তৈরি করতে পারে, যদি না সেগুলো সঠিকভাবে নিয়ন্ত্রণ করা হয়।</p><p><strong>৪. পারফরম্যান্স অপ্টিমাইজেশন</strong><br>ব্রাউজারগুলো HTML, CSS এবং JavaScript-এর জন্য অত্যন্ত অপ্টিমাইজ করা হয়েছে।<br>অন্য ভাষাকে নেটিভ সমর্থন দিলে পারফরম্যান্সের সমস্যা তৈরি হতে পারে, যা ব্যবহারকারীদের মসৃণ ব্রাউজিং অভিজ্ঞতাকে ব্যাহত করতে পারে।</p><h4>ব্রাউজারে অন্যান্য ভাষা কীভাবে কাজ করে?</h4><p>যদিও ব্রাউজারগুলো মূলত “বিগ থ্রি” ভাষাকে সমর্থন করে, তবুও অন্যান্য প্রোগ্রামিং ভাষা পরোক্ষভাবে ব্যবহার করা যায় সেগুলোকে কিছুটা পরিবর্তন করে, যা ব্রাউজার বুঝতে পারে।</p><p>এখানে দুটি জনপ্রিয় পদ্ধতি রয়েছে —</p><h4>১. JavaScript-এ ট্রান্সপাইলেশন</h4><p>TypeScript বা Dart-এর মতো ভাষাগুলো JavaScript-এ ট্রান্সপাইল (রূপান্তর) করা হয়, যা তাদের ব্রাউজারে নির্বিঘ্নে চালাতে সাহায্য করে।</p><p><strong>উদাহরণ:</strong></p><pre>// TypeScript কোড  <br>let message: string = &quot;Hello, Sam Altman! - From Deepseek Team&quot;;  <br>console.log(message);</pre><p>tsc (TypeScript কম্পাইলার)-এর মাধ্যমে ট্রান্সপাইল করার পর, এটি সাধারণ JavaScript-এ রূপান্তরিত হয় —</p><pre>// ট্রান্সপাইল করা JavaScript  <br>var message = &quot;Hello, Sam Altman! - From Deepseek Team&quot;;  <br>console.log(message);</pre><p>এই JavaScript কোডটি যেকোনো ব্রাউজারে পুরোপুরি কাজ করবে।</p><h4>২. WebAssembly (Wasm)</h4><p>WebAssembly হলো একটি বাইনারি ফরম্যাট, যা আধুনিক ব্রাউজারে JavaScript-এর পাশাপাশি চলে।</p><p>এটি ডেভেলপারদের C, C++, Rust বা এমনকি Python-এর মতো ভাষায় কোড লিখে WebAssembly-তে কম্পাইল করার সুযোগ দেয়।</p><p>এই পদ্ধতি পারফরম্যান্স-নির্ভর অ্যাপ্লিকেশন, যেমন গেম বা ভিডিও এডিটিং টুলের জন্য উপযুক্ত।</p><p><strong>উদাহরণ:</strong></p><pre>// Rust কোড  <br>#[no_mangle]  <br>pub extern &quot;C&quot; fn add_numbers(a: i32, b: i32) -&gt; i32 {  <br>    a + b  <br>}</pre><p>wasm-pack-এর মতো একটি টুল ব্যবহার করে এটি WebAssembly-তে কম্পাইল করার পর, এটি JavaScript থেকে কল করা যেতে পারে —</p><pre>// JavaScript + WebAssembly  <br>fetch(&#39;example.wasm&#39;)  <br>  .then(response =&gt; response.arrayBuffer())  <br>  .then(bytes =&gt; WebAssembly.instantiate(bytes))  <br>  .then(result =&gt; {  <br>    const addNumbers = result.instance.exports.add_numbers;  <br>    console.log(addNumbers(12, 8)); // আউটপুট: 20  <br>  });</pre><h3>HTML, CSS এবং JavaScript-এর আধুনিক ভূমিকা</h3><p>এই অগ্রগতির পরেও HTML, CSS এবং JavaScript অপরিহার্য থেকে গেছে।এমনকি WebAssembly-ও প্রায়শই DOM (Document Object Model)-এর সাথে ইন্টারঅ্যাকশনের জন্য JavaScript-এর উপর নির্ভরশীল।</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ead1fdd58144" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling Special Characters in React Router]]></title>
            <link>https://medium.com/@talhatarique/handling-special-characters-in-react-router-8e25d07987ce?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e25d07987ce</guid>
            <category><![CDATA[special-character]]></category>
            <category><![CDATA[react-router]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[problem-solving]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Tue, 04 Feb 2025 14:20:27 GMT</pubDate>
            <atom:updated>2025-02-04T14:24:08.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*-kcrfG2SXJTo32iRqZHUww.png" /></figure><p>Today, I faced an issue that I hadn’t encountered before. I love facing issues because they are essential for growth and development!</p><p>While working with <strong>React Router</strong>, I noticed that Bengali characters and special symbols (like ?) in URLs were causing problems. My useParams() hook wasn&#39;t able to match the blog titles correctly, resulting in a &quot;Blog not found&quot; error.</p><h3>The Issue:</h3><p>React Router uses <strong>URL encoding</strong>, which means special characters get transformed. So, when passing a title like:</p><p>🔴 &quot;LinkedIn থেকে কি চাকরি পাওয়া সম্ভব?&quot;</p><p>React Router encodes it into something like:</p><p>🔹 &quot;LinkedIn-%E0%A6%A5%E0%A7%87%E0%A6%95%E0%A7%87-%E0%A6%95%E0%A6%BF-%E0%A6%9A%E0%A6%BE%E0%A6%95%E0%A6%B0%E0%A6%BF-%E0%A6%AA%E0%A6%BE%E0%A6%93%E0%A7%9F%E0%A6%BE-%E0%A6%B8%E0%A6%AE%E0%A7%8D%E0%A6%AD%E0%A6%AC&quot;</p><p>Later, useParams() retrieves the encoded string, which doesn&#39;t match the original title.</p><h3>The Solution:</h3><p>1️⃣ <strong>Encode the title before setting the URL:</strong></p><pre>&lt;Link to={`/blog/${encodeURIComponent(blog.title)}`} key={blog.id}&gt;</pre><p>2️⃣ <strong>Decode it when retrieving from </strong><strong>useParams():</strong></p><pre>const { title } = useParams();<br>const decodedTitle = decodeURIComponent(title);<br>const blog = blogs.find((b) =&gt; b.title === decodedTitle);</pre><p>This ensures proper handling of <strong>Bengali characters, special symbols, and other non-ASCII text</strong> in URLs. 🎯</p><p>Every challenge is a learning opportunity! Have you faced similar encoding issues in React Router?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e25d07987ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vite Transformed My Web Development Process]]></title>
            <link>https://medium.com/@talhatarique/vite-transformed-my-web-development-process-71bf0605556a?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/71bf0605556a</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[vitejs]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Wed, 15 Jan 2025 20:28:08 GMT</pubDate>
            <atom:updated>2025-01-15T20:28:08.622Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*AGL5070eJwgMPl5LiiJ8LQ.png" /></figure><p>When I first started making websites, I didn’t pay much attention to the tools like Vite or how to optimize performance. At that time, I was more focused on creating the sites and making sure they worked. However, as my websites grew in size and complexity, I started noticing that things were slowing down. I needed a solution to make my sites faster, both in terms of development and performance.</p><p>That’s when I discovered <a href="https://vite.dev/"><strong>Vite</strong></a>. I decided to give it a try, and I haven’t looked back since. Now, I use Vite for all of my websites, and it has dramatically improved my development process and website speed.</p><h4>Before Vite: The Struggles I Faced</h4><p>When I was using older bundlers like Webpack, here’s what I was dealing with:</p><ul><li><strong>Startup Time</strong>: The development server would take around <strong>5 seconds</strong> to start, which felt slow, especially as my projects got bigger.</li><li><strong>HMR Update Time</strong>: When I made changes to the code, it took <strong>2–5 seconds</strong> for those changes to reflect in the browser, which was frustrating.</li><li><strong>Build Time</strong>: Creating production-ready builds often took about <strong>1 minute or more</strong>, making me wait unnecessarily.</li><li><strong>Bundle Size</strong>: The output files were often quite large, averaging around <strong>1.5MB</strong>, which affected the website’s load time.</li></ul><h4>After Vite: The Transformation</h4><p>Switching to Vite changed everything:</p><ul><li><strong>Startup Time</strong>: With Vite, the server starts in <strong>less than 1 second</strong>, so I can jump straight into development without waiting.</li><li><strong>HMR Update Time</strong>: Changes are now reflected in <strong>100–200ms</strong>, making it feel much more responsive.</li><li><strong>Build Time</strong>: Vite reduced my build time to <strong>around 15 seconds</strong>, making production builds much faster.</li><li><strong>Bundle Size</strong>: The final output is more optimized, with bundle sizes reduced to around <strong>1.2MB</strong>, which improves my websites’ load times.</li></ul><h4>How Vite Works</h4><p>Vite works by taking advantage of modern technologies like <strong>native ES modules</strong> and <strong>esbuild</strong>, which makes it faster than traditional bundlers. During development, it serves files directly to the browser, without the need to bundle everything upfront. For production, it uses <strong>Rollup</strong> to create optimized builds that are smaller and faster.</p><h3>Vite: A Faster, Simpler Tool for Modern Web Development</h3><p>If you’ve ever experienced slow startup times, long build processes, or sluggish updates during web development, then Vite might be the solution you need. Vite is a modern build tool that prioritizes speed and simplicity, helping you create faster and more efficient websites and applications.</p><h4>Before Using Vite</h4><p>When using traditional bundlers like Webpack or Parcel, you might face common challenges:</p><ul><li><strong>Startup Time</strong>: The development server takes around <strong>5 seconds</strong> to start.</li><li><strong>HMR (Hot Module Replacement) Update Time</strong>: Changes in your code take <strong>2–5 seconds</strong> to appear in the browser.</li><li><strong>Build Time</strong>: Creating a production-ready build can take around <strong>1 minute or more</strong>.</li><li><strong>Bundle Size</strong>: The output files are often large, averaging around <strong>1.5MB</strong>.</li></ul><p>These delays can slow down your workflow and make the development experience frustrating, especially for large projects.</p><h4>How Vite Changes the Game</h4><p>Vite offers significant improvements:</p><ul><li><strong>Startup Time</strong>: The development server starts in less than <strong>1 second</strong>, no matter how big your project is.</li><li><strong>HMR Update Time</strong>: Changes to your code reflect almost instantly, taking just <strong>100ms to 200ms</strong>.</li><li><strong>Build Time</strong>: Production builds are highly optimized and complete in about <strong>15 seconds</strong>.</li><li><strong>Bundle Size</strong>: With better optimizations, the final output is smaller, around <strong>1.2MB</strong>.</li></ul><h4>Why Vite is Faster</h4><ul><li><strong>Native ES Modules</strong>: Vite uses modern browsers’ ability to load JavaScript modules directly, skipping the bundling process during development.</li><li><strong>esbuild</strong>: For dependency pre-bundling, Vite uses esbuild, which is <strong>10–100 times faster</strong> than traditional JavaScript bundlers.</li><li><strong>Rollup</strong>: For production builds, Vite uses Rollup, ensuring highly optimized and smaller bundles.</li><li><strong>Tree Shaking</strong>: It automatically removes unused code to keep the final build clean and efficient.</li></ul><h4>How to Install and Set Up Vite</h4><ol><li><strong>Install Vite</strong><br>To create a new project with Vite, run:</li></ol><pre>npm create vite@latest</pre><p>Follow the prompts to choose your framework (React, Vue, etc.) and the project template.</p><p>If you’re migrating an existing project, install Vite:</p><pre>npm install vite --save-dev</pre><p><strong>2. Update </strong><strong>package.json</strong><br>Add or replace the scripts in your package.json file:</p><pre>&quot;scripts&quot;: {<br>  &quot;dev&quot;: &quot;vite&quot;,<br>  &quot;build&quot;: &quot;vite build&quot;,<br>  &quot;preview&quot;: &quot;vite preview&quot;<br>}</pre><p><strong>3. Configure Vite (Optional)</strong><br>For custom configurations, create a vite.config.js file:</p><pre>import { defineConfig } from &#39;vite&#39;;<br>import react from &#39;@vitejs/plugin-react&#39;;<br><br>export default defineConfig({<br>  plugins: [react()],<br>});</pre><p><strong>4. Adjust Your Files</strong></p><ul><li>Make sure your index.html is at the project root.</li><li>Update your &lt;script&gt; tags to use type=&quot;module&quot;</li></ul><pre>&lt;script type=&quot;module&quot; src=&quot;/main.js&quot;&gt;&lt;/script&gt;</pre><p><strong>5.Remove Old Bundler Dependencies</strong><br>If you’re migrating, uninstall tools like Webpack, Babel, or Parcel:</p><pre>npm uninstall webpack babel-loader parcel</pre><p><strong>6.Start the Development Server</strong><br>Run:</p><pre>npm run dev</pre><p>Vite will instantly start the server and your application will be ready to develop.</p><p><strong>7.Build for Production</strong><br>To create a production build, use:</p><pre>npm run build</pre><p><strong>8.Preview the Build</strong><br>Test your production build locally with:</p><pre>npm run preview</pre><h4>Why I Recommend Vite</h4><p>When I started using Vite, I saw an immediate improvement in both speed and ease of development. It’s fast, reliable, and helps optimize my projects without requiring a lot of configuration. Whether you’re starting fresh or have an existing website, Vite is a great choice to improve both your development workflow and website performance.</p><p>Now, all my websites run on Vite, and I couldn’t be happier with the results. If you’re looking to make your websites faster and your development process smoother, I highly recommend giving Vite a try.</p><p>You can learn more and get started on the <a href="https://vitejs.dev/">Vite Official Website</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71bf0605556a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speed Up Your Tailwind CSS Workflow with Shortcuts]]></title>
            <link>https://medium.com/@talhatarique/speed-up-your-tailwind-css-workflow-with-shortcuts-988e81ae0cdf?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/988e81ae0cdf</guid>
            <category><![CDATA[tricks]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Fri, 03 Jan 2025 07:10:04 GMT</pubDate>
            <atom:updated>2025-01-03T07:10:04.144Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b4lfHp3eIt3ReRzjzkwFlQ.png" /></figure><p>A powerful, utility-first CSS framework that makes crafting modern, responsive designs fast and efficient. Tailwind CSS empowers developers with prebuilt classes, removing the need for writing custom CSS while maintaining full design flexibility.</p><p>Here are some <strong>lesser-known Emmet shortcuts</strong> and advanced tricks specifically tailored for <strong>Tailwind CSS</strong> that can supercharge your productivity</p><h3>1. Self-Closing Tags</h3><p>Use / at the end of an element to create self-closing tags with Tailwind classes.</p><ul><li>Example:</li></ul><pre>img.w-full.h-auto/</pre><p>Expands to:</p><pre>&lt;img class=&quot;w-full h-auto&quot; /&gt;</pre><h3>2. Sibling Elements</h3><ul><li>Use + to create sibling elements:</li><li>Example:</li></ul><pre>div.bg-blue-500.p-4+div.bg-green-500.p-4</pre><p>Expands to:</p><pre>&lt;div class=&quot;bg-blue-500 p-4&quot;&gt;&lt;/div&gt;<br>&lt;div class=&quot;bg-green-500 p-4&quot;&gt;&lt;/div&gt;</pre><h3>3. Custom Responsive Classes</h3><p>Apply responsive breakpoints inline with Tailwind’s class structure.</p><ul><li>Example:</li></ul><pre>div.bg-red-500.md:bg-green-500.lg:bg-blue-500</pre><p>Expands to:</p><pre>&lt;div class=&quot;bg-red-500 md:bg-green-500 lg:bg-blue-500&quot;&gt;&lt;/div&gt;</pre><h3>4. Combining Arbitrary Values</h3><p>Use square brackets [] in Emmet for custom values, just like in Tailwind.</p><ul><li>Example:</li></ul><pre>div.w-[75%].h-[50vh].p-[20px]</pre><p>Expands to:</p><pre>&lt;div class=&quot;w-[75%] h-[50vh] p-[20px]&quot;&gt;&lt;/div&gt;</pre><h3>5. Grouping</h3><ul><li>Use parentheses () to group elements:</li><li>Example:</li></ul><pre>div.flex&gt;(div.bg-gray-200.p-2+div.bg-gray-300.p-2)</pre><p>Expands to:</p><pre>&lt;div class=&quot;flex&quot;&gt;<br>    &lt;div class=&quot;bg-gray-200 p-2&quot;&gt;&lt;/div&gt;<br>    &lt;div class=&quot;bg-gray-300 p-2&quot;&gt;&lt;/div&gt;<br>&lt;/div&gt;</pre><h3>6. Adding IDs and Classes</h3><ul><li>Use # for IDs and . for classes:</li><li>Example:</li></ul><pre>div#header.bg-blue-500.text-center</pre><p>Expands to:</p><pre>&lt;div id=&quot;header&quot; class=&quot;bg-blue-500 text-center&quot;&gt;&lt;/div&gt;</pre><h3>7. Inline Animations</h3><p>Combine Tailwind’s animation utilities inline.</p><ul><li>Example:</li></ul><pre>div.animate-spin.duration-500.ease-in-out</pre><p>Expands to:</p><pre>&lt;div class=&quot;animate-spin duration-500 ease-in-out&quot;&gt;&lt;/div&gt;</pre><h3>8. Placeholder Content</h3><ul><li>Use lorem for dummy text and img for placeholder images:</li><li>Example:</li></ul><pre>div.bg-white.p-4&gt;p.lorem</pre><p>Expands to:</p><pre>&lt;div class=&quot;bg-white p-4&quot;&gt;<br>    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/p&gt;<br>&lt;/div&gt;</pre><h3>9. Nesting</h3><ul><li>Use &gt; to create nested structures:</li><li>Example:</li></ul><pre>div.flex&gt;div.bg-red-500.p-4&gt;p.text-white</pre><p>Expands to:</p><pre>&lt;div class=&quot;flex&quot;&gt;<br>    &lt;div class=&quot;bg-red-500 p-4&quot;&gt;<br>        &lt;p class=&quot;text-white&quot;&gt;&lt;/p&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><h3>10. Multiplication</h3><ul><li>Use * to create multiple similar elements:</li><li>Example:</li></ul><pre>ul&gt;li.bg-gray-100.p-2*3</pre><p>Expands to:</p><pre>&lt;ul&gt;<br>    &lt;li class=&quot;bg-gray-100 p-2&quot;&gt;&lt;/li&gt;<br>    &lt;li class=&quot;bg-gray-100 p-2&quot;&gt;&lt;/li&gt;<br>    &lt;li class=&quot;bg-gray-100 p-2&quot;&gt;&lt;/li&gt;<br>&lt;/ul&gt;</pre><h3>11. Advanced Combinations</h3><ul><li>Combine all these techniques for complex layouts:</li><li>Example:</li></ul><pre>section.bg-gray-100.py-10&gt;div.container.mx-auto&gt;div.grid.grid-cols-3.gap-4&gt;(div.bg-blue-200.p-4*3)</pre><pre>&lt;section class=&quot;bg-gray-100 py-10&quot;&gt;<br>    &lt;div class=&quot;container mx-auto&quot;&gt;<br>        &lt;div class=&quot;grid grid-cols-3 gap-4&quot;&gt;<br>            &lt;div class=&quot;bg-blue-200 p-4&quot;&gt;&lt;/div&gt;<br>            &lt;div class=&quot;bg-blue-200 p-4&quot;&gt;&lt;/div&gt;<br>            &lt;div class=&quot;bg-blue-200 p-4&quot;&gt;&lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/section&gt;</pre><p>These shortcuts save you time, streamline your workflow, and make it easier to prototype and develop complex layouts efficiently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=988e81ae0cdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[টপ ২০ বাংলা চ্যাটজিপিটি প্রম্পট: স্মার্ট সমাধানের সেরা পথ]]></title>
            <link>https://medium.com/@talhatarique/%E0%A6%9F%E0%A6%AA-%E0%A7%A8%E0%A7%A6-%E0%A6%AC%E0%A6%BE%E0%A6%82%E0%A6%B2%E0%A6%BE-%E0%A6%9A%E0%A7%8D%E0%A6%AF%E0%A6%BE%E0%A6%9F%E0%A6%9C%E0%A6%BF%E0%A6%AA%E0%A6%BF%E0%A6%9F%E0%A6%BF-%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A6%AE%E0%A7%8D%E0%A6%AA%E0%A6%9F-%E0%A6%B8%E0%A7%8D%E0%A6%AE%E0%A6%BE%E0%A6%B0%E0%A7%8D%E0%A6%9F-%E0%A6%B8%E0%A6%AE%E0%A6%BE%E0%A6%A7%E0%A6%BE%E0%A6%A8%E0%A7%87%E0%A6%B0-%E0%A6%B8%E0%A7%87%E0%A6%B0%E0%A6%BE-%E0%A6%AA%E0%A6%A5-4102ab8018cb?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4102ab8018cb</guid>
            <category><![CDATA[prompt]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Sat, 14 Dec 2024 12:58:30 GMT</pubDate>
            <atom:updated>2024-12-14T12:58:30.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNK5wEx3OAtKhkZa73JkAA.png" /></figure><p>চ্যাটজিপিটি কেবলমাত্র একটি কৃত্রিম বুদ্ধিমত্তা নয়, এটি আমাদের জীবনে সময় সাশ্রয়, জ্ঞান আহরণ, দক্ষতা উন্নয়ন, এবং সৃজনশীলতায় অনুপ্রেরণার অবিশ্বাস্য উৎস।</p><p>এই নিবন্ধে আমরা ২০টি সেরা এবং কার্যকরী বাংলা চ্যাটজিপিটি প্রম্পট উপস্থাপন করব, যা আপনার কাজ, পড়াশোনা, ব্যক্তিগত উন্নয়ন এবং মজাদার সময়ে সহায়তা করবে। প্রতিটি প্রম্পট সংক্ষিপ্ত ব্যাখ্যা এবং বাস্তব উদাহরণসহ সাজানো হয়েছে, যাতে আপনি সহজেই আপনার প্রয়োজনীয় সমাধান পেতে পারেন।</p><p>Here’s a Bengali version of the prompts you shared to help users effectively use ChatGPT:</p><h3>সাধারণ সহায়তা</h3><p><strong>1.“আপনি কি আমাকে [বিষয় বা নিবন্ধ] এর মূল বিষয়বস্তু সংক্ষেপে বলতে পারেন?”</strong></p><ul><li>উদাহরণ: “আপনি কি আমাকে জলবায়ু পরিবর্তন সম্পর্কিত নিবন্ধটির মূল বিষয়গুলো সংক্ষেপে বলতে পারেন?”</li><li><strong>ব্যাখ্যা:</strong> এটি দীর্ঘ পাঠকে সংক্ষিপ্ত আকারে জানার সুযোগ দেয়, মূল ধারণাগুলি সহজে বোঝা যায়।</li></ul><p><strong>2. “আমি [বিশেষ বিষয়] সম্পর্কে কোন গুরুত্বপূর্ণ বিষয়গুলো জানা উচিত?”</strong></p><ul><li>উদাহরণ: “মেশিন লার্নিং সম্পর্কে কোন গুরুত্বপূর্ণ বিষয়গুলো জানা উচিত?”</li><li><strong>ব্যাখ্যা:</strong> এটি দ্রুত বিষয়ে একটি সংক্ষিপ্ত ধারণা বা রিফ্রেশারের জন্য উপযুক্ত।</li></ul><p><strong>3.“আপনি কি [ধারণা] সহজ ভাষায় ব্যাখ্যা করতে পারবেন?”</strong></p><ul><li>উদাহরণ: “ব্লকচেইন সহজ ভাষায় ব্যাখ্যা করতে পারবেন?”</li><li><strong>ব্যাখ্যা:</strong> এটি জটিল ধারণাগুলোকে সহজ ভাষায় ব্যাখ্যা করতে সাহায্য করে।</li></ul><p><strong>4.“মানুষ সাধারণত [বিষয়] সম্পর্কে কোন কোন প্রশ্ন করে?”</strong></p><ul><li>উদাহরণ: “মানুষ সাধারণত ব্যক্তিগত অর্থনীতি সম্পর্কে কোন প্রশ্নগুলো করে?”</li><li><strong>ব্যাখ্যা:</strong> এটি সাধারণ প্রশ্নগুলো জানতে সাহায্য করে, যা লেখালেখি বা আলোচনার জন্য উপযোগী।</li></ul><h3>লেখালেখি এবং সৃজনশীলতা</h3><p><strong>5.“আপনি কি [থিম বা চরিত্র] নিয়ে একটি সৃজনশীল গল্প তৈরি করতে পারেন?”</strong></p><ul><li>উদাহরণ: “আপনি কি একজন গোয়েন্দা সম্পর্কে একটি গল্প তৈরি করতে পারেন, যে প্রযুক্তি ব্যবহার করে অপরাধ সমাধান করে?”</li><li><strong>ব্যাখ্যা:</strong> এটি গল্প রচনার অনুপ্রেরণা দেয়, চর্চা বা বিনোদনের জন্য উপযোগী।</li></ul><p><strong>6.“আমাকে [প্রকল্প বা কন্টেন্টের ধরন] এর জন্য কিছু আইডিয়া ভাবতে সাহায্য করুন।”</strong></p><ul><li>উদাহরণ: “আমাকে স্বাস্থ্যকর খাদ্য নিয়ে একটি ব্লগ পোস্টের জন্য কিছু আইডিয়া দিতে পারেন?”</li><li><strong>ব্যাখ্যা:</strong> এটি বিভিন্ন আইডিয়া জোগাড় করতে সাহায্য করে, যা লেখালেখির প্রাথমিক দিক হিসেবে কাজে লাগে।</li></ul><p><strong>7.“আপনি কি [নির্দিষ্ট বিষয়] নিয়ে একটি কবিতা লিখতে পারেন?”</strong></p><ul><li>উদাহরণ: “আপনি কি শরতের উপর একটি কবিতা লিখতে পারেন?”</li><li><strong>ব্যাখ্যা:</strong> এটি সৃজনশীল প্রকাশের জন্য বা প্রকল্পে কাব্যিক ছোঁয়া দিতে সহায়ক।</li></ul><p><strong>8.“আমার [বিষয়] নিয়ে একটি আকর্ষণীয় শিরোনাম দরকার।”</strong></p><ul><li>উদাহরণ: “আমার ধ্যানের উপকারিতা নিয়ে একটি আকর্ষণীয় শিরোনাম দরকার।”</li><li><strong>ব্যাখ্যা:</strong> আকর্ষণীয় শিরোনাম পাঠকদের আকৃষ্ট করতে সহায়ক।</li></ul><h3>শিক্ষা এবং অধ্যয়ন</h3><p><strong>9.“আমি [দক্ষতা বা বিষয়] শিখতে সেরা উপকরণগুলো কী?”</strong></p><ul><li>উদাহরণ: “পাইথন প্রোগ্রামিং শিখতে সেরা উপকরণগুলো কী?”</li><li><strong>ব্যাখ্যা:</strong> এটি মানসম্মত শিক্ষণ উপকরণের সন্ধান দেয়।</li></ul><p><strong>10.“আমি [বিষয় বা দক্ষতা] আয়ত্ত করার জন্য একটি অধ্যয়ন পরিকল্পনা করতে সাহায্য করুন।”</strong></p><ul><li>উদাহরণ: “আমি ছয় মাসে স্প্যানিশ আয়ত্ত করার জন্য একটি পরিকল্পনা চাই।”</li><li><strong>ব্যাখ্যা:</strong> এটি একটি সংগঠিত পরিকল্পনা তৈরি করতে সহায়ক, যা অধ্যয়নে সাহায্য করে।</li></ul><p><strong>11.“আমাকে [ধারণা A] এবং [ধারণা B] এর প্রধান পার্থক্যগুলো ব্যাখ্যা করুন।”</strong></p><ul><li>উদাহরণ: “নবায়নযোগ্য এবং অ-নবায়নযোগ্য জ্বালানি মধ্যে পার্থক্যগুলো ব্যাখ্যা করুন।”</li><li><strong>ব্যাখ্যা:</strong> এটি তুলনামূলক ধারণা বুঝতে সহায়ক।</li></ul><p><strong>12.“আমি [বিশেষ বিষয়] নিয়ে একটি সাক্ষাৎকারের জন্য প্রস্তুতি নিতে সাহায্য করুন।”</strong></p><ul><li>উদাহরণ: “ডিজিটাল মার্কেটিং নিয়ে একটি সাক্ষাৎকারের জন্য প্রস্তুতি নিতে সাহায্য করুন।”</li><li><strong>ব্যাখ্যা:</strong> এটি সাধারণ প্রশ্ন এবং টিপস দেয়, যা চর্চার জন্য সহায়ক।</li></ul><h3>সমস্যা সমাধান</h3><p><strong>13.“আমি [সমস্যার বর্ণনা] নিয়ে সমস্যায় পড়েছি। কিছু সম্ভাব্য সমাধান কী হতে পারে?”</strong></p><ul><li>উদাহরণ: “আমি সময়ক্ষেপণের সমস্যায় পড়েছি। কিছু সমাধান কী হতে পারে?”</li><li><strong>ব্যাখ্যা:</strong> এটি আপনার নির্দিষ্ট সমস্যার জন্য ব্যবহারিক পরামর্শ প্রদান করে।</li></ul><p><strong>14.“আমি আমার [দক্ষতা বা পরিস্থিতি] উন্নত করতে কী কী পদক্ষেপ নিতে পারি?”</strong></p><ul><li>উদাহরণ: “আমি আমার বক্তৃতার দক্ষতা উন্নত করতে কী পদক্ষেপ নিতে পারি?”</li><li><strong>ব্যাখ্যা:</strong> এটি কার্যকর কৌশল সরবরাহ করে, যা দক্ষতা বাড়াতে সহায়ক।</li></ul><p><strong>15.“আপনি কি আমাকে এই ডেটা বিশ্লেষণে সাহায্য করতে পারবেন?”</strong></p><ul><li>উদাহরণ: “গত কোয়ার্টারের এই বিক্রয় ডেটা বিশ্লেষণ করতে সাহায্য করুন।”</li><li><strong>ব্যাখ্যা:</strong> এটি ডেটা থেকে অন্তর্দৃষ্টি বা প্রবণতা বুঝতে সহায়ক।</li></ul><h3>ব্যক্তিগত উন্নয়ন</h3><p><strong>16“কিছু কার্যকর সময় ব্যবস্থাপনার কৌশল কী?”</strong></p><ul><li>উদাহরণ: “শিক্ষার্থীদের জন্য কিছু কার্যকর সময় ব্যবস্থাপনার কৌশল কী?”</li><li><strong>ব্যাখ্যা:</strong> এটি আপনার প্রোডাক্টিভিটি বাড়ানোর জন্য কৌশল দেয়।</li></ul><p><strong>17.“আমি [লক্ষ্য বা প্রকল্প] এ কাজ করার সময় কীভাবে অনুপ্রাণিত থাকতে পারি?”</strong></p><ul><li>উদাহরণ: “আমার ফিটনেস লক্ষ্য পূরণের সময় কীভাবে অনুপ্রাণিত থাকতে পারি?”</li><li><strong>ব্যাখ্যা:</strong> এটি অনুপ্রেরণা এবং মনোযোগ ধরে রাখার টিপস দেয়।</li></ul><p><strong>18.“ব্যক্তিগত লক্ষ্য স্থাপন এবং অর্জনের সেরা পদ্ধতিগুলো কী?”</strong></p><ul><li>উদাহরণ: “২০২৪ সালে ব্যক্তিগত লক্ষ্য স্থাপন এবং অর্জনের সেরা পদ্ধতিগুলো কী?”</li><li><strong>ব্যাখ্যা:</strong> এটি সঠিক কৌশলে লক্ষ্য স্থাপনে সহায়ক</li></ul><h3>বিনোদন</h3><p><strong>19.“আমার [ঘরানা বা থিম] এর প্রতি আগ্রহের ভিত্তিতে কিছু মুভি বা বই সুপারিশ করতে পারেন?”</strong></p><ul><li>উদাহরণ: “আমার সায়েন্স ফিকশন ঘরানা পছন্দের জন্য কিছু মুভি বা বই সুপারিশ করুন।”</li><li><strong>ব্যাখ্যা:</strong> এটি আপনার পছন্দ অনুসারে বিনোদনের জন্য নতুন অপশন খুঁজে দেয়।</li></ul><p><strong>20.“চলুন একটি ট্রিভিয়া গেম খেলি! আমাকে [বিষয় বা ক্যাটাগরি] নিয়ে প্রশ্ন করুন।”</strong></p><ul><li>উদাহরণ: “চলুন একটি ট্রিভিয়া গেম খেলি! আমাকে বিশ্ব ইতিহাস নিয়ে প্রশ্ন করুন।”</li><li><strong>ব্যাখ্যা:</strong> এটি মজার ও ইন্টারেক্টিভ শিক্ষার মাধ্যমে আপনার জ্ঞান যাচাই করতে সাহায্য করে।</li></ul><p>এই বাংলা প্রম্পটগুলো ChatGPT ব্যবহারকারীদের বিভিন্ন কাজে সহায়তা করবে।</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4102ab8018cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hidden Gems of Tailwind CSS]]></title>
            <link>https://medium.com/@talhatarique/hidden-gems-of-tailwind-css-f4ddd589472c?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4ddd589472c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tailwind]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Mon, 02 Dec 2024 17:21:46 GMT</pubDate>
            <atom:updated>2024-12-02T17:21:46.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BMua58XSBssOIpP4FLWBHQ.png" /></figure><p>When I first started using Tailwind CSS, I thought it was just a collection of utility classes to speed up my styling process. I used it for basic layouts and simple designs, but that was just scratching the surface. As I spent more time with it, I began to realize that Tailwind is a treasure trove of powerful features waiting to be discovered.</p><p>Day by day, I found myself learning new tricks, experimenting with advanced utilities, and exploring creative possibilities that I didn’t even know existed. From custom configurations to responsive design magic, Tailwind became more than just a tool — it became a creative partner in my projects.</p><p>What excites me the most is how Tailwind adapts to my needs, whether it’s creating stunning animations, managing complex layouts, or simply fine-tuning a small detail to perfection. It’s like every time I dive into it, I unlock a new level of design efficiency.</p><p>In this post, I want to take you on a journey through some of the incredible things I’ve discovered while exploring Tailwind CSS. Whether you’re a beginner or an experienced developer, there’s always something new to learn with this framework.</p><h4>1. Value Support</h4><p>Tailwind lets you use arbitrary values directly within square brackets when the predefined options don’t fit your needs. This is perfect for custom sizes, colors, or transformations.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;w-[47%] h-[300px] bg-[#1da1f2]&quot;&gt;<br>  Custom width and Twitter brand color<br>&lt;/div&gt;</pre><h4>2. Group Hover</h4><p>Ever wanted to change the style of sibling elements when hovering over a parent? Tailwind’s group and group-hover classes make it effortless.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;group&quot;&gt;<br>  &lt;button class=&quot;bg-gray-300 group-hover:bg-blue-500 p-4&quot;&gt;<br>    Hover Me<br>  &lt;/button&gt;<br>  &lt;p class=&quot;opacity-0 group-hover:opacity-100&quot;&gt;<br>    Now you see me!<br>  &lt;/p&gt;<br>&lt;/div&gt;</pre><h4>3. Aspect Ratio</h4><p>Handling responsive media elements has never been easier. The aspect utilities ensure consistent aspect ratios for images, videos, and more.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;aspect-w-16 aspect-h-9&quot;&gt;<br>  &lt;iframe src=&quot;https://www.youtube.com/embed/dQw4w9WgXcQ&quot; class=&quot;w-full h-full&quot;&gt;&lt;/iframe&gt;<br>&lt;/div&gt;</pre><h4>4. Scroll Snap Utilities</h4><p>Create smooth, user-friendly scroll experiences using Tailwind’s scroll snap utilities. Perfect for carousels or horizontal scrolling sections.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;snap-x snap-mandatory overflow-x-scroll flex space-x-4&quot;&gt;<br>  &lt;div class=&quot;snap-center w-48 h-48 bg-red-500&quot;&gt;Item 1&lt;/div&gt;<br>  &lt;div class=&quot;snap-center w-48 h-48 bg-green-500&quot;&gt;Item 2&lt;/div&gt;<br>  &lt;div class=&quot;snap-center w-48 h-48 bg-blue-500&quot;&gt;Item 3&lt;/div&gt;<br>&lt;/div&gt;</pre><h4>5. Placeholder Styling</h4><p>Customize the appearance of placeholders with placeholder utilities, making even form designs unique.</p><p><strong>Example:</strong></p><pre>&lt;input <br>  type=&quot;text&quot; <br>  class=&quot;border p-2 placeholder-gray-400 placeholder-italic placeholder:text-lg&quot; <br>  placeholder=&quot;Type something cool...&quot;<br>/&gt;</pre><h4>6. First and Last Child Styling</h4><p>With first: and last: pseudo-class utilities, you can style the first or last child of a group of elements without additional CSS.</p><p><strong>Example:</strong></p><pre>&lt;ul&gt;<br>  &lt;li class=&quot;first:text-green-500 last:text-red-500&quot;&gt;First Item&lt;/li&gt;<br>  &lt;li&gt;Middle Item&lt;/li&gt;<br>  &lt;li&gt;Last Item&lt;/li&gt;<br>&lt;/ul&gt;</pre><h4>7. Even and Odd Child Styling</h4><p>Style alternating children in a list or grid using even: and odd: utilities.</p><p><strong>Example:</strong></p><pre>&lt;ul&gt;<br>  &lt;li class=&quot;odd:bg-gray-100 even:bg-gray-300&quot;&gt;Item 1&lt;/li&gt;<br>  &lt;li class=&quot;odd:bg-gray-100 even:bg-gray-300&quot;&gt;Item 2&lt;/li&gt;<br>  &lt;li class=&quot;odd:bg-gray-100 even:bg-gray-300&quot;&gt;Item 3&lt;/li&gt;<br>&lt;/ul&gt;</pre><h4>8. Custom Scrollbars</h4><p>Tailwind provides utilities to style scrollbars, improving accessibility and aesthetics.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;h-64 overflow-y-scroll scrollbar-thin scrollbar-thumb-gray-500 scrollbar-track-gray-100&quot;&gt;<br>  &lt;p&gt;Scrollable content with custom scrollbars.&lt;/p&gt;<br>  &lt;p&gt;More content...&lt;/p&gt;<br>&lt;/div&gt;</pre><h4>9. Arbitrary Variants</h4><p>Define custom variants using the @layer utilities feature to handle state-based styles creatively.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;[&amp;:hover]:bg-blue-600 p-4&quot;&gt;<br>  Hover to change color<br>&lt;/div&gt;</pre><h4>10. Conditional Transitions</h4><p>Use transition-* utilities to control specific parts of an element&#39;s state change for more granular animations.</p><p><strong>Example:</strong></p><pre>&lt;button class=&quot;bg-red-500 text-white p-4 transition-transform hover:scale-110&quot;&gt;<br>  Hover for a Smooth Zoom<br>&lt;/button&gt;</pre><h4>11. Intuitive Customization</h4><p>Tailwind’s configuration file (tailwind.config.js) makes customization a breeze. Want to add new colors or spacing values? Just extend the default theme.</p><p><strong>Example:</strong></p><pre>module.exports = {<br>  theme: {<br>    extend: {<br>      colors: {<br>        brand: &#39;#5B21B6&#39;,<br>      },<br>    },<br>  },<br>}</pre><h4>12. Filter Utilities</h4><p>Tailwind includes CSS filter utilities for adding creative effects like blur, brightness, and grayscale, directly in your classes.</p><p><strong>Example:</strong></p><pre>&lt;img src=&quot;talha.jpg&quot; class=&quot;filter grayscale hover:brightness-110&quot;&gt;</pre><h4>13. Backdrop Utilities</h4><p>Design striking glassmorphism effects with backdrop filter utilities, such as backdrop-blur or backdrop-brightness.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;bg-white/30 backdrop-blur-lg p-4 rounded&quot;&gt;<br>  Frosted Glass Effect<br>&lt;/div&gt;</pre><h4>14. Ring Utilities</h4><p>Add focus styles or outlines to elements with the ring utilities for accessibility and aesthetics.</p><p><strong>Example:</strong></p><pre>&lt;button class=&quot;ring ring-offset-2 ring-blue-500 focus:ring-red-500&quot;&gt;<br>  Focus Me<br>&lt;/button&gt;</pre><h4>15. Keyframe Animations</h4><p>You can define custom animations and use them as arbitrary values.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;animate-[wiggle_1s_ease-in-out_infinite]&quot;&gt;<br>  Custom Animation<br>&lt;/div&gt;<br><br>&lt;style&gt;<br>  @keyframes wiggle {<br>    0%, 100% { transform: rotate(-3deg); }<br>    50% { transform: rotate(3deg); }<br>  }<br>&lt;/style&gt;</pre><h4>16. Peer Variant</h4><p>Tailwind’s peer and peer-* utilities allow you to style sibling elements based on the state of another element.</p><p><strong>Example:</strong></p><pre>&lt;label class=&quot;peer&quot;&gt;<br>  &lt;input type=&quot;checkbox&quot; class=&quot;peer hidden&quot;&gt;<br>  &lt;span class=&quot;peer-checked:text-blue-500&quot;&gt;Check Me!&lt;/span&gt;<br>&lt;/label&gt;</pre><h4>17. Line Clamp</h4><p>Control how many lines of text are displayed using the line-clamp utilities, ideal for truncating long content.</p><p><strong>Example:</strong></p><pre>&lt;p class=&quot;line-clamp-3&quot;&gt;<br>  This is a very long paragraph that will only display up to three lines, truncating the rest with an ellipsis.<br>&lt;/p&gt;</pre><h4>18. Arbitrary Grid Template Areas</h4><p>Tailwind allows you to define grid template areas with custom configurations.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;grid grid-rows-[auto_1fr_auto] grid-cols-[1fr_2fr] gap-4&quot;&gt;<br>  &lt;div class=&quot;row-span-2 col-start-1 bg-blue-300&quot;&gt;Area 1&lt;/div&gt;<br>  &lt;div class=&quot;col-start-2 bg-green-300&quot;&gt;Area 2&lt;/div&gt;<br>&lt;/div&gt;</pre><h4>19. Arbitrary Z-Index Values</h4><p>Avoid predefined layers by using arbitrary values for precise stacking control.</p><p><strong>Example:</strong></p><pre>&lt;div class=&quot;z-[999]&quot;&gt;<br>  High-priority content<br>&lt;/div&gt;</pre><p>Tailwind CSS is far more than just a utility-first framework; it’s a toolbox full of advanced features that make designing and coding faster, easier, and more fun. Try these hidden gems in your next project, and let your creativity flow.</p><p>What’s your favorite lesser-known Tailwind feature?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4ddd589472c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 Git Tips to Avoid Beginner Mistakes]]></title>
            <link>https://medium.com/@talhatarique/top-10-git-tips-to-avoid-beginner-mistakes-10853f076e58?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/10853f076e58</guid>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Thu, 28 Nov 2024 16:14:44 GMT</pubDate>
            <atom:updated>2024-11-28T16:16:28.468Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6K8GVIMgNi-4gaPYNMf0A.png" /></figure><p>Git is a powerful yet complex tool for version control. When I started, I stumbled through it, making mistakes and learning the hard way. Over time, I discovered essential commands, concepts, and best practices that I wish I’d known earlier. Here’s a breakdown of <strong>10 Git lessons</strong> every beginner should know, explained step-by-step for easy understanding.</p><h3>1. <strong>Undo the Last Commit Without Losing Changes</strong></h3><p>Accidentally committed changes too soon? You can undo the last commit without losing your work using git reset. This command is helpful if you need to amend your commit message or make edits before re-committing.</p><p><strong>Example</strong></p><pre>git commit -m &quot;wrong message&quot;  <br>git reset --soft HEAD~1  # Keeps changes in the staging area  <br>git commit -m &quot;correct message&quot;  # Re-commit with the right message</pre><h3>2. Understand git reset vs. git revert</h3><p>One of the most common points of confusion is the difference between git reset and git revert. While both commands undo changes, they work differently and serve unique purposes.</p><ul><li><strong>git reset</strong>: Rewrites the history and can modify the commit history locally.</li><li><strong>git revert</strong>: Creates a new commit that undoes the changes from a previous commit, preserving history.</li></ul><p><strong>Example:</strong> Undo a commit while preserving history with git revert:</p><pre>git revert &lt;commit-hash&gt;</pre><h3>3. Fix Merge Conflicts Like a Pro</h3><p>Merge conflicts can be intimidating, but with practice, they become easier to resolve. When Git encounters conflicting changes during a merge, it marks the conflicting areas in the affected file, which you must manually edit.</p><ul><li><strong>Scenario:</strong> Your team and you edited the same line in a file. After running:</li></ul><pre>git merge feature-branch</pre><p>Git will mark conflicts like this:</p><pre>&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD<br>Your changes<br>=======<br>Teammate&#39;s changes<br>&gt;&gt;&gt;&gt;&gt;&gt;&gt; feature-branch</pre><p><strong>Steps to resolve</strong>: Edit, remove the conflict markers, and save the file.</p><pre>git add conflicted-file.txt  <br>git commit -m &quot;Resolved merge conflict&quot;</pre><p><strong>Pro Tip:</strong> Use git mergetool for a visual approach to resolving conflicts.</p><h3>4. Master Branching</h3><p>Branches are crucial for working on features or fixes independently, ensuring the main codebase remains stable. Learning how to create, switch, and merge branches effectively is key to efficient development.</p><p><strong>Create and switch to a new branch</strong></p><pre>git checkout -b feature-branch</pre><p><strong>Merge the branch into the main branch</strong>:</p><pre>git checkout main  <br>git merge feature-branch</pre><h3>5. Use git stash to Save Temporary Changes</h3><p>When you’re switching tasks but don’t want to commit your changes yet, git stash is a lifesaver. It temporarily saves your work and reverts your workspace to the last commit.</p><p><strong>Example</strong>:</p><pre>git stash  # Stashes changes  <br>git stash pop  # Re-applies the stashed changes later</pre><p>Stashing is ideal for saving uncommitted changes without creating a commit.</p><h3>6. Clean Up with git rebase</h3><p>Rebasing is a powerful tool for cleaning up commit history and making it more linear. It’s often used to squash multiple commits into one before merging a feature branch.</p><p><strong>Example</strong>: Combine the last 3 commits into one</p><pre>git rebase -i HEAD~3</pre><p>Choose “squash” for the commits you want to merge and save. This is particularly useful for simplifying commit history before a pull request.</p><h3>7. Track Changes with git log and git diff</h3><p>Keeping track of your project history and seeing the differences between commits is essential. git log and git diff provide insight into what&#39;s changed over time.</p><p><strong>View concise logs</strong></p><pre>git log --oneline</pre><p><strong>Compare changes</strong>:</p><pre>git diff  # Shows unstaged changes  <br>git diff --cached  # Shows staged changes</pre><h3>8. Tag Commits for Versioning</h3><p>Tags are used to mark specific commits, typically for releases. They help you track important milestones in your project.</p><p><strong>Example</strong>:</p><pre>git tag v1.0  # Tag the current commit  <br>git push origin v1.0  # Push the tag to the remote repository</pre><p>Tags make it easy to identify and check out specific versions.</p><h3>9. Clone, Pull, and Push</h3><p>Knowing how to clone, pull, and push is fundamental for collaborating on Git repositories.</p><p><strong>Clone a repository</strong></p><pre>git clone https://github.com/user/repo.git</pre><p><strong>Pull updates:</strong></p><pre>git pull origin main</pre><p><strong>Push your changes</strong></p><pre>git push origin feature-branch</pre><h3>10. Leverage .gitignore</h3><p>The .gitignore file is essential for ensuring unnecessary files are not committed to the repository. This is particularly important for files like node_modules, build outputs, and environment variables.</p><ul><li><strong>Example</strong>: Create a .gitignore file and add patterns:</li></ul><pre># Ignore node_modules folder  <br>node_modules/  <br># Ignore environment files  <br>.env</pre><p><strong>Add and commit</strong></p><pre>git add .gitignore  <br>git commit -m &quot;Add .gitignore&quot;</pre><h3>Bonus Tips</h3><h3>11. Organize Branches into Folders</h3><p>If you have many branches, organizing them into a folder-like structure can make it easier to manage.</p><ul><li><strong>Example</strong></li></ul><pre>git branch feature/my-branch</pre><h3>12. Find Bugs with git bisect</h3><p>When a bug is introduced, git bisect can help you identify the exact commit that caused it by using a binary search approach.</p><ul><li><strong>Example</strong>:</li></ul><pre>git bisect start  <br>git bisect bad  # Mark current commit as bad  <br>git bisect good &lt;commit-hash&gt;  # Mark the last known good commit</pre><p>Test each commit as Git narrows down the search, and once you find the culprit, run git bisect reset to end the process.</p><h3>13. Recover with git reflog</h3><p>Even after a reset, git reflog can help you recover lost commits. It logs changes to the HEAD and can be used to find commits that may seem lost.</p><p><strong>Example</strong>: Recover a commit after a hard reset</p><pre>git reflog  # Find the reference of the lost commit  <br>git checkout &lt;commit-hash&gt;  # Restore it</pre><h3>14. Cherry-Picking Commits (git cherry-pick)</h3><p>Grab specific changes from another branch without merging everything.</p><pre>git cherry-pick &lt;commit-hash&gt;</pre><h3>15. Tagging Releases (git tag)</h3><p>Keep track of specific versions or milestones in your project</p><pre>git tag -a v1.0 -m &quot;Release v1.0&quot;<br>git push origin --tags</pre><h3>16. Using Aliases for Efficiency</h3><p>Typing long commands is tedious. Save time with aliases in your .gitconfig.</p><pre>git config --global alias.lg &quot;log --oneline --graph --decorate --all&quot;<br>git lg</pre><h3>17. The Importance of Branch Naming</h3><p>A well-named branch can save hours of confusion. Stick to conventions like:</p><ul><li>feature/awesome-feature</li><li>bugfix/critical-issue</li><li>release/v1.2.3</li></ul><p>Git is more than a version control system — it’s a superpower for developers. Mastering these tips has saved me countless hours and headaches. Which one will you adopt first?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10853f076e58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why HTML5 Beats HTML4]]></title>
            <link>https://medium.com/@talhatarique/why-html5-beats-html4-b06ae3d19537?source=rss-d0501fcd0ff5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b06ae3d19537</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[talha tarique]]></dc:creator>
            <pubDate>Sat, 16 Nov 2024 13:40:30 GMT</pubDate>
            <atom:updated>2024-11-16T13:40:30.125Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vbkZY0B56z3ipwi_Oo2CSA.png" /></figure><p>HTML (Hypertext Markup Language) is the foundational language used to create and design content on the web. It defines the structure of web pages by using a system of elements, or “tags,” that provide instructions to browsers on how to display text, images, links, and other multimedia.</p><p>HTML is not a programming language; rather, it’s a markup language, meaning it is used to annotate and organize content.</p><p>HTML4 and HTML5 are versions of the HyperText Markup Language used to structure content on the web. HTML5 introduced several advancements and changes compared to HTML4. Here’s a breakdown of their differences:</p><h3>1. Doctype Declaration</h3><ul><li><strong>HTML4:</strong> The doctype declaration is long and complex.</li></ul><pre>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;</pre><p><strong>HTML5:</strong> Simplified doctype declaration.</p><pre>&lt;!DOCTYPE html&gt;</pre><h3>2. Multimedia Support</h3><ul><li><strong>HTML4:</strong> No native support for audio or video. Plugins like Flash were needed.</li><li><strong>HTML5:</strong> Introduced &lt;audio&gt; and &lt;video&gt; tags for native multimedia support</li></ul><pre>&lt;audio controls&gt;<br>   &lt;source src=&quot;audio.mp3&quot; type=&quot;audio/mpeg&quot;&gt;<br>&lt;/audio&gt;<br><br>&lt;video controls&gt;<br>   &lt;source src=&quot;video.mp4&quot; type=&quot;video/mp4&quot;&gt;<br>&lt;/video&gt;</pre><h3>3. New Semantic Elements</h3><ul><li><strong>HTML4:</strong> Relied heavily on &lt;div&gt; and &lt;span&gt; for structure, leading to less semantic clarity.</li><li><strong>HTML5:</strong> Introduced semantic elements for better structure and meaning:</li><li>&lt;header&gt;, &lt;footer&gt;, &lt;article&gt;, &lt;section&gt;, &lt;nav&gt;, &lt;aside&gt;.</li></ul><h3>4. Form Elements and Attributes</h3><ul><li><strong>HTML4:</strong> Basic form controls without modern features.</li><li><strong>HTML5:</strong> Enhanced forms with new input types and attributes, such as:</li><li>Input types: email, url, date, range, color, etc.</li><li>Attributes: placeholder, required, autofocus, pattern, etc.</li><li>Example:</li></ul><pre>&lt;input type=&quot;email&quot; placeholder=&quot;Enter your email&quot; required&gt;</pre><h3>5. JavaScript APIs</h3><ul><li><strong>HTML4:</strong> Limited API support.</li><li><strong>HTML5:</strong> Introduced several new APIs for enhanced functionality:</li><li><strong>Canvas API</strong>: For drawing graphics using &lt;canvas&gt;.</li><li><strong>Geolocation API</strong>: To get a user’s location.</li><li><strong>Web Storage API</strong>: Replaced cookies with localStorage and sessionStorage.</li><li><strong>Drag and Drop API</strong>: For drag-and-drop functionality.</li></ul><h3>6. Cross-Browser Compatibility</h3><ul><li><strong>HTML4:</strong> Older and less consistent across browsers.</li><li><strong>HTML5:</strong> Designed to work across modern browsers with greater consistency.</li></ul><h3>7. Deprecation of Elements</h3><ul><li><strong>HTML4:</strong> Included several outdated elements such as &lt;font&gt;, &lt;center&gt;, &lt;big&gt;, &lt;strike&gt;.</li><li><strong>HTML5:</strong> Deprecated these elements in favor of CSS for styling.</li></ul><h3>8. Better Accessibility</h3><ul><li><strong>HTML4:</strong> Accessibility features were limited.</li><li><strong>HTML5:</strong> Improved accessibility with ARIA (Accessible Rich Internet Applications) roles and enhanced semantic tags.</li></ul><h3>9. Storage and Offline Capabilities</h3><ul><li><strong>HTML4:</strong> Relied solely on cookies for data storage.</li><li><strong>HTML5:</strong> Introduced Web Storage (localStorage and sessionStorage) and offline capabilities via the Application Cache and Service Workers.</li></ul><h3>10. Mobile-Friendliness</h3><ul><li><strong>HTML4:</strong> Not designed with mobile devices in mind.</li><li><strong>HTML5:</strong> Supports responsive design and mobile-first development with features like the &lt;meta name=&quot;viewport&quot;&gt; tag.</li></ul><h3>Example of Semantic Difference:</h3><p><strong>HTML4:</strong></p><pre>&lt;div class=&quot;header&quot;&gt;<br>   &lt;h1&gt;Welcome&lt;/h1&gt;<br>&lt;/div&gt;</pre><p>HTML5:</p><pre>&lt;header&gt;<br>   &lt;h1&gt;Welcome&lt;/h1&gt;<br>&lt;/header&gt;</pre><p>Whether you’re a beginner or an experienced developer, mastering HTML is essential for creating dynamic and effective web pages.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b06ae3d19537" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>