<?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: HAMZA ATMACA</title>
    <description>The latest articles on DEV Community by HAMZA ATMACA (@hamza_atmaca_8da0bc22ad25).</description>
    <link>https://dev.to/hamza_atmaca_8da0bc22ad25</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%2F3054691%2F05dda92d-4ee5-41df-a8c7-3fcdd5558e33.jpg</url>
      <title>DEV Community: HAMZA ATMACA</title>
      <link>https://dev.to/hamza_atmaca_8da0bc22ad25</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hamza_atmaca_8da0bc22ad25"/>
    <language>en</language>
    <item>
      <title>Using Nim to Generate JavaScript Code for Frontend Development</title>
      <dc:creator>HAMZA ATMACA</dc:creator>
      <pubDate>Thu, 24 Apr 2025 10:56:59 +0000</pubDate>
      <link>https://dev.to/hamza_atmaca_8da0bc22ad25/using-nim-to-generate-javascript-code-for-frontend-development-466b</link>
      <guid>https://dev.to/hamza_atmaca_8da0bc22ad25/using-nim-to-generate-javascript-code-for-frontend-development-466b</guid>
      <description>&lt;p&gt;Lately, I’ve been experimenting with different approaches to speed up my software development process. One of the most exciting methods I've found is using the Nim programming language to generate JavaScript code. With this technique, I can develop frontend projects in a more efficient and modular way.&lt;/p&gt;

&lt;p&gt;If you’re looking to speed up your frontend development, create modular structures, and work more efficiently, discovering how to generate JavaScript code with Nim might be a great idea!&lt;/p&gt;

&lt;p&gt;Nim is a programming language that’s efficient, flexible, and highly readable. It’s known for its speed, memory management capabilities, and open-source nature. While it's often used for system-level programming, it also excels at generating code that can be converted into JavaScript. This means that with Nim, you can develop powerful and efficient solutions for frontend development too.&lt;/p&gt;

&lt;p&gt;Converting a Nim program to JavaScript is surprisingly simple. Let me show you how I used Nim to write a basic clock application and how it can be converted into JavaScript.&lt;/p&gt;

&lt;p&gt;Create main.nim&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nim"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;times&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;

&lt;span class="k"&gt;proc &lt;/span&gt;&lt;span class="nf"&gt;showClock&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="kp"&gt;true&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;getTime&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;formatted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"HH:mm:ss"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  
    &lt;span class="n"&gt;echo&lt;/span&gt; &lt;span class="n"&gt;formatted&lt;/span&gt;

&lt;span class="n"&gt;showClock&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After --- in the Command line run this code ---&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; nim js -d:nodejs main.nim
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This simple program displays the current time in the HH:mm:ss format. However, the magic happens when Nim converts this code into JavaScript.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How Does It Work?&lt;/strong&gt;&lt;br&gt;
To convert Nim code into JavaScript, you can use Nim’s built-in js tool. This tool allows you to automatically generate the JavaScript code that will run on the frontend.&lt;/p&gt;

&lt;p&gt;For example, when we convert the clock application above into JavaScript, we end up with code like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;showClock&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;./main.js&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;

&lt;span class="nf"&gt;showClock&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;**Why Work with Nim?&lt;br&gt;
**Efficiency: Nim is incredibly fast and performs well even in large projects. If you need high-performance JavaScript code, Nim is a great alternative.&lt;/p&gt;

&lt;p&gt;Modularity: With Nim, you can organize your code into modules and then convert these modules into JavaScript for easy reuse in your frontend projects.&lt;/p&gt;

&lt;p&gt;Readability: Nim has a syntax that is similar to Python, which makes the code more readable and helps speed up the development process.&lt;/p&gt;

&lt;p&gt;Advanced Features: By transitioning between Nim and JavaScript, you get to take advantage of Nim’s strong type system and modern language features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
Generating JavaScript code with Nim is a fantastic way to speed up your frontend development and build modular structures. By taking advantage of Nim’s flexibility, efficiency, and speed, you can develop cleaner and faster applications. If you're interested in trying this technique, I recommend checking out Nim’s official documentation and integrating it into your projects.&lt;/p&gt;

&lt;p&gt;Exploring different tools and languages for frontend development is always exciting. If you're ready to bridge the gap between Nim and JavaScript to enhance your projects, this post can be a great starting point.&lt;/p&gt;

&lt;p&gt;View Example Code --- &amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;a href="https://codeberg.org/attmacah/Nim_to_JS" rel="noopener noreferrer"&gt;https://codeberg.org/attmacah/Nim_to_JS&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nimlang</category>
      <category>frontend</category>
      <category>web</category>
      <category>node</category>
    </item>
    <item>
      <title>YasminTrend E-Commerce Systems</title>
      <dc:creator>HAMZA ATMACA</dc:creator>
      <pubDate>Wed, 16 Apr 2025 07:42:26 +0000</pubDate>
      <link>https://dev.to/hamza_atmaca_8da0bc22ad25/yasmintrend-e-commerce-systems-4fmk</link>
      <guid>https://dev.to/hamza_atmaca_8da0bc22ad25/yasmintrend-e-commerce-systems-4fmk</guid>
      <description>&lt;p&gt;Hey dev.to fam 👋&lt;/p&gt;

