<?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: Ridha Majid</title>
    <description>The latest articles on DEV Community by Ridha Majid (@idomajid).</description>
    <link>https://dev.to/idomajid</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%2F822369%2Fba9fc590-555d-438c-b453-cc8a6280eecc.jpeg</url>
      <title>DEV Community: Ridha Majid</title>
      <link>https://dev.to/idomajid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/idomajid"/>
    <language>en</language>
    <item>
      <title>CSS Position</title>
      <dc:creator>Ridha Majid</dc:creator>
      <pubDate>Mon, 06 Mar 2023 07:57:14 +0000</pubDate>
      <link>https://dev.to/idomajid/css-position-1i51</link>
      <guid>https://dev.to/idomajid/css-position-1i51</guid>
      <description>&lt;p&gt;CSS Position is one of the core concepts of CSS. however, the concept is pretty confusing for some beginners, including me.&lt;/p&gt;

&lt;p&gt;The CSS Position property has 5 different values: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;static&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;relative&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;absolute&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fixed&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sticky&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Position Values&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;static&lt;/code&gt; is a default value on the HTML elements. You cannot use: the top, bottom, left, and right properties on the static element.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;relative&lt;/code&gt; is almost similar to &lt;code&gt;static&lt;/code&gt;. The difference is The relative value supports the top, bottom, left, and right properties. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;absolute&lt;/code&gt; is positioned relative to the parent element. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;fixed&lt;/code&gt; is positioned relative to the viewport. which means that the element is unaffected by the scrolling. &lt;code&gt;fixed&lt;/code&gt;  value usually use for the ad box.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sticky&lt;/code&gt; element looks similar to &lt;code&gt;fixed&lt;/code&gt; but is different.&lt;br&gt;
 So we could say a &lt;code&gt;sticky&lt;/code&gt; element is a toggle between &lt;strong&gt;&lt;em&gt;relative&lt;/em&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;em&gt;fixed&lt;/em&gt;&lt;/strong&gt;, depending on the scroll position. Before the user scrolls the page, the position of the element is &lt;code&gt;relative&lt;/code&gt; and the element will transform to fixed after a user scrolls the page.&lt;/p&gt;

&lt;p&gt;I think that is pretty much it.&lt;/p&gt;



&lt;p&gt;Preference I used :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://unsplash.com/photos/6JVlSdgMacE"&gt;Cover&lt;/a&gt;&lt;br&gt;
&lt;a href="https://css-tricks.com/almanac/properties/p/position/"&gt;CSS-trick position&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/css/css_positioning.asp"&gt;W2-School position&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Git Explained by a dump person</title>
      <dc:creator>Ridha Majid</dc:creator>
      <pubDate>Mon, 06 Mar 2023 03:46:12 +0000</pubDate>
      <link>https://dev.to/idomajid/git-basic-explained-by-dump-person--41kk</link>
      <guid>https://dev.to/idomajid/git-basic-explained-by-dump-person--41kk</guid>
      <description>&lt;p&gt;What is Git?&lt;/p&gt;

&lt;p&gt;According to Wikipedia, Git is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows.&lt;/p&gt;

&lt;p&gt;That explanation is so technical. Okay, let me explain intuitively. Imagine your project code is like a tree.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Vr9NXu1T--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cf0hud3fel985ys6u8zs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Vr9NXu1T--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cf0hud3fel985ys6u8zs.png" alt="tree" width="800" height="1132"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Okay, let's dig deeper!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Creating a new project is like when we plant a new tree.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--R-gzK_jt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o2ew5lz9aqnzsnu1ip0p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--R-gzK_jt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o2ew5lz9aqnzsnu1ip0p.png" alt="Little tree" width="800" height="1132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the first couple of commits, the Branch feature is not mandatory. Because we're not building complex features yet, We could commit straight to the main. &lt;/p&gt;

