Robert Larson

  • Home
  • About Me
  • Contact Me
  • Product Recommendations
  • Client Portal

Software Engineering Blog

Month: March 2017

Command Pattern using C++ (Basketball Scoreboard)

March 31, 2017 by Robert Larson

What is the Command Pattern? The definition of the Command Pattern from both Design Patterns: Elements of Reusable Object-Oriented Software and Head First Design Patterns: A Brain-Friendly Guide is The Command Pattern encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations. … [Read more…]

Share this:

  • Share on X (Opens in new window) X
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading...
Posted in: c++, Design Patterns Tagged: #cplusplus, #cpp, designpatterns

March Madness : Weighted Random Bracket Generator

March 23, 2017 by Robert Larson

Weighted Random Bracket Generator I am a big fan of the NCAA Men’s Basketball Tournament. I like to fill out online brackets at ESPN.com for fun every year. Well, I noticed there was an option to randomly generate the bracket this year. For each game, each team had a 50/50 chance of winning. This can … [Read more…]

Share this:

  • Share on X (Opens in new window) X
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading...
Posted in: Sports Tagged: #bracket, #marchmadness, #ncaa

Singleton Pattern using C++

March 13, 2017 by Robert Larson

What is the Singleton Pattern? The Singleton Pattern makes sure a class has only one instance and provides a way to access it globally. It’s typically preferred, within the development community, to find alternatives to using global access, if possible. What the Singleton Pattern does better than say, a global variable, is that it’s access … [Read more…]

Share this:

  • Share on X (Opens in new window) X
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading...
Posted in: c++, Design Patterns Tagged: c++, designpatterns

The Abstract Factory Pattern using C++ (Burger King vs. McDonalds Part 2)

March 7, 2017 by Robert Larson

What is the Abstract Factory Pattern? In a previous post, I described the Factory Method Pattern and provided a C++ code example. In this post I would like to provide information on another factory pattern, the Abstract Factory Pattern. Let’s jump right in and start with the Abstract Factory Pattern’s formal definition from “Head First … [Read more…]

Share this:

  • Share on X (Opens in new window) X
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading...
Posted in: c++, Design Patterns Tagged: c++, designpatterns

Recent Posts

  • March Madness 2019 – Weighted Random Bracket Generator
  • Gifts Ideas for Software Developers 2018-2019
  • March Madness 2018 – Second Chance Weighted Random Bracket Generator
  • March Madness 2018 – Weighted Random Bracket Generator
  • Builder Pattern using C++ (NFL Scheduler Example)

Archives

  • March 2019
  • November 2018
  • March 2018
  • August 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017

Follow me on Twitter

My Tweets

Copyright © 2026 Robert Larson.

Grace WordPress Theme by SiteChurch

%d