<?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: Pixel and Code</title>
    <description>The latest articles on DEV Community by Pixel and Code (@pixelandcode).</description>
    <link>https://dev.to/pixelandcode</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%2F3484324%2Fe8e02b9b-219e-4bc1-b2a1-e1cf4caaf41b.png</url>
      <title>DEV Community: Pixel and Code</title>
      <link>https://dev.to/pixelandcode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pixelandcode"/>
    <language>en</language>
    <item>
      <title>Operators and Expressions (Programing Fundamentals Part — 3)</title>
      <dc:creator>Pixel and Code</dc:creator>
      <pubDate>Sat, 02 May 2026 15:47:25 +0000</pubDate>
      <link>https://dev.to/pixelandcode/operators-and-expressions-programing-fundamentals-part-3-1hca</link>
      <guid>https://dev.to/pixelandcode/operators-and-expressions-programing-fundamentals-part-3-1hca</guid>
      <description>&lt;p&gt;Hey, everybody welcome to the 3rd part of this series. Learning fundamentals of programming like a 5 years old, before learning any programming language.&lt;/p&gt;

&lt;h2&gt;
  
  
  Operators
&lt;/h2&gt;

&lt;p&gt;Operators are special symbols that perform operations on variables and values, while expressions are combinations of variables, values, and operators that produce new results.&lt;/p&gt;

&lt;p&gt;Let's understand more clearly. Basically, mathematical operations like addition, subtraction, division, and finding the remainder are represented by specific symbols. These symbols are used in programming so that the computer understands which mathematical operation to perform.&lt;/p&gt;

&lt;p&gt;Addition: Represented by &lt;code&gt;+&lt;/code&gt;&lt;br&gt;
Subtraction: Represented by &lt;code&gt;-&lt;/code&gt;&lt;br&gt;
Division: Represented by &lt;code&gt;/&lt;/code&gt;&lt;br&gt;
Remainder (modulo): Represented by &lt;code&gt;%&lt;/code&gt; (this will output the remainder after division)&lt;/p&gt;

&lt;p&gt;Now let's see them in action:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;//you can declare 3 variables together like this&lt;/span&gt;

&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;//this will output 6, because 2+4=6&lt;/span&gt;
&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;//this will output 2, because 4-2=2&lt;/span&gt;
&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;//this will output 2, because 4 divided by 2 = 2&lt;/span&gt;
&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;//this will output 0, because the remainder when dividing 4 by 2 is 0 (since 4 is perfectly divisible by 2)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Expressions
&lt;/h2&gt;

&lt;p&gt;Expressions are combinations like &lt;code&gt;a + b&lt;/code&gt;, &lt;code&gt;b - a&lt;/code&gt;, Ext.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Data Types (Programing Fundamentals Part — 2)</title>
      <dc:creator>Pixel and Code</dc:creator>
      <pubDate>Sun, 07 Sep 2025 06:42:01 +0000</pubDate>
      <link>https://dev.to/pixelandcode/data-types-programing-fundamentals-part-2-54jb</link>
      <guid>https://dev.to/pixelandcode/data-types-programing-fundamentals-part-2-54jb</guid>
      <description>&lt;p&gt;This tutorial is part of a series I created to teach beginners the basic fundamentals of programming before diving into any specific programming language. If you're a beginner, you might want to start with the first part, but it's entirely up to you. Professionals are also welcome to read it and share any feedback on mistakes or unanswered questions, and it would be greatly appreciated if they could help address any incorrect or missing answers in the comments.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/pixelandcode/do-not-start-to-learn-programming-before-this-programming-fundamentals-part-1-4a0n"&gt;https://dev.to/pixelandcode/do-not-start-to-learn-programming-before-this-programming-fundamentals-part-1-4a0n&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In previous blog we talked about variables. Now let’s talk about data types and I will teach while assuming that you are 5 years old.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Types
&lt;/h2&gt;

&lt;p&gt;Before understanding them, its better know about some basic datatypes. May be some people will get it as soon as reading the types.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;int&lt;/strong&gt; (it is used to store whole numbers like 5,0,-3,22)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//int example
int car = 5;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;float&lt;/strong&gt; (Used to store numbers with decimal points, but with limited &lt;br&gt;
precision like 3.14, -0.5)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//float example
float car_price = 299.9999999;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;double&lt;/strong&gt; (Similar to float, but stores numbers with more precision (more digits after the decimal). Good for scientific or financial calculations.)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//double example
double pi = 3.141592653589793 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;char&lt;/strong&gt; (Stores a single character, like 'A', 'z', or '9')&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;char a = '9';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are more of them but let's get the basic understanding first from them.&lt;/p&gt;

