<?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: Shariif</title>
    <description>The latest articles on DEV Community by Shariif (@djeylani).</description>
    <link>https://dev.to/djeylani</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%2F994957%2Fc2b95a1f-9268-40e8-9322-08e0d127062e.jpeg</url>
      <title>DEV Community: Shariif</title>
      <link>https://dev.to/djeylani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/djeylani"/>
    <language>en</language>
    <item>
      <title>Todo List Pure Vanilla JS</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Tue, 31 Jan 2023 02:00:43 +0000</pubDate>
      <link>https://dev.to/djeylani/todo-list-pure-vanilla-js-2af4</link>
      <guid>https://dev.to/djeylani/todo-list-pure-vanilla-js-2af4</guid>
      <description>&lt;p&gt;I love programming in JavaScript. It's so satisfying when the code works just right. I could spend all day coding, but often when I sit in front of my laptop, my mind goes blank. As soon as I step away, I come up with lots of ideas for using methods and functions, but these ideas disappear as soon as I return to my code editor. This can be very frustrating.&lt;/p&gt;

&lt;p&gt;Recently, though, I managed to stay focused on a task until I finished it, without seeking outside help. That feels amazing! It gives me a boost of self-confidence in my journey of learning programming languages. I may be a newbie JavaScript programmer, but I'm soaking up everything I can about coding. Sure, a C++ programmer might not take me seriously, but I'm floating above the clouds with my newfound understanding. &lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/djeylani/embed/JjBBZXX?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>cryptocurrency</category>
      <category>crypto</category>
      <category>web3</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>React useState explored</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Sat, 28 Jan 2023 23:40:03 +0000</pubDate>
      <link>https://dev.to/djeylani/react-usestate-explored-3ooe</link>
      <guid>https://dev.to/djeylani/react-usestate-explored-3ooe</guid>
      <description>&lt;p&gt;Programming can be a challenging and isolating experience, especially for beginners who are just starting out or struggling to improve. It's easy to fall into a self-doubt mode and question whether you are cut out for this field. But, just like anything worth doing, it takes time, effort, and patience.&lt;/p&gt;

&lt;p&gt;One way to combat these struggles is by connecting with others in the programming community. Online communities like &lt;a href="https://dev.to/"&gt;DEV&lt;/a&gt; provide a space for programmers to share their work, ask for feedback and support, and gain the encouragement they need to stay motivated and continue learning.&lt;/p&gt;

&lt;p&gt;Speaking of learning, let's take a look at an example of a function component in React that renders a list of names using the &lt;code&gt;useState&lt;/code&gt; hook. It has an &lt;code&gt;array&lt;/code&gt; of initial names called &lt;code&gt;list&lt;/code&gt; and a &lt;code&gt;state&lt;/code&gt; variable &lt;code&gt;name&lt;/code&gt; that is used to add new names to the list. The component also has an &lt;code&gt;input&lt;/code&gt; field and a &lt;code&gt;button&lt;/code&gt; that when clicked, calls the &lt;code&gt;addName&lt;/code&gt; function which adds the &lt;code&gt;name&lt;/code&gt; in the input field to the list and clears the input field. The names are rendered in an unordered list and each item in the list has a unique &lt;code&gt;key&lt;/code&gt;. This took me a long time to understand it and reproduce without references.&lt;/p&gt;

&lt;p&gt;Remember, everyone starts somewhere and the journey to becoming a better programmer is not a straight path. It's full of ups and downs, but it's through these struggles that we grow and learn. So, don't give up, keep pushing through the hard times, and know that you are not alone. There's a community out there that understands your struggles and is here to support you every step of the way.&lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://codesandbox.io/embed/todo-list-with-plain-javascript-lxywxu"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Simple Responsive Login Form</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Sat, 21 Jan 2023 20:22:20 +0000</pubDate>
      <link>https://dev.to/djeylani/simple-responsive-login-form-4dnc</link>
      <guid>https://dev.to/djeylani/simple-responsive-login-form-4dnc</guid>
      <description>&lt;p&gt;It has been long since I last shared anything here. And the reason for that is too long to summarize here, so I will spare you the boring details and get to the business at hand. Let us talk about responsive login form.&lt;/p&gt;