&lt;p&gt;Tree's growing, the same as to our project. When our project gets bigger and more complex, for safety reasons, It would be good for us to use a &lt;strong&gt;&lt;em&gt;git branch&lt;/em&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;Crete a new specific branch → work on the branch → merge the branch to the main.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;after the branch is merged into the main, The branch will become unused, I call it a dead-branch. So it's good for us to cut ( delete ) the unused branch, to make our tree looks aesthetic.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QUMbDVg7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e3erop8kh0h2z5ygmajp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QUMbDVg7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e3erop8kh0h2z5ygmajp.png" alt="Git explanation" width="800" height="1132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;preference&lt;/p&gt;

&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Git"&gt;https://en.wikipedia.org/wiki/Git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Basic terminal command you should know ( macOS )</title>
      <dc:creator>Ridha Majid</dc:creator>
      <pubDate>Wed, 01 Mar 2023 06:12:50 +0000</pubDate>
      <link>https://dev.to/idomajid/basic-terminal-command-you-should-know-macos--51gj</link>
      <guid>https://dev.to/idomajid/basic-terminal-command-you-should-know-macos--51gj</guid>
      <description>&lt;p&gt;GUI is a graphical operating system interface that uses icons and menus. Using GUI essentially is a good way to operate a computer. However, have you tried CLI? &lt;/p&gt;

&lt;p&gt;CLI is a Command line interface. So basically, we interact with a computer using the Terminal. &lt;/p&gt;

&lt;h3&gt;
  
  
  Why and when do we use it?
&lt;/h3&gt;

&lt;p&gt;I don’t really know when we need to use it. However, from my experience using Terminal Commands boosts productivity in some cases.&lt;/p&gt;

&lt;h3&gt;
  
  
  Terminal commands
&lt;/h3&gt;

&lt;p&gt;Here are some basic terminal commands, you can try safely on your computer.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For safety reasons, I recommend you try using a dummy-files, In case we wouldn't know what happens next.&lt;/p&gt;
&lt;/blockquote&gt;



&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;fwd&lt;/code&gt;&lt;br&gt;
Find out the location that you currently access on the terminal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;ls&lt;/code&gt;&lt;br&gt;
List files and folders on the location that you currently access on a terminal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;cd&lt;/code&gt;&lt;br&gt;
Change directory, to move to another directory, &lt;code&gt;cd Desktop&lt;/code&gt; will allow you to move to the Desktop folder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;cd ..&lt;/code&gt;&lt;br&gt;
to move to the previous directory that you have accessed before.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;mkdir&lt;/code&gt;&lt;br&gt;
Create a new directory using the terminal, &lt;code&gt;mkdir my-project&lt;/code&gt; will create a new folder name &lt;strong&gt;my-project&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;touch&lt;/code&gt;&lt;br&gt;
Create a new file using the terminal, &lt;code&gt;touch new-file.txt&lt;/code&gt;  will create a new folder name &lt;strong&gt;new-file.txt&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;rm&lt;/code&gt;&lt;br&gt;
Remove, to remove a file on the directory, &lt;code&gt;rm useless-file.txt&lt;/code&gt; will remove a file name &lt;strong&gt;useless-file.txt&lt;/strong&gt;. We recommend you add &lt;code&gt;-i&lt;/code&gt; after &lt;code&gt;rm&lt;/code&gt; for the safety reason &lt;code&gt;rm -i useless-file.txt&lt;/code&gt;. Because the file that you delete will not appear in the BIN folder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;rm -r&lt;/code&gt;&lt;br&gt;
to remove a directory, &lt;code&gt;rm -r my-photos&lt;/code&gt; will remove a file name &lt;strong&gt;my-photos&lt;/strong&gt;. Again, we recommend you add &lt;code&gt;-i&lt;/code&gt; for the safety reason &lt;code&gt;rm -r -i my-photos&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;That is, let me know in the comment which your favorites command. &lt;/p&gt;

&lt;p&gt;Sources:&lt;/p&gt;

&lt;p&gt;Cover Post &lt;a href="https://unsplash.com/photos/mP7aPSUm7aE"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>terminal</category>
      <category>tutorial</category>
      <category>macos</category>
    </item>
  </channel>
</rss>