&lt;p&gt;I'm Hamza, a fullstack developer and indie maker, I built a complete e-commerce platform using &lt;strong&gt;Node.js&lt;/strong&gt;, &lt;strong&gt;EJS&lt;/strong&gt;, and &lt;strong&gt;MySQL&lt;/strong&gt; — designed specifically for small businesses, boutique brands, and local sellers who want to sell online &lt;strong&gt;without monthly fees&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;And yes — it’s just &lt;strong&gt;$500&lt;/strong&gt;. One-time. No subscriptions.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 Why I Built This
&lt;/h2&gt;

&lt;p&gt;I’ve worked with countless small business owners, and they all kept telling me the same thing:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“I don’t want to pay $30/month to Shopify.”&lt;br&gt;
“I just want to sell online. Why is it so complicated?”&lt;br&gt;
“I’m not a techie. I just want something that works.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So I decided to build something simple, clean, and powerful — using technologies I love and trust.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚙️ What’s Inside
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🧰 &lt;strong&gt;Full Admin Panel&lt;/strong&gt;: 

&lt;ul&gt;
&lt;li&gt;Product management
&lt;/li&gt;
&lt;li&gt;Customer &amp;amp; order tracking
&lt;/li&gt;
&lt;li&gt;Sales &amp;amp; invoice system
&lt;/li&gt;
&lt;li&gt;Income &amp;amp; expense records
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;🌍 &lt;strong&gt;Multi-language support&lt;/strong&gt;: Turkish, English, Russian, Spanish, Chinese, French, German, Arabic&lt;/li&gt;

&lt;li&gt;💳 &lt;strong&gt;Payment Integration&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stripe&lt;/strong&gt; (global)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Iyzico&lt;/strong&gt; (Turkey)&lt;/li&gt;
&lt;li&gt;Just paste your API keys in the admin panel. That’s it.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;📸 &lt;strong&gt;Image Upload + Product Variants&lt;/strong&gt;
&lt;/li&gt;

&lt;li&gt;📦 &lt;strong&gt;Simple, Clean UI&lt;/strong&gt; powered by EJS templates&lt;/li&gt;

&lt;li&gt;🔐 &lt;strong&gt;No subscription&lt;/strong&gt; — One-time purchase: &lt;strong&gt;$500&lt;/strong&gt; for lifetime use.&lt;/li&gt;

&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;It's for real businesses that need a stable platform without all the SaaS noise.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🛠️ Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: Node.js + Express
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: EJS templating + vanilla JS
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database&lt;/strong&gt;: MySQL
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth&lt;/strong&gt;: JWT-based login
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payments&lt;/strong&gt;: Stripe &amp;amp; Iyzico
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Languages&lt;/strong&gt;: Built-in i18n system
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment&lt;/strong&gt;: cPanel, VPS, or any custom server (your choice)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🎯 Who Is This For?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🌱 Entrepreneurs &amp;amp; small business owners
&lt;/li&gt;
&lt;li&gt;🧵 Boutique sellers (clothing, local goods, handmade items)
&lt;/li&gt;
&lt;li&gt;🌍 Global stores that need multilingual &amp;amp; multi-currency support
&lt;/li&gt;
&lt;li&gt;🇹🇷 Turkish merchants who need &lt;strong&gt;Iyzico integration&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;💻 Developers who want to offer white-label e-commerce solutions&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔍 Demo / Screenshots
&lt;/h2&gt;

&lt;p&gt;Check it out here:  &lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://ecommerce-demo.yasmintrend.com" rel="noopener noreferrer"&gt;https://ecommerce-demo.yasmintrend.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://ecommerce.yasmintrend.com" rel="noopener noreferrer"&gt;https://ecommerce.yasmintrend.com&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🤝 Let’s Connect
&lt;/h2&gt;

&lt;p&gt;I'm always open to feedback, questions, and collaboration ideas.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Would you add anything to this stack?
&lt;/li&gt;
&lt;li&gt;Are you building something similar?
&lt;/li&gt;
&lt;li&gt;Do you think $500 lifetime e-commerce software makes sense in 2025?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Leave a comment or reach out — I’d love to chat!&lt;/p&gt;

&lt;p&gt;Thanks for reading 🙌&lt;br&gt;&lt;br&gt;
— Hamza Atmaca&lt;br&gt;&lt;br&gt;
Founder, YasminTrend E-Commerce Systems&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ecommerce</category>
      <category>javascript</category>
      <category>node</category>
    </item>
  </channel>
</rss>
