<?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: Angie Bowen</title>
    <description>The latest articles on DEV Community by Angie Bowen (@angelabowen).</description>
    <link>https://dev.to/angelabowen</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%2F971156%2F233ef215-9dd9-4df3-a0ed-c952d2053194.jpg</url>
      <title>DEV Community: Angie Bowen</title>
      <link>https://dev.to/angelabowen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/angelabowen"/>
    <language>en</language>
    <item>
      <title>How One Week of CS50 Changed the Way I Think About Coding</title>
      <dc:creator>Angie Bowen</dc:creator>
      <pubDate>Wed, 14 Dec 2022 06:19:55 +0000</pubDate>
      <link>https://dev.to/angelabowen/how-one-week-of-cs50-changed-the-way-i-think-about-coding-2233</link>
      <guid>https://dev.to/angelabowen/how-one-week-of-cs50-changed-the-way-i-think-about-coding-2233</guid>
      <description>&lt;p&gt;A few years back I attempted &lt;a title="Harvard CS50" href="https://cs50.harvard.edu/x/2022/" rel="noopener"&gt;Harvard's CS50&lt;/a&gt; after seeing how often it was recommended as an invaluable resource to self taught programmers. Unfortunately, CS50 is heavily lecture/video oriented and I have sensory issues when it comes to watching the videos. I never even made it through the first lecture.&lt;/p&gt;

&lt;p&gt;After coming back to web design and discovering that, this time, I was much more interested in the development side of things, I decided to check out CS50 again. I was delighted to find that they now had accessibility options, including full transcripts of the lectures which I could follow along with.&lt;/p&gt;

&lt;p&gt;As a side note, my example here is but one of many which shows why &lt;a title="Introduction to Web Accessibility" href="https://www.w3.org/WAI/fundamentals/accessibility-intro/" rel="noopener"&gt;accessibility on the web is necessary&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;Programmers Solve Problems&lt;/h2&gt;

&lt;p&gt;Programming is not about the code you write nor the language you write it in. Programming is about solving problems. Then CS50 broke problem solving down to this most basic element of computer science.&lt;/p&gt;

&lt;blockquote&gt;Problem solving is the process of taking some input (a problem that needs to be solved) and generating some output (the solution to the problem).&lt;/blockquote&gt;

&lt;p&gt;I saw this lesson cemented when I moved on to week 1 and started doing the exercises in C, a language I've never even looked at before. I found myself not worrying about the syntax or trying to remember terms. Instead I was focused on how the particular language I was working with, C, and seeing how it can be used to solve problems.&lt;/p&gt;

&lt;h2&gt;Programming Logic&lt;/h2&gt;

&lt;p&gt;Ultimately, when using a programming language, it comes down to figuring out how to solve a problem within the limitations of that specific language. This is why it's more important to be fluent in programming logic than in any one particular language.&lt;/p&gt;

&lt;p&gt;To begin to understand programming logic you need to understand how programming a computer actually works. How do we give a computer instructions? How does the computer process those instructions?&lt;/p&gt;

&lt;h3&gt;Binary&lt;/h3&gt;

&lt;p&gt;We communicate with computers using a binary number system consisting of 0 and 1, with a &lt;strong&gt;bit&lt;/strong&gt; being each individual binary digit. Computers are made up of billions of transistors that can be switched on and off, manipulating the flow of electricity. A bit is represented by turning a particular switch on or off to represent a 0 or 1. Different types of information is conveyed using patterns of 1s and 0s.&lt;/p&gt;

&lt;h3&gt;Algorithms&lt;/h3&gt;

&lt;p&gt;The next step in understanding programming is understanding the &lt;strong&gt;algorithm,&lt;/strong&gt; the step by step instructions that we, as programmers, feed to the computer allowing it to solve a problem (transforming input to output). It's funny that I had always heard so much about the algorithm and it was always made to seem like such an illusive thing. Probably because no one ever knows how google's seo algorithm works. But, though the practice is hard, it's really such a simple concept.&lt;/p&gt;

&lt;p&gt;An algorithm can be written in any programming language, expressed using a flow chart, or with pseudocode.&lt;/p&gt;

&lt;h3&gt;Pseudocode&lt;/h3&gt;

&lt;p&gt;If you had to be completely fluent in one language and one language only, it should be &lt;strong&gt;pseudocode&lt;/strong&gt;. Okay, that's kind of a trick answer since pseudocode isn't really a language at all. It consists of writing out the algorithm, the steps that the computer must perform, in your own written/spoken language.&lt;/p&gt;

&lt;p&gt;The example below from CS50 covers the important elements common to all programming languages. It's best to write your pseudocode with the terms used in most languages such as if, else if, else as well as the proper indents.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Actions / verbs -- pick up, open, look -- are referred to as &lt;strong&gt;functions&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Branches that lead to different paths -- if, else if, else -- are called &lt;strong&gt;conditionals&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Questions that decide where we go, true/false statements -- is earlier, is on, is later -- are &lt;strong&gt;expressions&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Words that make us repeat parts of the program -- go back to -- are &lt;strong&gt;loops&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Pick up phone book
Open to middle of phone book
Look at page
  If person is on page
    Call person
  Else if person is earlier in book
    Open to middle of left half of book
    Go back to line 3
  Else if person is later in book
    Open to middle of right half of book
    Go back to line 3
  Else
Quit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;I never would have thought that CS50 Week 0, a lesson I assumed would be more setup and prep than anything, would teach me such an important lesson. Whenever I thought of programming before I always thought of specific languages. Now the way I think has shifted and instead of considering programming languages, I consider the language of programming.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>computerscience</category>
      <category>todayilearned</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
