<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged 30daysofcode</title>
<link>https://coderlegion.com/tag/30daysofcode</link>
<description>Powered by Question2Answer</description>
<item>
<title>Day 5 of 30 - Tip Calculator App (Part - 2)</title>
<link>https://coderlegion.com/30338/day-5-of-30-tip-calculator-app-part-2</link>
<description>&lt;p&gt;I finally got the Tip calculator to function!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=16523077341107333445&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;For real I'm still trying to figure if this JavaScript is for me because, why did it have to stress me so much?!😭&lt;/p&gt;
&lt;p&gt;For this phase of the challenge, my goal was:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To get the UI looking as close as possible like the design.&lt;/li&gt;
&lt;li&gt;Design active states.&lt;/li&gt;
&lt;li&gt;Get the buttons and inputs to function as expected.&lt;/li&gt;
&lt;li&gt;Display the calculated result.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;my-process-&quot;&gt;My Process:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;I declared all relevent DOM elements as inputs in JavaScript.&lt;/li&gt;
&lt;li&gt;Wrote a &lt;strong&gt;calculateTip()&lt;/strong&gt; function to calculate  &lt;strong&gt;Total Tip / person&lt;/strong&gt; and &lt;strong&gt;Total Amount/person&lt;/strong&gt;, if both &lt;strong&gt;Bill&lt;/strong&gt; and &lt;strong&gt;Number of Persons&lt;/strong&gt; inputs were not zero.&lt;/li&gt;
&lt;li&gt;I rendered the tip buttons as a loop and called the &lt;strong&gt;calculateTip() function&lt;/strong&gt; on each button with a click event. &lt;/li&gt;
&lt;li&gt;At &lt;strong&gt;Reset&lt;/strong&gt;, I declared all variables back to 0 (except number of persons which I left at 1).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=3298747712197368592&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;challenges-and-ai-collaboration-&quot;&gt;Challenges and AI collaboration:&lt;/h3&gt;
&lt;p&gt;I faced several challenges and bugs but after several hours of brain wracking, I worked with Gemini to figure things out. I didn't just ask the AI to generate the codes. I asked how things were done and when the AI suggested, I tried them out.&lt;/p&gt;
&lt;h3 id=&quot;continued-development&quot;&gt;Continued development&lt;/h3&gt;
&lt;p&gt;I didn't do so much form validation in this phase of the project, except a condition to check that the inputs were not 0. For further development, I plan to learn more about form validation in JavaScript,  then do a better job in validating the forms.&lt;/p&gt;
&lt;p&gt;I'm not sure what the next project holds but I'm excited.😊&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/30338/day-5-of-30-tip-calculator-app-part-2</guid>
<pubDate>Thu, 08 Oct 2026 19:42:13 +0000</pubDate>
</item>
<item>
<title>Day 4 Of 30 - Tip Calculator App (Part - 1)</title>
<link>https://coderlegion.com/30047/day-4-of-30-tip-calculator-app-part-1</link>
<description>&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=10243870787538968083&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;For #Day 4,  after learning several more JavaScript topics, I decided to step away from my course a little to try a real project from scratch.&lt;/p&gt;
&lt;p&gt;So I picked up this project from &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.frontendmentor.io/&quot;&gt;Frontend Mentor&lt;/a&gt; to get my hands dirty.&lt;/p&gt;
&lt;p&gt;However, for today, I was only able to complete the HTML and CSS. Will continue with the Javascript section tomorrow.&lt;/p&gt;
&lt;h3 id=&quot;the-challenge&quot;&gt;The challenge&lt;/h3&gt;
&lt;p&gt;Users should be able to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;View the optimal layout for the app depending on their device's screen size . &lt;/li&gt;
&lt;li&gt;See hover states for all interactive elements on the page.&lt;/li&gt;
&lt;li&gt;Calculate the correct tip and total cost of the bill per person.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;my-process&quot;&gt;My process&lt;/h3&gt;
&lt;h4 id=&quot;built-with&quot;&gt;Built with&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Semantic HTML5 markup&lt;/li&gt;
&lt;li&gt;CSS custom properties&lt;/li&gt;
&lt;li&gt;Flexbox&lt;/li&gt;
&lt;li&gt;CSS Grid&lt;/li&gt;
&lt;li&gt;Mobile-first workflow&lt;/li&gt;
&lt;li&gt;Media Queries for responsiveness&lt;/li&gt;
&lt;li&gt;JavaScript&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;what-i-learned&quot;&gt;What I learned&lt;/h3&gt;
&lt;p&gt;I learned to dynamically render the &lt;strong&gt;Select Tip&lt;/strong&gt; part of the ui with JavaScript. My initial challenge was how to render the &lt;strong&gt;Custom&lt;/strong&gt; input which was different from the buttons but with some google research, I was able to get that done.&lt;br&gt;
&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=15925442075557228454&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=12460308400063338429&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;I also learned to place the $ icon on the &lt;strong&gt;Bill&lt;/strong&gt; input with HTML data-attribute and CSS pseudo-class.&lt;br&gt;
&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=8675388275561129784&quot; alt=&quot;&quot;&gt;&lt;br&gt;
&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=11073701797133400115&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;continued-development-1&quot;&gt;Continued development&lt;/h3&gt;
&lt;p&gt;To complete this project:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I'll be adding relevant states to the button and input components.&lt;/li&gt;
&lt;li&gt;I'll be writing the JavaScript functions to ensure the data are dynamically rendered and the Tip Calculator works as expected.&lt;/li&gt;
&lt;/ul&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/30047/day-4-of-30-tip-calculator-app-part-1</guid>
<pubDate>Tue, 06 Oct 2026 19:28:31 +0000</pubDate>
</item>
<item>
<title>I'm Starting A 30days Of Code Challenge</title>
<link>https://coderlegion.com/29076/im-starting-a-30days-of-code-challenge</link>
<description>&lt;p&gt;Hello Legionnaires!🖐&lt;/p&gt;
&lt;p&gt;I'm starting a 30 days of code challenge. Might continue to 60, 90 or 100 days challenge if I'm able to complete the first 30 days but yeah, let's see how it goes.&lt;/p&gt;
&lt;p&gt;I'm an API and Product Documentation Engineer and I really do enjoy working with developer tools and the developer community. But all my effort to learn coding and actually get to build real stuff myself has been futile. I either get to start a course and do not finish or get distracted with some other stuff.&lt;/p&gt;
&lt;p&gt;But I'm here again to try this once because, I just do not want to be a tech writer, but a writer who actually builds stuff and enjoys talking about them. On this note, I'll be taking a &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.youtube.com/watch?v=LzMnsfqjzkA&amp;amp;list=PLNst6jqZPCXf62I8yCTEiwf9I7NMkqeGu&quot;&gt;fullstack dev course&lt;/a&gt; on freecodecamp youtube channel. It's a 48 hrs long course and very practical.&lt;/p&gt;
&lt;p&gt;I have some background knowledge in frontend, so I guess I'll just be picking up from where I left. The truth is, I've never felt like I've known JavaScript enough so I always get that impostor feeling when I have to build with it. I'll be starting this challenge with some JavaScript topics, especially topics I still haven't felt confident about. And I'll be building progressively as I go.&lt;/p&gt;
&lt;p&gt;My goal for this course is to complete it with a fullstack Next.js project within the next 30days.&lt;/p&gt;
&lt;p&gt;Once I'm done with the course, I plan to pick up challenges from frontendmentor to build. I do not plan to rush this process, but take the time to understand what I'm actually doing...However, I also wish to be hirable by the end of the year.&lt;/p&gt;
&lt;p&gt;I'm putting this out here to help me stay accountable and I do not promise this will be perfect but I hope it is. &lt;/p&gt;
&lt;p&gt;I hope to make this an enjoyable learning experience and would really appreciate your support with feedback or anything else you might want to share.&lt;/p&gt;
&lt;p&gt;And if you're on this same journey or learning just anything this season, I'd be happy to do this together with you! Please do well to share in the comment!&lt;/p&gt;
&lt;p&gt;Finally, I guess I need all the energy I can get for consistency&lt;img src=&quot;http://&quot; alt=&quot;&quot;&gt;...wish me luck guysss!🤭&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://coderlegion.com/?qa=blob&amp;amp;qa_blobid=2127567343837050108&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/29076/im-starting-a-30days-of-code-challenge</guid>
<pubDate>Tue, 29 Sep 2026 13:16:32 +0000</pubDate>
</item>
</channel>
</rss>