&lt;p&gt;Understanding about writing characters&lt;br&gt;
If you have been careful, you might have noticed that in the first example we wrote:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int car = 5;   // a number
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But later we wrote:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;char a = '9';  // a character
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice the difference?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When we write a value without quotes (like 5), the computer understands it as a number that can be used in calculations.&lt;/li&gt;
&lt;li&gt;When we write something inside quotes, the computer treats it as text/character data instead of a number.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Important detail:&lt;br&gt;
&lt;strong&gt;Single quotes&lt;/strong&gt; ' ' are used for a single character (like '9', 'A').&lt;br&gt;
&lt;strong&gt;Double quotes&lt;/strong&gt; " " are used for strings (text with one or more characters, like "Hello" or "9").&lt;br&gt;
So:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;5 → number (int), can be used in math.&lt;/li&gt;
&lt;li&gt;'9' → character, not directly usable in math.&lt;/li&gt;
&lt;li&gt;"9" → string (text), also not directly usable in math.
These were some basic datatypes. There are more datatypes like string, Boolean etx but it can get confusing for you to remember too many datatypes as a beginner, and you can learn them later.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you still didn’t understand datatypes, it might be because you missed the first part where I explained it with the example of an almirah and shelves. Imagine you have a box labeled “CAR” that contains your toy car. The box is like a variable holding the value “car.” Now, to keep your boxes safe, your mom gives you an almirah with three shelves — one for books, one for stationery, and one for toys. These shelves represent different datatypes. If you place your toy on the shelf meant for books, it will be confusing and hard to find, so you must place it on the toy shelf instead. Similarly, in programming, every value needs to be stored in the right datatype so that computer can understand.&lt;/p&gt;

</description>
      <category>datatypes</category>
      <category>programming</category>
      <category>fundamentals</category>
      <category>basics</category>
    </item>
    <item>
      <title>Do not start to learn programming before this (Programming Fundamentals Part — 1)</title>
      <dc:creator>Pixel and Code</dc:creator>
      <pubDate>Sun, 07 Sep 2025 04:13:53 +0000</pubDate>
      <link>https://dev.to/pixelandcode/do-not-start-to-learn-programming-before-this-programming-fundamentals-part-1-4a0n</link>
      <guid>https://dev.to/pixelandcode/do-not-start-to-learn-programming-before-this-programming-fundamentals-part-1-4a0n</guid>
      <description>&lt;p&gt;Hello everybody,&lt;/p&gt;

&lt;p&gt;Recently, I tried learning multiple programming languages at the same time (for those curious, I was working on C, C++, JavaScript, and Python). At first, I assumed they would all be completely different since they are used for different purposes. But I quickly realized something interesting: their basics are almost the same, with only a few differences and extra features here and there.&lt;/p&gt;

&lt;p&gt;What I’m trying to say is this: the fundamentals of programming remain the same no matter which language you choose. And once you understand these fundamentals, learning any programming language becomes much easier and faster.&lt;/p&gt;

&lt;p&gt;That’s exactly why C is often recommended as the first language to learn — it gives you a clear understanding of the fundamentals. In this series, I’ll explain these fundamentals to you as if you’re 5 years old.&lt;/p&gt;

&lt;p&gt;But before we start, let me tell you this: You’ll be learning the fundamentals across multiple blogs, not in one giant post. This way, you won’t get bored reading a long wall of text.&lt;/p&gt;

&lt;p&gt;This is Part 1 of the series.&lt;/p&gt;

&lt;p&gt;So, let’s get started! 🚀&lt;/p&gt;

&lt;h2&gt;
  
  
  Variables
&lt;/h2&gt;

&lt;p&gt;Ok, let’s assume you have a toy car. You want to keep your car in a safe place so that it doesn’t get lost. So, you find a box to store it. But there’s one problem — you have multiple boxes, and you might forget which one contains the toy car. What will you do? You’ll write CAR in big letters on that box. Now you’ll always know which box holds your car.&lt;/p&gt;

&lt;p&gt;Congratulations! That’s it — you’ve already learned what a variable is.&lt;/p&gt;

&lt;p&gt;Now, let’s see how this is defined in a programming language.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int car = 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;int → This tells the computer that the box will store a whole number.&lt;br&gt;
car → This is the name of the box (the variable). Just like labeling a box CAR, this name tells you what’s inside.&lt;br&gt;
= 1; → This puts the value 1 into the box. It’s like putting one toy car inside the labeled box.&lt;br&gt;
So, this single line creates a variable named car and stores a value in it.&lt;/p&gt;

&lt;p&gt;You probably had a question in your mind now that why we write int in front of car? because computer reserves space differently for each data type. if you write int in front of the car. it will understand that user is trying to create a variable to store whole numbers, so it reserves 4 bytes in the ram for car variable but let's say that you want to store your name or may be a number something like 1.1, 2.009. What will do. Well, it will be explained later in the blog to keep you interest.&lt;/p&gt;

&lt;p&gt;if you already understood why we write int, great you can skip to next para but if you didn’t it is completely ok and let me explain you in simple language. Now we know that you have a box named CAR with car toy inside it. Let's say you need a place to keep that box now. You do not want to keep it where it can get lost, right. Your mom already knew this that if any of toys got lost, you will cry. So, she made you a little almirah (cupboard) with different shelves. On the top shelfs you can keep your books, on the second shelf you can keep your stationary and on the third shelf you can keep your toys. Now if you keep your box at some other shelf than third shelf (toy shelf) you can get confused while finding your toy car later. That is why you keep the box in the third shelf name toys. That toy shelf is the type of your data. In programming we are saying to the computer that store car variable the integer shelf.&lt;/p&gt;

&lt;p&gt;[Why variables are important? Answer is simple the data to access later. I am sure you have played a game which had score system. That score is stored in a variable. if there were no variables, maybe you would not have had scores system in games.]&lt;/p&gt;

&lt;p&gt;If you have any questions, or if something wasn’t clear, feel free to ask in the comments — I’ll be happy to explain it better.&lt;/p&gt;

&lt;p&gt;Part 2 is coming soon! The exact date depends on my motivation 😊. If I get good responses, I might publish it as soon as tomorrow. Otherwise, it could take a few days.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>basic</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
