<?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: rr-h</title>
    <description>The latest articles on DEV Community by rr-h (@riwprh).</description>
    <link>https://dev.to/riwprh</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1175719%2Ff9218f7a-b2e6-4e82-af67-7db0a6b3c7b6.png</url>
      <title>DEV Community: rr-h</title>
      <link>https://dev.to/riwprh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/riwprh"/>
    <language>en</language>
    <item>
      <title>Starting Out</title>
      <dc:creator>rr-h</dc:creator>
      <pubDate>Tue, 03 Oct 2023 10:45:58 +0000</pubDate>
      <link>https://dev.to/riwprh/starting-out-5fbo</link>
      <guid>https://dev.to/riwprh/starting-out-5fbo</guid>
      <description>&lt;h1&gt;
  
  
  Basics of Programming
&lt;/h1&gt;

&lt;h6&gt;
  
  
  Date 02-10-2023
&lt;/h6&gt;

&lt;h3&gt;
  
  
  Resources
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://youtu.be/8mAITcNt710?si=XU1UtrT6-LPCKc7K"&gt;Video Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cs50.harvard.edu/college/2023/spring/notes/0/#scratch"&gt;CS50 Harvard Notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Concepts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Computer Science&lt;/li&gt;
&lt;li&gt;Computational Thinking&lt;/li&gt;
&lt;li&gt;Problem Solving&lt;/li&gt;
&lt;li&gt;Inputs, Outputs&lt;/li&gt;
&lt;li&gt;Representation | Unary, Binary, Decimal, ASCII, Unicode, Running Times&lt;/li&gt;
&lt;li&gt;Pseudocode&lt;/li&gt;
&lt;li&gt;Scratch | Functions, Arguments, Return Values, Variables, Boolean Expressions, Conditionals, Loops, Events, Threads&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Notes
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Binary and Computing
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Computers operate using binary, with bits representing zero or one.&lt;/li&gt;
&lt;li&gt;Zeros signify "off", and ones signify "on"&lt;/li&gt;
&lt;li&gt;Computers consist of millions of transistors that switch on and off.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Lightbulb Analogy
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;A single lightbulb can only have two states: off (zero) or on (one).&lt;/li&gt;
&lt;li&gt;Multiple light bulbs offer more options and states.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Binary in Text
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Just as numbers use binary patterns of ones and zeros, letters are also represented in binary.&lt;/li&gt;
&lt;li&gt;The ASCII standard maps specific letters to numbers, e.g., A to 65.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Binary in Text Messages
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Text messages are encoded in binary, representing numbers.&lt;/li&gt;
&lt;li&gt;For instance, a message might be represented as 72, 73, and 33 in binary to signify - Hi!&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Problem-Solving in Computing
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Problem-solving is central to computer science and programming.&lt;/li&gt;
&lt;li&gt;Solving problems efficiently is crucial.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Phone Book Analogy
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;To find a name in a phone book, different search approaches can be used.&lt;/li&gt;
&lt;li&gt;Strategies include linear search, searching two pages at a time, and binary search by dividing and conquering.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Pseudocoding Importance
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Pseudocoding is crucial for two main reasons.&lt;/li&gt;
&lt;li&gt;It helps in logic planning before writing formal code.&lt;/li&gt;
&lt;li&gt;It provides a clear explanation of coding decisions and functionality to others.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Key Pseudocode Language Features
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Pseudocode often includes unique elements:

&lt;ul&gt;
&lt;li&gt;Verbs like "pick up," "open," "look at" that represent functions.&lt;/li&gt;
&lt;li&gt;Statements such as "if" or "else if," known as conditionals.&lt;/li&gt;
&lt;li&gt;Expressions that evaluate as true or false, called boolean expressions.&lt;/li&gt;
&lt;li&gt;Statements like "go back to line 3," referred to as loops.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;pick up phone book&lt;/li&gt;
&lt;li&gt;open to middle of phone book&lt;/li&gt;
&lt;li&gt;look at names&lt;/li&gt;
&lt;li&gt;if "Smith" is among names&lt;/li&gt;
&lt;li&gt;   call Mike&lt;/li&gt;
&lt;li&gt;else if "Smith" is earlier in book&lt;/li&gt;
&lt;li&gt;   open to middle of left half of book&lt;/li&gt;
&lt;li&gt;   go to line 3&lt;/li&gt;
&lt;li&gt;else if "Smith" is later in book&lt;/li&gt;
&lt;li&gt;   open to middle of right half of book&lt;/li&gt;
&lt;li&gt;   go to line 3&lt;/li&gt;
&lt;li&gt;else&lt;/li&gt;
&lt;li&gt;give up&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;h4&gt;
  
  
  Abstraction in Computer Programming
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Abstraction is a vital concept in programming, alongside pseudocoding.&lt;/li&gt;
&lt;li&gt;It involves simplifying complex problems by breaking them down into smaller, manageable problems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Example of Abstraction
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Think of hosting a large dinner; cooking the entire meal might be overwhelming.&lt;/li&gt;
&lt;li&gt;Abstraction involves breaking down cooking tasks into smaller steps, making the overall task less challenging.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  If Conditionals in Programming
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;"If" conditionals are fundamental in programming.&lt;/li&gt;
&lt;li&gt;They are used to check if a specific condition is met, and based on that, the program performs certain actions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Problem-Solving in Programming
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Programming often involves trial and error.&lt;/li&gt;
&lt;li&gt;When facing difficulties, it's essential to analyze the specific problem at hand, what's working, and what's not to find solutions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Challenges and Questions
&lt;/h2&gt;

&lt;p&gt;[None]&lt;/p&gt;

&lt;h2&gt;
  
  
  Reflection
&lt;/h2&gt;

&lt;p&gt;[Good, interesting session, and the teacher is so engaging. I had covered most of this when I studied computing A-level however it has been a while, and so its very nice to have a refresher.]&lt;/p&gt;

&lt;h3&gt;
  
  
  Additional Resources
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://scratch.mit.edu/projects/editor/?tutorial=getStarted"&gt;Scratch Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
