<?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: inputduck</title>
    <description>The latest articles on DEV Community by inputduck (@inputduck).</description>
    <link>https://dev.to/inputduck</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%2F608451%2F82566215-c218-4ebd-a329-f76bd935920b.jpeg</url>
      <title>DEV Community: inputduck</title>
      <link>https://dev.to/inputduck</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/inputduck"/>
    <language>en</language>
    <item>
      <title>Virtual Pet Fish - Progress update 29th June</title>
      <dc:creator>inputduck</dc:creator>
      <pubDate>Wed, 29 Jun 2022 18:35:39 +0000</pubDate>
      <link>https://dev.to/inputduck/virtual-pet-fish-progress-update-29th-june-3km3</link>
      <guid>https://dev.to/inputduck/virtual-pet-fish-progress-update-29th-june-3km3</guid>
      <description>&lt;p&gt;First of all, I tried to recreate the original QBasic version as it would have appeared in the DOS Prompt all those years ago. But with HTML and CSS. I probably could have made it with Bash, but learning Bash just for a screenshot felt like more hassle that necessary.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q6hPUNS9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5w44tvvnb9ycnvuxvucm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q6hPUNS9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5w44tvvnb9ycnvuxvucm.png" alt="Image description" width="542" height="638"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This was as close as I could get to a visual of what the old game looked like. Cheap and easy and actually strangely exciting for 12 year old me.&lt;/p&gt;

&lt;p&gt;And I spent the majority of my time today trying to get the thing to look somewhere close, whilst being useable and not just ascii. I think i have something. It looks old school, but I think it will do everything i need it to. Ladies and gentlemen, I present, Fish Tank v2&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NcSHvNMI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m0dd2nhg94w8to53f68k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NcSHvNMI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m0dd2nhg94w8to53f68k.png" alt="Image description" width="880" height="379"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's not sparkling or anything, but I like it so far. I have made a grid of 24 squares by 8 squares that the fish will move around on. I arranged them with flexbox and I sort of have an idea of what I will do to make the fish move around. But I don't want to say too much about it in case I mess it up and have to start again. Essentially the shape of the fish is made up of 5 styled classes, the body, the head, the head curve (so it doesn't look too much like an orange pill), the tail and the tail curve. The fish will be placed by adding the class to the fish tank grid cells and when it moves, taking that class away. &lt;/p&gt;

&lt;p&gt;I also realised that I would need to make another version of the fish that faces to the left, for when it swims to the left. &lt;/p&gt;

&lt;p&gt;I feel strangely proud of the thing.&lt;/p&gt;

&lt;p&gt;Also, I have decided to name the fish Bread after a fish that I had at university. But also, the food that it eats will be slices of bread. So I don't know if that's going to be too confusing.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Remaking my first childhood project - a virtual pet fish</title>
      <dc:creator>inputduck</dc:creator>
      <pubDate>Tue, 28 Jun 2022 10:45:19 +0000</pubDate>
      <link>https://dev.to/inputduck/remaking-my-first-childhood-project-a-virtual-pet-fish-3c7i</link>
      <guid>https://dev.to/inputduck/remaking-my-first-childhood-project-a-virtual-pet-fish-3c7i</guid>
      <description>&lt;p&gt;When I started learning how to code, my first language was Microsoft QBasic. I was learning on an old IBM 286 that my dad found in storage at the place he worked and I had decided that I was going to make a pet fish. It would swim, it would eat, it would play paper, rock, scissors with me...Basically I wanted a tamagotchi. &lt;/p&gt;

&lt;p&gt;I got to a point where an animation would play of the little ascii fish swimming from left to right and then you would choose what you wanted to do. I learned how to make a little animated slice of bread that would disappear. I learned how to make the fish "randomly" swim up or down as it moved across the screen. And that's as far as I got before the computer completely failed and I lost the whole thing. But that project has always been in the back of my mind.&lt;/p&gt;

&lt;p&gt;So I am starting it again. But differently. &lt;/p&gt;

&lt;p&gt;I am going to make it in HTML, CSS and Javascript. It will have the little aquarium animation. It will have the bread eating animation. It will play paper, rock, scissors. But it will do so much more.&lt;/p&gt;

&lt;p&gt;I am still working out what I want to do with it in general. I just know that 12 year old me would be really happy to see this project come to completion after losing it so many years ago.&lt;/p&gt;

&lt;p&gt;This is basically where I am going to talk through what I have learned, what I am doing, how I am doing it. I want to make a record of the process to give myself the chance to solidify my learning, but also I wanted to be able to show this to other people who might be interested. They say that the best way to learn is to teach, so that's my plan.&lt;/p&gt;

&lt;p&gt;}0D&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Parts of the input element</title>
      <dc:creator>inputduck</dc:creator>
      <pubDate>Sun, 04 Apr 2021 20:07:15 +0000</pubDate>
      <link>https://dev.to/inputduck/parts-of-the-input-element-594a</link>
      <guid>https://dev.to/inputduck/parts-of-the-input-element-594a</guid>
      <description>&lt;p&gt;I have struggled with the input element a lot in my HTML journey. It's something that I find quite daunting for some reason. So I decided to go over it again and make notes to explain it to myself. Then I thought that I would put those notes here just in case they might be helpful to someone else.&lt;/p&gt;

&lt;p&gt;So...the syntax goes as follows (not necessarily in this order, this is just the order I learned it)&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;label for="house"&amp;gt;
&amp;lt;input id="house" type="radio" name="accomodation" value="house" default checked&amp;gt;
&amp;lt;/label&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Label for... This is the way that you connect the word "house" with the input on the form. The label is to help people understand what they are clicking on. It also helps screen readers or other accessibility software describe the site in a useful way to those who need it. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;input id... This should be the same as the label so that they are connected and people will know what they are clicking.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;type... This can be a number of different things. Radio buttons, checkboxes and text inputs are just a few examples.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;name... This is the name of the group of options you can select from. Any elements with the same name will be grouped together. In the case of radio buttons, only one option with the name accomodation would be selectable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;value... This is the one that always baffled me until today. Value is how the information from the form will be stored. If not specified, the value for "value" when it is selected will be "on". This is obviously not very useful if you have a bunch of different information on one form. Specifying a value in this part will mean that the information will be understandable when it is processed. In this example the information sent when the form is submitted would be "accomodation=house" because the value is set to "house".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;default... If nothing is selected and the form is submitted, the default selection will be chosen. This has different outcomes depending upon the type of input used. For radio buttons and checkboxes it sets the option as "checked". For text boxes and passwords it is used to define the text that appears in the boxes before they are interacted with. For buttons it is used to define the text written on the button.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;checked... As far as I am aware (meaning that I can't find any information to the contrary) checked is only used with radio buttons and checkboxes and serves the same function as using default. Please do let me know if that's wrong.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It's definitely not a full list of all the options available, but I know that I understand it a lot better than I did before. I think that explaining a system in your own words helps you understand what that system does and solidifies what you have learned. That's the main reason I have written this. If you see anything wrong here, please let me know so that I can learn from it. &lt;/p&gt;

&lt;p&gt;Finally, please don't assume that I know what I'm talking about. This is literally just a longer form version of the notes I took while I was working through the input section of my web development course. I might be wrong about some part or all parts of it. &lt;/p&gt;

&lt;p&gt;Much Love,&lt;/p&gt;

&lt;p&gt;Anton&lt;/p&gt;

</description>
      <category>html</category>
      <category>codenewbie</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