&lt;p&gt;I woke up early today to a post about a simple login form for a website and the coder was so kind enough to post the codes as well. I read the code and found that there were so many unnecessary &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; inside a form. I copied the code (by typing) and was halfway through copying the style when I noticed that the page was not responsive. I thought, why would you make an unresponsive page in these times where every user has a different devices with different widths and heights, so shouldn't we as developers make sure that our designs are responsive? Soon the websites we will have to design and build will be a mix of 3D and 2D browsers, some of which are already out there.&lt;/p&gt;

&lt;p&gt;And don't get me started on the way visual data is being bend and twisted along with the AI trend that's has everybody talking. Anyhow, this is my own little experiment on &lt;code&gt;calc()&lt;/code&gt; and it has done me a wonderful service. This is the tool that will give you responsive design, and don't forget the property value &lt;code&gt;vmin, vmax&lt;/code&gt; and &lt;code&gt;vw, vh&lt;/code&gt; as they will give you a responsive effect. &lt;/p&gt;

&lt;p&gt;For more info check &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/calc"&gt;calc()&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/djeylani/embed/vYapwxo?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
    </item>
    <item>
      <title>Counter Styled &amp; JavaScripted</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Fri, 06 Jan 2023 20:08:37 +0000</pubDate>
      <link>https://dev.to/djeylani/counter-styled-javascripted-gbc</link>
      <guid>https://dev.to/djeylani/counter-styled-javascripted-gbc</guid>
      <description>&lt;p&gt;To say the least this is better than the one before. And so I must conclude that practice does make improvements in one's learning process. I now see what I did not conceive to understand before. Persistence is a needed quality to have when solo-learning..!&lt;/p&gt;

&lt;p&gt;I understand now, how to use divs and shape them. They are more flexible and easier to control and work with. HTML all in all is much easier to get the hang of, it's like building a house from the ground up. I use border and background colours heavily when I am in the process of writing because I hate not seeing what I am doing. That's why I find CSS so frustrating at times. And the browsers are even more annoying since I cannot get my content displayed the way I've painstakingly built it in one place.&lt;/p&gt;

&lt;p&gt;I think, as a beginner, I am not the only one that deals with that issue, where you spend two to three days on one project, getting everything else to work just fine, on one of these online editors and then when the finished project is transferred to the local editor hell breaks lose and you can't help but pull at your hair or bald skin, thinking why? why? why? is this happening to my project. &lt;/p&gt;

&lt;p&gt;It's a learning curve, I suppose, and the trick is to leave and then come back to it again when you have more understandings in your arsenal. Don't be shy or feel dumb for going back to basic or rewatching and refreshing your memory with stale knowledge that you have acquired at the beginning of your journey.&lt;/p&gt;

&lt;p&gt;Now, this was suppose to be a two liner comment about the counter code that I have just finished here today, but it ended up becoming what you read. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;And here I'll end with a sweep and say no more a beep, though I won't go to sleep.&lt;/em&gt;&lt;br&gt;
Thank you for reading &lt;em&gt;this deep&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;It's the&lt;br&gt;
&lt;em&gt;WILL-OF-DEE&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/djeylani/embed/OJwbZPE?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How To Reverse A String</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Mon, 02 Jan 2023 23:12:32 +0000</pubDate>
      <link>https://dev.to/djeylani/how-to-reverse-a-string-5730</link>
      <guid>https://dev.to/djeylani/how-to-reverse-a-string-5730</guid>
      <description>&lt;p&gt;This is amazing. The more I tinker, the better I pick a great understanding that makes up for all the troubles of reading, listening, writing and trying to make a sense of it all. Last night before I called in for the night, late as it was, I had an ahuuh experience of understanding about what I was actually doing. I was writing codes in JavaScript and I wasn't copying somebody else's tutorial or blog. &lt;/p&gt;

&lt;p&gt;I am happy to say that I am satisfied. Alhamdulillah, and thanks to all involved. I am pushing forward and I won't stop till I get enough. And some more...!&lt;/p&gt;

