<?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>Forem: sonicx180</title>
    <description>The latest articles on Forem by sonicx180 (@sonicx180).</description>
    <link>https://forem.com/sonicx180</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%2F860666%2Fe10d03b6-bdd9-4bbf-96b5-d88e658334d8.png</url>
      <title>Forem: sonicx180</title>
      <link>https://forem.com/sonicx180</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sonicx180"/>
    <language>en</language>
    <item>
      <title>My Experience with Dev.to</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Sat, 22 Apr 2023 01:18:04 +0000</pubDate>
      <link>https://forem.com/sonicx180/my-experience-with-devto-ajp</link>
      <guid>https://forem.com/sonicx180/my-experience-with-devto-ajp</guid>
      <description>&lt;p&gt;I've been on Dev.to for almost a year now and I really appreciate it for what it is. Dev.to gives me brilliant info from bloggers, developers, and more. Without Dev.to, I wouldn't know a few helpful tips and information. Just saying thanks to Dev.to! 🙏&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>devto</category>
    </item>
    <item>
      <title>So, I want to make an IDE like replit. How? 🤔</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Thu, 02 Mar 2023 03:33:16 +0000</pubDate>
      <link>https://forem.com/sonicx180/so-i-want-to-make-an-ide-like-replit-how-2el7</link>
      <guid>https://forem.com/sonicx180/so-i-want-to-make-an-ide-like-replit-how-2el7</guid>
      <description>&lt;p&gt;&lt;strong&gt;I want to make an IDE like replit&lt;/strong&gt;&lt;br&gt;
Now, you may think this is impossible, but with good planning, it shouldn't be. First, I'll make it a frontend IDE, and then extend it to a fullstack IDE if possible. Any tips/suggestion? &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Redoing my website! ⚡⚡⚡</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Sun, 26 Feb 2023 03:16:54 +0000</pubDate>
      <link>https://forem.com/sonicx180/redoing-my-website-48cg</link>
      <guid>https://forem.com/sonicx180/redoing-my-website-48cg</guid>
      <description>&lt;p&gt;&lt;strong&gt;I'm redoing my website for the 5th time.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;ya hoo&lt;/p&gt;

</description>
      <category>webdev</category>
    </item>
    <item>
      <title>Am I the only person who learned nextjs without their docs?</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Wed, 22 Feb 2023 03:24:04 +0000</pubDate>
      <link>https://forem.com/sonicx180/am-i-the-only-person-who-learned-nextjs-without-their-docs-2ao9</link>
      <guid>https://forem.com/sonicx180/am-i-the-only-person-who-learned-nextjs-without-their-docs-2ao9</guid>
      <description>&lt;p&gt;I learned nextjs without the docs, by watching one youtube video and looking at others code. I also learned react on freecodecamp which made it relatively easy to learn nextjs. What do you think I should've done?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>career</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
    <item>
      <title>No to blog, Yes to Dev.to!</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Thu, 16 Feb 2023 23:52:18 +0000</pubDate>
      <link>https://forem.com/sonicx180/no-to-blog-yes-to-devto-174f</link>
      <guid>https://forem.com/sonicx180/no-to-blog-yes-to-devto-174f</guid>
      <description>&lt;p&gt;I decided I'm not going to use the blog and I'm just going to use Dev.to. just like how &lt;a class="mentioned-user" href="https://dev.to/ironcladdev"&gt;@ironcladdev&lt;/a&gt; did on his website, I'll use the Dev.to api to get my posts, and maybe even use the api to make posts from my website. Look 👀 for more posts now a days.&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>aws</category>
      <category>career</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Switching blog.</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Tue, 03 Jan 2023 23:32:12 +0000</pubDate>
      <link>https://forem.com/sonicx180/switching-blog-1eac</link>
      <guid>https://forem.com/sonicx180/switching-blog-1eac</guid>
      <description>&lt;p&gt;I'm thinking about switching my blog to &lt;a class="mentioned-user" href="https://dev.to/ironcladdev"&gt;@ironcladdev&lt;/a&gt; 's next js admin page. I'll just redesign it and add more features. In this way, I'll also be learning next.js. I'll share this when I'm done!&lt;/p&gt;

</description>
      <category>emptystring</category>
    </item>
    <item>
      <title>How to create an Express JS middleware</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Thu, 13 Oct 2022 22:25:36 +0000</pubDate>
      <link>https://forem.com/sonicx180/how-to-create-an-express-js-middleware-2fcc</link>
      <guid>https://forem.com/sonicx180/how-to-create-an-express-js-middleware-2fcc</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey there!&lt;/strong&gt; Today I'm going to show you how to create a express js middleware&lt;/p&gt;

