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

  • |

    Setting All Videos To Show Controls In LearnDash

    One of the biggest pieces of feedback I’ve gotten on my course videos in recent weeks was that the controls on my videos were hidden. To be honest, I didn’t realize students couldn’t scrub through videos, or rewind – I assumed everything was working! After looking through the LearnDash settings and not finding a global…

  • Use Input Masks for Better UX and Easier Validation

    Recently I was developing a few forms for a project at work and wanted a fairly specific format for the input of one of the fields. It was a time of day, and since the <time> element isn’t very well supported in browsers yet, I opted for my own text input and validation. While I…

  • | |

    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…

  • | |

    Testing Code Blocks with Ulysses

    Last updated: May 18, 2022Over on Twitter, Tom McFarlin asked me if Ulysses supports code syntax when pushing to WordPress: https://twitter.com/tommcfarlin/status/1526909277352480769 So I decided to give it a test: Looks good! And here’s what it looks like in Ulysses:

  • |

    Quick Tip: Custom Category Styles in WordPress

    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!Over the weekend I revamped this blog’s current theme a little bit, including adding custom styles for my Link Round-up lists….

  • |

    Building Web Apps with WordPress

    I just finished reading up a book that was co-written by my friend Jason Coleman called Building Web Apps with WordPress. I picked it up because while I’m generally good at developing themes, I know there were some things I was missing- types of code, optimizations, plugin best practices, etc. I wanted to improve my WordPress…