My Profile Photo

Trevor Jones


My musings - interesting to me, hopefully will be for you


  1. What is a Queue and how to Implement One

    The Queue data structure is actually pretty simple. It can get more complex with something called a Primary Queue, but let’s just start with a Queue. If you think of any line of people waiting it primarily works as first in first out, or FIFO. If you’re the first in line, then you’re the first one to get service and the first to leave the line. In non-computer sciencey terms, that’s what a queue is. Same goes for a Queue in computer sciencey terms. …


  2. Hashes Instead of Conditionals

    Try Hashes in place of conditionals! …


  3. Stop Copy/Pasting

    As mentioned in a previous post, I’ve been gaining lots of experience when it comes to training new developers. I’ve been doing one thing or another with new developers for almost 3 years now. …


  4. Using Rubocop as a New Developer

    Over the past almost 3 years now I’ve dealt a lot with new developers. At first I was one, then I TA’d for them for over a year, then I was a tech lead for them when they started an apprenticeship, then I was a teacher for a cohort over the summer, now I’m back to being a tech lead for the apprenticeship. So I feel that I have some experience regarding new developers. …


  5. Why Elixir is My Next Language of Choice

    I’m Moving Forward with Elixir …


  6. Using the terminal and figuring out Git

    How to use the Terminal and Command Prompt. …


  7. How to Test in Go

    Let’s test some Go! …


  8. Refactoring Models and Controllers

    Let’s reactor the Rails Models and Controllers. …


  9. Refactoring Views in Rails

    Let’s refactor the Rails views! …


  10. Rails: Include a Single JS File in View

    Something that drove me crazy was figuring out how to include a JavaScript file in a single view. Maybe it’s a lot of code you don’t want to run on every single page load. The Rails pipeline is great but makes this task difficult. Maybe I was looking in the wrong places but it took a while to find a solid solution. …