Thoughts on Java 9 Collections – Factory Methods

The new factory methods in Java’s Collections seem to be a step in the wrong direction; destined to incite confusion for new developers, and forcing them to make assumptions. I was recently reading through this post about the new factory methods planned in Java 9’s updated Collections module. If you’re not familiar with these updates, the goal is…… Continue reading Thoughts on Java 9 Collections – Factory Methods

Genetic Algorithms Part 3: FanDuel Lineup Example

Genetic Algorithms (GAs) can assist finding optimal or near-optimal combinations. They can significantly reduce the development time and execution time to find a good solution. Continuing from Part 2 which shows a concrete example of how to find the minimum of a quadratic using GAs, this section shows one way to find great fantasy-football lineups using data…… Continue reading Genetic Algorithms Part 3: FanDuel Lineup Example

Genetic Algorithms Part 2: Quadratic Example

Genetic Algorithms (GAs) can find the minimum of a quadratic equation given a range. While not the fastest or most precise method, this is a great way to become familiar with how to set up GAs and how they work. Continuing the discussion from Part 1, which details what GAs are and when they are helpful,…… Continue reading Genetic Algorithms Part 2: Quadratic Example

Genetic Algorithms

Genetic Algorithms are a great way to reduce a search-space into a solution space, and an efficient way to find a near-optimal solution, quickly. Genetic Algorithms are cool! I feel no one talks about them even though their applications are wide and their effectiveness extremely powerful. It’s a way to help optimize a search space and…… Continue reading Genetic Algorithms

Stumbling to Package a Django App

Django applications can be packaged individually for reuse. Documentation on how to do so from start to finish seemed either old, sparse, or incomplete. This was my adventure and solution. I’ve used Django to develop a few applications. For one project, I wanted to see how many active users there were interacting with the site.…… Continue reading Stumbling to Package a Django App

Python Properties for Django Templates

Python Properties can make method calls visible to Django templates! I have been developing a website for my wife as she catalogs every brewery, cidery, distillery, meadery, and winery in Colorado. Using Django has been a dream – easy interactions with the database, and templates make rendering data to HTML simple. I wanted to give users…… Continue reading Python Properties for Django Templates