<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mark on Medium]]></title>
        <description><![CDATA[Stories by Mark on Medium]]></description>
        <link>https://medium.com/@markmoser?source=rss-344b3436274f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*89eCw0v25f9NDwaSdFq0zw.jpeg</url>
            <title>Stories by Mark on Medium</title>
            <link>https://medium.com/@markmoser?source=rss-344b3436274f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 06:27:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@markmoser/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[what even is a computer?]]></title>
            <link>https://medium.com/@markmoser/what-even-is-a-computer-b8f5fdd131cc?source=rss-344b3436274f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8f5fdd131cc</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[computing]]></category>
            <category><![CDATA[discrete-mathematics]]></category>
            <category><![CDATA[basics-of-programming]]></category>
            <dc:creator><![CDATA[Mark]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 18:08:42 GMT</pubDate>
            <atom:updated>2026-10-09T18:08:42.872Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*ESOr6JM7-8JuTKOIskpuxg.png" /><figcaption>Screenshot from logic.ly/demo of one bit adder</figcaption></figure><p>What is a computer? What does it mean to compute? What is computer science?</p><p>A computer transforms information. Simply to compute means to take an input of some kind, do work on it, and return an output, preferably by a machine. I have spent hours trying to make this concept simple and I quickly run out of time. However, for those not of the faint of heart, I will explain this again in a manner that should hopefully inspire a basic understanding. Now I will get back to my definition. You probably think of computing as something to the effect of input [magic] output. If not, lets go with that for my explanation moving forward. I type onto my keyboard and words show up. The input was your keystrokes and the output was the words showing up on the screen. The input could be your mouse and the output can be the pointer moving around the screen.</p><p>The input can be anything really as long as it may be represented digitally. There are obvious limitations. You cannot input your four-year-old son into the computer and output super boy genius. As far as I can tell, because I tried to do that and it did not work. If I do get it to work then I will let you know. For now thing of the input as numbers and the output as numbers.</p><p>For a practical real life example, lets use our calculator. Think of the buttons as a standard input and the screen which displays everything as a standard output. Let us start calling input/output — I/O. The calculator receives standard input [does magic] returns an output. I will us the example we wanted to multiply 13 by 17. Input it into your TI 34x and the calculator spits out 221. Lets check that by hand. Follow me for a second, I am going to do some elementary math for a reason. Three times seven plus three time ten plus ten times seventeen is twenty-one plus thirty plus one hundred seventy which equals two hundred plus twenty one which is two hundred twenty one or 221 the same as the calculator. I recommend frequently practicing with your third grade math skills because when we run out of power they are going to need some of us to recreate everything from scratch again. I typically do this at restaurants when solving for the tip. I encourage you to write that out by hand to create a visual of the numbers. Seriously, whoever thought that people had different learning styles never tried teaching math to an audio learning.</p><p>You may be wondering why I tediously multiplied 13 by 17 by hand but the point if you were following along at home was I followed a set of instructions I learned as a child. I am sure you heard the term algorithm before which is just a set of instructions. For now, let’s think of the magic computer box as a child that will follow your set of instructions and refuse to think outside the box. For instance, I can tell my four-year-old to go look for his shoes in my room and he will walk into the room and come back and say its not there. Treat the computer like I treat my four-year-old in this situation. Give him very, very specific instructions. “Go into my room, open the closet, look on the floor, and locate your green crocs. Then pick them up and return them.” You actually have to be more matter of fact with the computer. My son only needed the instruction to open the closet and pick up the shoes. If you stopped there, the computer did not successfully find his shoes.</p><p>The computer can do much more than just multiply 13 by 17. The computer can take the product and input that product into another program. If all the computer can do for us is faster calculations than it probably is not that useful. The true power comes from the ability to pipe programs together. For instance, lets say you needed to know the capacity of your venue and you had 17 rows of 13 seats so you plugged that into your calculator. Now lets say you received 117 RSVPs which may or may not have plus ones. So you open each one and count them up and find out that you have 89 plus ones. Okay, so we have 117 + 89. The calculator says 206. I’m going to do it by hand again because I want to model the instructions to the magic calculator, nine plus seven is six, carry the one, one plus one plus eight is ten, carry the one, one plus one is two. Left to right the digits are two-zero-six or two hundred-six.</p><p>Now you may be correctly thinking the next thing we need to do is make sure that everyone fits. Let’s take a quick calculation does two hundred-six people fit in a venue with two hundred twenty-one. Duh, I suppose but in computer science language that returns true.</p><p>The strength of computation is piping I/O together. Take all three calculations and put them together and you get a more advanced program than your standard calculator. Here is how it works. First think of the information we needed. We need the number of seats in a row, the number of rows in the venue, the number of rspvs, the number of plus ones. Second, what information do we want to receive? Well we want to know if the venue is large enough to fit all of the attendees.</p><p>Lets start like this take the size of the venue and instead of giving the answer, use the answer as an input to the comparison to the number of attendees. The first program takes two numbers and outputs their product, simple enough. The second program takes the output of the first program and uses it as on of its inputs.</p><p>13, 17 [magic] -&gt; product, 206 [magic] comparison</p><p>If you can follow, we took the numbers 13 and 17 multiplied them together and then their product was compared to 206. The result returned an output of true. Here is where the power of computing begins to hopefully make sense. We now have our own magic box called a program that answers the question is the venue big enough?</p><p>Lets give the program four inputs: number of seats per row, number of rows, number of RSVPs, number of plus ones.</p><p>Our magic box now does this 13,17,117,89 [magic] true</p><p>Right about now you may be thinking this is very trivial, but let me assure you the point isn’t the simple math. The point is stringing inputs and outputs together makes a program and can be as simple or complex as your imagination and logic represented in a series of 1s and 0s. Think of the inputs as parameters and the outputs as return values.</p><p>Think of computation like this now. A program takes a parameter, does work, then returns a value. “Does work” is unlimited because a program is free to call other programs. Here is where the power of computation hopefully makes sense. A program on a computer has access to a light switch, a clock, and your television. The program receives the change to the light switch, the state of the light switch, the current time. If you change the light switch from on to off between the hours of six a.m. and seven a.m., then the tv will turn and display a message that says good morning early bird.</p><p>How could do you do this with arithmetic? Well we have more than just arithmetic. What we actually have is logical operators which perform comparisons. Logical comparisons in the form of given a statement is it true or false? Computers represent everything with the simple AND, OR, and NOT logical operators. They are simple enough to grasp.</p><p>I am a man AND I am a woman. I am a man OR I am a woman. I am a man… NOT.</p><p>I hope you appreciate my nineties reference. Put another way, there are two statements: 1. I am a man; 2. I am a woman</p><p>If you have an understanding of the powers of two, then you can quickly calculate there are four possibilities to the truth and falseness of these statements. Confession. This may be easier to wrap your head around if you change the second statement to something unrelated to the first such as I am 37 years old.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*qGLdI7bQMzCYRVu2clnihg.png" /><figcaption>]</figcaption></figure><p>Think of this as what is called a truth table. There are four unique possibilities to the truth of any two statements. Now think of the next truth evaluation. I am a Man and I am a Woman. You might conclude that unless both statements are true than the statement is false.</p><p>For the statement I am a Man AND I am a Woman to be true then the statement I am a Man must be true and the statement I am a Woman must be true. If both or either of the two statements are false then the AND operation returns false. See the truth table below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*MgTPZs_BDe5FFu5XRVmPYw.png" /></figure><p>This hopefully is very obvious and trivial. Concretely, the transphobes amongst you might be thinking the first and fourth rows are not logically possible. Let’s say for argument that you are correct. This brings up a great aside about computers and that is validating inputs. If you do not validate the input, the computer does not care. It will try to compute anything you put into it. Well anything but my four-year-old. Forget about the concrete statements themselves. Just picture them as statement a and statement b.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*RkTlH99iIBKQYttr2fj3UA.png" /></figure><p>Look at the OR operator truth table. Notice, that if either statement a is true or statement b is true then the statement “a OR b”/“I am a Man OR I am a Woman” is true. Hopefully that is painfully obvious.</p><p>Very quickly let’s look at the NOT operator truth table. It only has 2 to the power of 1 possible answers for those of you good with the powers of 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*xjrVtNYYeCJoWw6JKBxrMw.png" /><figcaption>]</figcaption></figure><p>You should probably read the not operator as I am NOT a man but I am nostalgia for the 90s version of “that’s what she said.”</p><p>Now lets get rid of all this tedious words that is making you think this is an OpEd about trans people. They’ve suffered enough, can’t we all just get along?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*9u4v1Ur7-dShkIE5jfCgjg.png" /></figure><p>I did mention 1s and 0s. In case you are unfamiliar with binary, it just means there are two possible inputs and outputs. True/False; On/Off; or 1/0. Lets just go with 1 or 0 because I can then write truth tables 8 times as fast and it’s a lot easier to conceptualize later. But eventually we are going to turn them into pictures so it’s even easier to read.</p><p>Now here is the building block of all computer science these three logical operators that you my loyal reader now understands. AND, OR, and NOT. It takes a couple weeks of digital design class when you are learning Boolean algebra to realize that you can turn these operators into the magic computation that runs on our programs. First just see the tables with the 1s and 0s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*z3nq9nqUJG6gwApMQn2t_Q.png" /><figcaption>]</figcaption></figure><p>By now, the point is that you can transform inputs into outputs with a program which is done through magic. Next I would like to demystify some of the magic. Before I do, I must stress that the power of computation is creating unique tasks and then reusing those unique tasks over and over again by using them as building blocks.</p><p>As we just went over with the truth tables, part of the magic is that computers operate on a series of transistors that are either up or down. They are transformed as they pass through the gates. For instance, a gate receives two inputs. If one is up and the other is down then it will output up or down based on whether it is an AND gate or an OR gate. Since we can represent the gates as logical operators and we can represent the switches as numbers, we then optimize with math. Go figure. This is like the second thing you learn after you figure how to make programs execute without failing, getting stuck in a loop, or setting anything on fire. The math is known as Boolean algebra. Look up George Bool the mathematician. He was pretty cool. Boolean algebra uses binary and represents logic gates with math notation.</p><p>Computer scientists have to learn binary and it can be annoying. Because it goes 0,1, 10, 11, 100… which I read as zero, one, ten, eleven, one hundred… The thing is you may notice that the truth tables are numbered sequentially in binary in the form 00, 01, 10, 11 which is 0,1,2,3. 10 becomes 2 in binary because 10 represents the number of whatever base you are in. We have 10 digits on our hands. Well most of us do. Inigo Montoya killed the guy with eleven fingers and there may be more. I’m not sure. Since most of us do we developed base 10. The people inventing computers only had the ability to represent inputs with switches so on/off, true/false, binary resulted. The current switch we use in our transistor is still a switch. It turns out that math is consistent. You can use any base system and represent the equivalent in any other base system. If we only had 8 digits than computer science would have been much more intuitive for people because base 8 is known as an octal system and it translates well to base 2 because it is the third power of 2.</p><p>Another aside. You do not have to be great with exponents, just powers of 2. Like if you plan on becoming a computer scientist, then you should memorize the powers of 2 all the way to 10 maybe 20. 2 to the 10th power is lets see… two, four, eight, sixteen, thirty-two, sixty-four, one hundred twenty-eight, two hundred fifty-six, five hundred twelve, one thousand twenty-four, etc. 1024 might seem like an ordinary number but think kilobyte and it may make sense. Bits and bytes get really confusing. Don’t worry about it for now. There are eight bits in a byte with a total of wait for it… 256 combinations. Fun fact: half a byte is aptly name a nibble.</p><p>Now you have absolutely no idea where I am going with this. There is a good chance that I positively lost you. Here is the take away. Bits represent the physical representation of computing magic in the real world. Spoiler, magic isn’t real. We are able to compute so quickly with modern technology because we are running electricity through millions of transistors at the speed of light. We figured this out through decades of work of mathematicians and engineers. This translates to modern processors conducting billions of bit processing actions per second.</p><p>The bits can be arranged to represent numbers obviously. The logical operators can be arranged to represent arithmetic operators. There is this wonderful visual tool which represents logic gates through a standardized diagram system. Let me give you some SparkNotes, or what the cheaters used in the age before GPT. You may have heard the term nand gate technology if you ever read the specifications for an SSD. If not, an SSD is a solid state drive which operates considerably faster than a spinning HDD or hard disk drive. Essentially, the storage or hard drive of your computer hardware. If not, just no that the NAND operator is just the AND operator piped together with the NOT operator from earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*exEaQ5a9lZG7aEeoXiAdCQ.png" /></figure><p>All I did was pipe the NOT operator to a AND b. So NAND is the equivalent of NOT (a AND b)</p><p>Earlier I would have said a AND b -&gt; answer… NOT</p><p>As I mentioned, logical operators are often represented by diagrams. As the math turns out, the NAND operator can pipe to itself and become a universal operator. We made a NAND operator was by piping the NOT operator to the AND operator. You cannot create a NAND operator by piping the OR operator with itself. Hopefully the idea makes sense. For instance, take the NOT operator and pipe it to itself. You will immediately notice that it just cancels out. I am NOT NOT a man is the same as saying I am a man.</p><p>You can pipe a NAND operator to itself to create the NOT operator by simply using statement a as statement b. Hopefully a simple truth table can demonstrate this. Notice there is only two possible inputs because b equals</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*rPQLiIW9IT40d0fylQpKvw.png" /></figure><p>Compare that to the NOT operator truth table and you will see it’s equivalent. NAND is considered a universal operator. You can pipe it to itself enough to create all the other operators. Using multiple NAND gates to represent all the other gates just makes manufacturing cheaper and more efficient. Where my brain just wants to substitute the real things. Because I can’t make sense of the statement I am a man NAND I am a woman. I can make sense of I am a man AND I am a woman… NOT. I assume your brain works the same way, but I cannot be sure. I could be plugged into the matrix and you are all just simulations which exist in my mind. I’m just going to assume hard solipsism is false and your brain does work like mine because no one can technically disprove hard solipsism.</p><p>As the guy, gal, or enby writing the code, you just think about one problem at a time. I hope you noticed that when I tediously wrote out my elementary arithmetic calculations earlier for a good reason. My brain is not capable of calculating two operations simultaneously. If you wrote out the numbers, look at them. I have to multiply 7 by 3, then 10 by 3, then 17 by 10, and then add the first two products, then add that sum to the third product. If you followed that you may have noticed the pattern. <em>Number Operator Number</em>. We love operators in computer science. There are many operators that do many things. There are logical operators, arithmetic operators, assignment operators, dereference operators, pipe operators, and conditional operators to name a few. Don’t worry about them all for now.</p><p>The point about NAND gates is computer magic is very useful. Think of the magic as an encapsulated black box that gives you a contract. Provide the program an input in a specified format and it will return an output or hopefully fail loudly. I am really trying to hammer down the point about figuring out one problem at a time. Encapsulation is a wonderful thing. Input [black box] Output.</p><p>Now is a good time to talk about breaking things. Like computers have limitations. If you try to input a four-year-old or an undefined operation, then the computation will fail. For instance, what happens when you try to divide 221 by 0? Division by zero is undefined. No amount of piping computer programs together can fix that. An easier way to cause your program to break your computer is to tell it to repeat itself forever and the next thing you know it is stuck in what is known as an infinite loop.</p><p>A common computer operation is a jump back. The computing processing unit sequentially executes a set of instructions. This is arranged completely with logic gates and bits actually but not important for this point. We often times want a computer to enter a loop back so that it can do something like count the amount of RSVPs and plus ones. Are program enters a loop with the instruction to tally all of the plus ones until we reach the very last rsvp. Since we had 117 RSVPs, we should only loop 117 times before the program stops counting. For your particular experience level which is probably none, there is a good chance that you might tell the computer to keep counting while the number of plus ones is less 117. Each RSVP has one plus one so once every plus one is counted the program has no more work to be done. In this contrived example the program will keep looping back forever because there was only 89 plus ones and unless you discover that 89 is actually greater than or equal to 117 and also convince the running computer you are correct, then it will never reach the condition to end the loop. It is very easy to get stuck in infinite loops when you first start.</p><p>Thankfully, infinity, contrary to popular belief, is not actually a number but just referring to the concept of increasing without bounds. Forever growing if you will. I do not know why this is so hard for people to understand, especially sci-fi writers. Computers will eventually run out of memory, or they can be shut down and reset. It’s really not that big of a deal. In fact, you pretty much want to play around with programs until you understand them if you want to learn how to write your own.</p><p>You are reading this because you want to learn. If you do end up writing a few programs, go nuts. Break the program actually. Breaking programs and then figuring out why they are broken is how you learn. Like this is just the fundamental understanding of what computing is. The people that learn how to code and I mean love solving problems. They do it by realizing they have a problem that can be solved by a computer. Then they figure out how to make the computer solve it. It’s basically that easy. Then there are other people who saw all the developers getting paid really well during covid and also wanted to get paid stupid amounts of money to work from home. Then they discovered vibe coding. I do not recommend that path. I went down it for a short while and it turns out if you outsource your thinking to artificial intelligence it turns out what you learned is mostly artificial.</p><p>Hopefully, I can circle back and you can follow what I successfully demonstrated. Logical operators can be represented and engineered on circuit boards. They can be arranged in a way to represent arithmetic operations and comparisons. I didn’t mention this before but if you are curious or already assumed, we can represent letters by simply assigning them a numerical value. Numbers, letters, and symbols can be assigned a numerical value which is represented with bits. Look up the ASCII table. Bits once conceptualized as a base 2 numbering system can easily represent any number. For instance, typically most systems represent a stored integer with 32 bits. Which can represent 0 to 2 to 32 power or 4,294,967,296.</p><p>The computer has the ability to store bits at least temporarily enough until it performs the computation. The computer has the ability to take those stored bits and run them through its logical operators. The computer can take the output of those logical operators and store those bits. Once you recognize this then you can appreciate what computation is and have a general understanding of how its just an application of engineering and math. The hard part was developing the silicon transistor. Once we got that down, we started cramming as many as we could into those chips until we have so many put in there together that our computing power would physically combust from all the heat of the electricity running through the transistors. We basically maxed out what we could do with physics so then we started turning to clever math solutions to create more efficient computing strategies like multitasking, parallelizing, pipelining, and cutting out wasted time slices. There is so much to learn about architecture, operating systems, data structures, and programming languages. Each is it’s own learning adventure.</p><p>Computing though provides endless possibilities. I didn’t even talk about networking. I’m sure you’re familiar with the internet. We need computers to not just use their own internal programs as inputs and outputs but programs and data from other computers. We created a standard by which the computers talk to each other and implemented the internet. We figured out we could represent bits not just through electricity but also light. Essentially we can send bits at the speed of light and process them at the speed of light.</p><p>Another aside, the speed of light is fast but still takes a quarter of a second to go to the other side of the earth, a 12,000 mile journey. That is why there will always be a delay on international calls.</p><p>Input [magic] output = computing. Anything that may be represented as a bit can be virtually calculated and returned. A gigahertz is the equivalent of a billion operations per second. Modern processors are typically measured in multiple gigahertz. It’s really hard to fathom how large a billion is. For context, a million seconds passes by every 11.5 days. A billion seconds takes 31 years and 8 months. A few billion operations per second makes modern computing possible. Seems weird that they used to lump millionaires and billionaires together.</p><p>Hopefully it is starting to make sense why computers are able to stream Twitch gamers running 240 frames per seconds in 4k hundreds of miles away while you the viewer are wasting your life watching from your basement, sitting on your beanbag chair eating cheetos. Seriously, why are you watching twitch streamers game when you could be playing yourself?</p><p>In summary, computing is the transformation of inputs to outputs. The power of computing is the ability to string all of those transformations together in creative manners to perform important functions and make life easier for us humans (or sometimes worse but we didn’t discuss.). Computing has so many parts to it, but with the abstraction that I like to call magic, we are able to solve one problem at a time. Representing numbers in a binary system and implementing them through transistors makes computing possible in the real world. Computer science is an applied math.</p><p>For those people that love problem solving, computer science is for you. Now go out there and say hello to the world through your foo program.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8f5fdd131cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey from Enlisted Service Member to Software Developer]]></title>
            <link>https://medium.com/@markmoser/journey-from-enlisted-service-member-to-software-developer-ceeadc44fb55?source=rss-344b3436274f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ceeadc44fb55</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[military-service]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Mark]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 16:57:00 GMT</pubDate>
            <atom:updated>2026-10-09T16:57:00.946Z</atom:updated>
            <content:encoded><![CDATA[<p>I graduated high school with honors in 2007 but was convinced to go to boot camp instead of college. I should definitely have gone to college but I have no regrets. I won a few math bowl competitions in high school. That’s right, I was a mathlete. Somehow though I joined the Marine Corps in 2007 straight out of high school and didn’t start college until fall semester of 2011. After five years of random geneds, I switched my goal of major from engineering to computer science. Fifteen years and over 200 semester hours later, I graduated with a bachelors of computer science from UNO. Now I am about to retire next year and am going to write about what I am learning as I start my next career doing what I am passionate about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ceeadc44fb55" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>