Other articles


  1. Certificate Manager

    For my project, I made a website to manage SSL certificates. In my current job, finding out which expiring certificates are hosted on which load balancers is one of the main problems I have. The repository for this project can be found here.

    To do this, I first came up …

    read more
  2. The Root of Absolutely Relatively Awesome Links

    There have been some questions in the Slack in the past on broken links. This post is going to try to give a succinct explanation of different link types, and how they relate to each other for your Sinatra project and going forward with none magic frameworks such as Rails …

    read more
  3. Device Manager

    For my Sinatra project, I am making a device manager website. This is for managing consumer routers and set top boxes in our test environment. The website meets the below requirements: * Be an MVC website. * Use ActiveRecord with Sinatra. * Have a devices, groups and users table. * Devices belong to a …

    read more
  4. Map Shorthand

    Something I found out about recently due to using Rubocop is a shorthand for a map.

    Take the contrived example of our cheesecake instances.

    class CheeseCake
      attr_accessor :flavour, :make
    end
    
    cheesecakes = []
    strawberry_cheesecake = CheeseCake.new
    strawberry_cheesecake.flavour = 'strawberry'
    strawberry_cheesecake.make = 'homemade'
    cheesecakes << strawberry_cheesecake
    
    raspberry_cheesecake = CheeseCake.new
    raspberry_cheesecake.flavour = 'raspberry'
    raspberry_cheesecake.make …
    read more
  5. Getting started on your CLI Gem

    This is a step by step tutorial on getting started with your CLI gem, and how to do that using test-driven development.

    How?

    The concept of test driven development is straightforward. You write out tests before you start writing your code. You then write code to get your tests passing …

    read more
  6. Groupreads

    My CLI gem is called groupreads. It uses the Goodreads API. It gets the users list of groups, all of the currently read books in those groups and compares them against the users to read and read lists. It then outputs a list of books to add to their to-read …

    read more
  7. Building An Unbeatable Tic Tac Toe AI

    The first major challenge that I faced with the coding boot camp was building an unbeatable Tic-Tac-Toe AI. I have managed to create an algorithm to solve this problem, with only one move being hard coded.

    The overarching logic of my program is this the move method, found below.

        def …
    read more
  8. Why I Decided to Learn Programming

    To set the scene, I'm not entirely new to programming. I have been a hobbyist programmer since high school. I first started after going to a holiday camp, learning some basic. I have no memory of the language itself, but I made a game where you had to navigate through …

    read more

links

social