&lt;p&gt;Now this will reverse engineer whatever you write inside the input field and then saves it inside function update, and when you click on the button, you should be able to see it on the display field above what you wrote turned backward. A simple application, yet powerful capabilities. &lt;/p&gt;

&lt;p&gt;Thanks for reading and have fun coding...!   &lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/djeylani/embed/GRBqGjo?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Learning a little JS</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Sat, 31 Dec 2022 23:50:49 +0000</pubDate>
      <link>https://dev.to/djeylani/learning-a-little-js-3ccp</link>
      <guid>https://dev.to/djeylani/learning-a-little-js-3ccp</guid>
      <description>&lt;p&gt;Every small progress counts for something. There are days when I feel like I am all over the places, but then I always seem to find my way back to JavaScript. &lt;/p&gt;

&lt;p&gt;The trick, I have recently learned, is not to memories the whole thing, as it is impossible for most of us. Use and play with what you have, build something, follow along tutorials, whether they are blogs or videos, it matters not. Just don't copy and paste as it will hinder you later on in life. Happy coding to you all. &lt;br&gt;
And good luck   &lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://jsfiddle.net/Djeylani/067nmsxL/79//embedded//dark" width="100%" height="600"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Camper's Coffe Menu</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Sun, 25 Dec 2022 02:23:28 +0000</pubDate>
      <link>https://dev.to/djeylani/campers-coffe-menu-47jg</link>
      <guid>https://dev.to/djeylani/campers-coffe-menu-47jg</guid>
      <description>&lt;p&gt;pure html and CSS responsive Coffe Menu&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/djeylani/embed/WNKQGzM?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
    </item>
    <item>
      <title>What is HTML?</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Fri, 23 Dec 2022 19:53:10 +0000</pubDate>
      <link>https://dev.to/djeylani/what-is-html-59oj</link>
      <guid>https://dev.to/djeylani/what-is-html-59oj</guid>
      <description>&lt;p&gt;I came to know about the internet when I was twelve or thirteen, give or take, and I wasn't - back then - even surfing on the net. I was playing with Microsoft paint, if you remember Windows XP before Vista changed the whole foundation of Windows. At that time, I had no care for software or anything that complicated. &lt;/p&gt;

&lt;p&gt;I was just amazed at the fact that I could move the mouse and the screen would show its movements. I would click on the clicker and if I held it and moved the mouse, the paint canvas would paint. And I was proud, to say the least, of getting the hang of it and soon surpassing my mentor in just one week. Back then, the computers were big and square design with a loping back that reminds one about Majin Buu's top knot-like head feeler. And don't worry if you don't get the meaning. It's called dry joke, like HTML without CSS. Anyhow, moving on.&lt;/p&gt;

&lt;p&gt;When I was a kid, older than early teens but younger than out of teens, I was too hyperactive to be able to sit down for longer than 10 minutes. And because of it, I was unable to actually do anything with the little knowledge that I had about computing. I was introduced to python when I was 16 years old, or was it 17? yeah, time eludes me. So let us just say, in between those years I was introduced to python and I loved it. But had no aptitude for it. And later on I was introduced to hacking, but I was busy chasing girls and figuring out who I really was. Growing up is a messy business if you don't have a stable mentor that understands your predicament and takes your age into the equation and patiently sticks by you, even when you seem to be a hopeless case. I wish I could say that I had such a person in my life. But no, reality is far far removed from movie depictions, so believe me when I say this, I was hit with facts and life painted a different picture for me, than what I had planned out, shaping me through the actions and wordings that was being uttered by me, myself and I. That road took me to a world that has judged me, questioned me and made me prove my worth each and every time the toll bridge was raised before me. I got tired of it, in the end and just left all that to itself. It was exhausting. &lt;/p&gt;

&lt;p&gt;I found freeCodeCamp, where I began my first journey as a student learning about HTML, CSS and JavaScript, the last of which I fell in love with. I couldn't get enough of it. And so my story of how I got into coding is done here. &lt;/p&gt;

