The coding process

Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don't hold it against me. One of the perils of having a 20+ year old website!

During my winter break, which is very quickly coming to a close, I have done a lot of coding- stuff I have never done before. Each time I have pretty much followed the same process and have found the same thing.

It starts off with me thinking about or writing down what I want to accomplish with the program at hand. Recently, I wrote a mailing list. So with the mailing list I wanted to accomplish these things:

  • Allow people to sign up via a form
  • Generate a confirmation number once they join, add them to a database and send them an e-mail to confirm their subscription.
  • Once they confirm, edit the database to reflect that. If they were added by mistake, delete them from the database.
  • Once they confirm, send them one more e-mail stating they have been confirmed.

Once I get to the coding, I write functions, connection codes, queries, etc. to accomplish said goals. Then there is the debugging phase. I usually call it the What? why the hell isn’t this working??? phase. Usually after staring at it and doing a few things I know won’t work, the solution comes to me in a flash of brilliance.

And once you are all debugged, you’re done, right? Well, not quite. Now is the time to look over ever thing, since you code is working, and see if there is anything you over looked. With this particular project, there were 2 major things I over looked:

  • A major security risk when unsubscribing
  • A check to make sure the person signing up did not already sign up

After writing that code, it’s debug time again, and then another check. It’s usually good also, to get a couple of friends who know what they are doing to check it for you too, so they can throw some ideas at you, and maybe check something you may have over looked. Just like writing a paper, your friends might see something you didn’t because they didn’t write it. Later.

Similar Posts

  • Coding at a new level

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!This semester I am taking a class called Machine Organization and Assembly Language. What this amounts to is learning how to…

  • Coding

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!This semester I am taking CompSci II, an advanced Java programming course at my school. So I figured I might as…

  • | |

    Include a Sidebar with a Shortcode in WordPress

    Recently I was faced with a pretty interesting problem where I wanted to have a page that was structured: Content – Widgets – Content. Instead of hacking together some sort of Content – Sidebar – Metadata on the backend, I decided to make sidebar widgets accessible via a shortcode you can use in the WordPress…

  • |

    How I Built my WordPress Development Course on Udemy

    My course has been out for 6 weeks and I’ve been promoting it on social media and in my newsletter; if you subscribe to any of those places you know it’s currently available. The cat’s out of the bag. But that doesn’t mean I don’t have more to tell about it. See, I originally set…

  • | |

    What Developers can learn from Home Improvement

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website! It’s no secret that I love the show Home Improvement, especially if you know me personally or follow me on…

  • Writing a User log-in

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!Here is the user login code I have been promising. It’s an image so it looks nice. You can download it…