&lt;p&gt;Setup &amp;gt; read more on &lt;a href="https://dev.to/sonicx180/create-an-express-server-5267"&gt;Creating an express server&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Okay, now that we have our server, we can add the middleware.&lt;br&gt;
After the constant variable &lt;code&gt;const app = express()&lt;/code&gt; and before the&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;app.get('/', (req,res) =&amp;gt; {&lt;br&gt;
 res.send("Hello World!")&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
 , add this line of code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app.use((req,res,next) =&amp;gt; {
console.log(req.method + " " + req.ip);
next();
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that my friends, is a basic middleware function.&lt;br&gt;
Let me break it down for you. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;app.use()&lt;/code&gt; is an express function for middleware.&lt;br&gt;
Then we create an ES6 arrow function.&lt;br&gt;
We log the method (like the HTTP verbs &lt;code&gt;GET, POST&lt;/code&gt;) the user is using into the console and their ip.&lt;br&gt;
The last line of code is the &lt;code&gt;next&lt;/code&gt; function. If you don't put that, express will not move on to the next middleware.&lt;/p&gt;
&lt;h2&gt;
  
  
  A trick you can do with middleware
&lt;/h2&gt;

&lt;p&gt;*&lt;em&gt;Use middlware on a certain route *&lt;/em&gt;&lt;br&gt;
&lt;code&gt;app.use('/route',middleware);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Or even&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;app.get("/route",middleware, (req,res) =&amp;gt; {&lt;br&gt;
res.send("I used Middlware!")&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;And that's about it. Read more on middleware at &lt;a href="https://expressjs.com/en/guide/using-middleware.html"&gt;Express Js using Middlware&lt;/a&gt;.&lt;br&gt;
Thanks to freecodecamp for example middleware!&lt;/p&gt;

&lt;p&gt;Like and Follow if you haven't!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>express</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Dev.to as a blog</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Thu, 13 Oct 2022 20:17:10 +0000</pubDate>
      <link>https://forem.com/sonicx180/devto-as-a-blog-hmf</link>
      <guid>https://forem.com/sonicx180/devto-as-a-blog-hmf</guid>
      <description>&lt;p&gt;I've decided  I'm going to be using Dev.to as a blog. &lt;br&gt;
Follow me to see articles and blogs about various subjects!&lt;/p&gt;

</description>
      <category>blog</category>
    </item>
    <item>
      <title>Division Solver</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Tue, 27 Sep 2022 22:13:16 +0000</pubDate>
      <link>https://forem.com/sonicx180/division-solver-2ijm</link>
      <guid>https://forem.com/sonicx180/division-solver-2ijm</guid>
      <description>&lt;h2&gt;
  
  
  Division Solver in python
&lt;/h2&gt;

&lt;p&gt;Need to solve a division problem quick?&lt;br&gt;
Or to lazy to do the division problems on ixl?&lt;/p&gt;

&lt;p&gt;Never fear, The &lt;a href="https://replit.com/@sonicx180/Divison-Solver?v=1"&gt;The Division Solver&lt;/a&gt; is here!&lt;/p&gt;

&lt;p&gt;Thanks for reading, or using!&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>math</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Create an Express Server</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Wed, 21 Sep 2022 03:20:20 +0000</pubDate>
      <link>https://forem.com/sonicx180/create-an-express-server-5267</link>
      <guid>https://forem.com/sonicx180/create-an-express-server-5267</guid>
      <description>&lt;h2&gt;
  
  
  How to Create an Express Server.
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;I recommend this &lt;em&gt;only&lt;/em&gt; for beginners since it's so basic.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Step 1:&lt;br&gt;
Create a folder and name it whatever you like.&lt;br&gt;
Go to your terminal and run (cd folder name like&lt;code&gt;cd myapp&lt;/code&gt; )and run &lt;code&gt;npm init -y&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Go to a text editor (like VSC or Caret or Sublime Editor) and open the index.js file&lt;/p&gt;

&lt;p&gt;Then write this in your file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const express = require("express");
const app = express();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first line of code imports the express module. &lt;br&gt;
The second line of code initializes an express app.&lt;/p&gt;

&lt;p&gt;But the app isn't really running yet.&lt;/p&gt;

&lt;p&gt;Write these lines of code after the code above.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app.get('/', (req,res) =&amp;gt; {
 res.send("Hello World!")
}
app.listen(3000, (err) =&amp;gt; {
if (err) console.log(err)
else console.log("Server Running on port 3000")
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, to break this down.&lt;/p&gt;

&lt;p&gt;For the first three lines of code, on the homepage (like &lt;a href="//dev.to"&gt;https://dev.to&lt;/a&gt;) it will show Hello World!. By the way, read about arrow functions here &lt;a href="https://www.w3schools.com/js/js_es6.asp"&gt;https://www.w3schools.com/js/js_es6.asp&lt;/a&gt;. req stands for request and res stands for response. &lt;br&gt;
As for the rest of the code, the app.listen function makes the app listen on port 3000 and there is an error logger too.&lt;/p&gt;

&lt;p&gt;Now go to your terminal and run cd (your folder name) like &lt;code&gt;cd myapp&lt;/code&gt;. After that run  &lt;code&gt;npm i express&lt;/code&gt;. Then run &lt;code&gt;node index.js&lt;/code&gt;. Your app should be up and running !&lt;/p&gt;

&lt;p&gt;If this doesn't &lt;em&gt;express&lt;/em&gt; much, go to &lt;a href="https://www.freecodecamp.org/learn/back-end-development-and-apis/"&gt;Free Code Camp back end development&lt;/a&gt; or go to &lt;a href="https://expressjs.com"&gt;Express Js&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Well, that's about it. Comment if you have any suggestions.  Thanks for reading!&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>node</category>
    </item>
    <item>
      <title>Hello, World!</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Mon, 18 Jul 2022 22:57:01 +0000</pubDate>
      <link>https://forem.com/sonicx180/hello-world-2ef3</link>
      <guid>https://forem.com/sonicx180/hello-world-2ef3</guid>
      <description>&lt;p&gt;This was made with the Dev.to api!&lt;br&gt;
Like if you like!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>My Website</title>
      <dc:creator>sonicx180</dc:creator>
      <pubDate>Wed, 11 May 2022 22:52:35 +0000</pubDate>
      <link>https://forem.com/sonicx180/my-website-4f6g</link>
      <guid>https://forem.com/sonicx180/my-website-4f6g</guid>
      <description>&lt;p&gt;Tell me what you think about this.&lt;br&gt;
&lt;a href="https://sonicx180.is-a.dev"&gt;sonicx180.is-a.dev&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