&lt;p&gt;To those of you, who are intimidated my look of codes, be they HTML, CSS or Python for that matter, remember that it is just a language of a sort. You learned this language called English, and might be you already speak more than one language. Well, coding is essentially the same thing. It is a language invented for us to interact with the computer, the dumbest helper that needs exact instructions on how to help.&lt;/p&gt;

&lt;p&gt;In the case of Hyper Text Markup Language or HTML, you have &lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/code&gt; which is not a tag. It is "information" for the browser. It tells the browser what type of document to expect. And therefore it &lt;em&gt;must&lt;/em&gt; be included into your code. And in HTML5 it has been made easier for us to use. For more info regarding the DOCTYPE refer to &lt;a href="https://www.w3schools.com/tags/tag_doctype.asp" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The next thing we will touch upon is the &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; tag. That is an open tag, or an HTML element of which you will hear the tag reference being used more than element, unless you are dealing with Cascading Stylesheet also know as CSS. And no, we will not touch upon here on this post. &lt;/p&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; element or tag can be considered as the root or the container of all other tags, excluding the &lt;code&gt;&amp;lt;!DOCTYPE&amp;gt;&lt;/code&gt; that identifies to the browser what type of documents it sits on. The closing tag &lt;code&gt;&amp;lt;/html&amp;gt;&lt;/code&gt; has forward slash and it is an indicator that tells you the tag of html ends here with the closing tag. And all the tags found inside it are valid code blocks for the browsers that displays them. &lt;/p&gt;

&lt;p&gt;Of course you need more code blocks before you are actually ready to display your website's content through the browsers. So let us just list the remaining tags here. Inside the open and closing tags of your &lt;code&gt;&amp;lt;html&amp;gt;&amp;lt;/html&amp;gt;&lt;/code&gt; the elements that has to be used, must be done so in a structural order. And I'll show you just what that entails.&lt;/p&gt;

&lt;p&gt;First comes &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; tags, inside the root tags comes the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tags and here you place meta data, links and the title of the page. And then beneath the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; tags, but still inside the &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; tags you need another element called the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag. This is where the content of the website is put and here is where all the contents that the browser displays are found. From navigation, home, about etc. all are inclusive to the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Every developer who has made or published a website has used these two elements to display content. And they are &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tags where &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; or header 1 goes down all the way to header 6 or &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt; and the &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag or paragraph tag that doesn't have any siblings like the headers. And the term sibling is actually used in CSS when styling the page through selectors - another phrase - and such methods, so please don't quote me on this when explaining about &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; headers.  &lt;/p&gt;

&lt;p&gt;Now let us look at what we have covered, and then I will use these tags to create a simple web site.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &amp;lt;!DOCTYPE html&amp;gt; declaration defines that this document is an HTML5 document&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The  element is the root element of an HTML page&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;/p&gt; element contains meta information about the HTML page&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;/p&gt; element specifies a title for the HTML page (which 
is shown in the browser's title bar or in the page's tab)&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;/p&gt; element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;/p&gt;
&lt;h1&gt; element defines a large heading&lt;/h1&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;/p&gt;
&lt;p&gt; element defines a paragraph&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let us use these tag elements and make a simple website.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta name="here goes the name of the meta" content="here goes the meta information"&amp;gt;
    &amp;lt;title&amp;gt;Here Goes The Title&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;This is header one. Change the number to see the differences. It takes up to 6&amp;lt;/h1&amp;gt;
    &amp;lt;p&amp;gt;Here is where you put the paragraph content&amp;lt;/p&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that in a nutshell is how you create a website.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>webdev</category>
    </item>
    <item>
      <title>freeCodeCamp Tribute Page Challenge - Malcome X</title>
      <dc:creator>Shariif</dc:creator>
      <pubDate>Fri, 23 Dec 2022 00:42:24 +0000</pubDate>
      <link>https://dev.to/djeylani/freecodecamp-tribute-page-challenge-malcome-x-10ah</link>
      <guid>https://dev.to/djeylani/freecodecamp-tribute-page-challenge-malcome-x-10ah</guid>
      <description>&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/djeylani/embed/rNrVwOz?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
    </item>
  </channel>
</rss>
