Powerful Command-Line Applications in Go

This was a good way to see a number of non-trivial applications in Go. It tackled real projects like a Markdown Previewer and a Port Scanner and used production-grade libraries like Cobra for command-line arguments and Viper for configuration settings. The Markdown Previewer was probably good enough for me to consider using it. Honestly, Cobra and Viper were good enough libraries that it makes me start looking at what my options are for command-line parsing libraries early when studying a new language now. A lot of the examples were big to type, but that is good since it made me feel more comfortable with the language. They were also complicated enough that I made mistakes and got to deal with error messages from the compiler. I will say I was disappointed multiple times that Go’s compiler points out the first error it finds and then stops, so when you fix it you might just be greeted by another error. It’s not like Java or Kotlin where the compiler spits out 10 errors and 5 are probably caused by the earlier errors but the other 5 need to be corrected. The pomodoro app was actually quite usable after I got past the fact that it wouldn’t display correctly in tmux. That was a hard debugging session wondering what was wrong with my output from typing up the code before I finally pinned the blame on running it in a tmux session though, since having a tmux session is just getting so normal to me. Not only did I learn a lot about using Go for small to intermediate-sized projects, but I learned a lot about writing good command-line apps that I can take with me to other languages. ...

August 28, 2026 · 3 min · 593 words · Lewis Cawthorne

Head First Go

Overall, it’s what I expect from a Head First book. It was a perfectly serviceable introduction to the Go programming language. Although it’s a Head First book, I feel like it treated me like an experienced programmer and didn’t waste a lot of time explaining how an if expression worked. Unlike Head First Kotlin which never got to a lot of things that it had to toss into Ten Brief Topics in the Appendix, it felt like it covered all the main topics that needed to be covered to understand Go. It even includes coverage of automated testing and a couple of chapters on web apps. ...

August 11, 2026 · 3 min · 441 words · Lewis Cawthorne

A Blog Reborn

So, I haven’t been blogging for about ten years. To tell the truth, I spent all day programming, so when I got off work, I spent my time reading history or philosophy or anything else not computer related. I can see from my previous posts that I was experimenting with video and had started reading Agile Web Development with Rails. Well, I’m still a full stack web developer, so I could do worse than looking back at the web framework that really started it all. So I will read Agile Web Development with Rails 8 and get a taste of convention before configuration. That doesn’t really fit with the new title of the blog, but it’s still something I want to do, so I will get it done. I was interested in functional programming and different approaches to web development 10 years ago, and have never fully explored either, so I’m picking up where I left off with a slightly updated approach. ...

August 4, 2026 · 13 min · 2643 words · Lewis Cawthorne

O'Reilly Spring Framework Essentials

This time I’m working on reinforcing some of the Spring and Spring Boot knowledge I’ve picked up from other videos, while seeing if I can learn a couple of new tricks while at it. I’m watching Spring Framework Essentials through my Safari Books Online membership. It’s presented by Ken Kousen, who often hosts the Groovy Podcast. He has a series of three Groovy videos in Safari Books Online that I wouldn’t mind going through sometime in the future. The video series runtime is 5 hours, 14 minutes and it has a five star rating from 35 reviewers. Not bad, let’s see what it covers. ...

June 26, 2017 · 7 min · 1451 words · Lewis Cawthorne

Udemy - Spring Boot Intro

I figured since I am a professional Java programmer that I might as well spent some time getting familiar with some Java technologies that I don’t get to use at work. With this in mind, I purchased Udemy’s “Spring Boot Intro” course for $10 when they had a sale. This course moved a lot quicker than the last course I took from Udemy. It covered basic dependency injection in Spring in probably an hour or less, where the last class focused on dependency injection fundamentals for the entire time. I appreciated the faster pace, as there’s a lot of stuff to cover with Spring Boot. It handles autoconfiguring all the main projects that make up Spring… Spring MVC, Spring Rest, Spring Data, Spring Security, etc. ...

June 22, 2017 · 6 min · 1200 words · Lewis Cawthorne

AWDWR 5.1 - 03-05 - Theory

Chapters 3 through 5 focus on a little bit of theory before we get to building the tutorial application. Chapter 3 - The Architecture of Rails Applications Chapter 3 jumps into explaining MVC. It’s a pretty simple concept. MVC stands for Model, View, and Controller. The model is responsible for the state of the application, often the data you store in a database. It’s also more than data; it enforces the business rules that apply to your data. The model is both a gatekeeper and a data store. The view is responsible for generating some type of user interface. The view’s job is done once the data is displayed. Multiple possible views of the same data are a common case. The controller orchestrates the application. Controllers receive events from the outside world, interact with the model, and display the appropriate view. The book provides a simple diagram: ...

June 5, 2017 · 5 min · 1044 words · Lewis Cawthorne

Misc Reading

I’m still going back to finish my Agile Web Development with Rails 5.1 series. I finished reading the main project in the book a while back now. I just haven’t made time with the computer to create the demo project, and I want to have it in a repo to upload and talk about the code a little. I didn’t read the reference chapters, since they were still incomplete. I think I’ll read Agile Web Development with Rails 5 on Safari Books in its entirety, and that will give me a good perspective to see what changes with the project in the Rails 5.1 version of the book. The only thing that I noticed so far that was 5.1 specific is the ActionCable Websocket stuff they throw in, so that if a price changes on the backend it pushes the update to customers. Pretty neat to see Websockets used for something so small, instead of big examples of chat servers and what not like you commonly see. ...

June 2, 2017 · 4 min · 740 words · Lewis Cawthorne

AWDWR 5.1 - 02 - Instant Gratification

First I’d like to say sorry the images are a little big. Not used to screencaps on this retina Macbook. So, I fixed my mistake from last time. I had originally installed ruby via homebrew, but now that I’ve read up on rbenv, it seems a lot nicer than the old rvm, and I might want multiple versions of Ruby on my home PC. So I uninstalled Ruby 2.4 and went with brew install rbenv and then used it to install the latest Ruby. I see why the book authors prefer it over RVM now. It’s a lot less invasive than the old RVM. ...

May 18, 2017 · 6 min · 1148 words · Lewis Cawthorne

AWDWR 5.1 - 01 - Introduction

So, what do I have to blog about? I’m always trying out new stuff and reading books, so I figure I’ll talk about that. I happen to have just gotten a beta copy of Agile Web Development with Rails 5.1 and since my Ruby and Rails experience from my résumé is a little rusty, I figure I’ll read that and blog about the experience. Starting this site using Jekyll has made me think about Ruby lately anyway. It’s been many years since I’ve read “Agile Web Development with Rails”, and I think it was the version that covered Rails 1.2, so this should be a pretty new experience for me; both a great refresher and an introduction to what is new in the Rails world these days. ...

May 16, 2017 · 8 min · 1570 words · Lewis Cawthorne