GoF Design Patterns in Dart Back in the ’90s, a group of four authors released a book that became standard reading for any self-respecting software developer, the Gang of Four’s Design Patterns book. Along with Fred Brooks’s Mythical Man-Month, Don Knuth’s The Art of Computer Programming series, these books are still fundamental to our profession
Author: R. Morgan
Design Patterns In Dart – Part 2
The Singleton Pattern From time to time you’ll find you need to ensure that your code creates only a single instance of a class. This often occurs in hardware drivers or certain OS sub-systems. It’s not a feature you need often but, when you need it, you really need it! The singleton pattern is one
Dart / Flutter State Management with Okito
Recently in the slack flutter forum, the Okito package was announced. I took a quick look at the package but at the time didn’t have time to investigate it fully. This past week I got the chance to look the documentation over and produced my first ever Youtube video using Okito as the subject. In
Continue Reading “Dart / Flutter State Management with Okito”
Flutter build apk or build apk –split-per-abi What’s The Difference?
I was recently asked to describe the difference between the flutter build commands, “build apk” and “build apk –split-per-abi”. If you’ve developed native Android apps for long, no doubt you already know the difference. But for those flocking to flutter and mobile development for the first time, it can be a bit confusing. So in
Continue Reading “Flutter build apk or build apk –split-per-abi What’s The Difference?”
Flutter Reaches 2.0
Compiling Legacy Dart/Flutter Code with Sound Null Safe Code Anyone who knows me knows how I feel about flutter, Googles (fairly) new cross-platform toolkit. I started working with flutter back in 2017 and it has been a lot of fun! This past week Google held a virtual event for flutter called Flutter Engage. During the
Implementing Stack Oriented Languages – Part 4
Strings and Variable So far we’ve added lots of stack operations and a couple I/O routines with the KEY and EMIT keywords. At the moment if we wanted to write a simple “Hello World” application we would need to place each character on the stack and pop them off using the EMIT keyword. This is
Continue Reading “Implementing Stack Oriented Languages – Part 4”
An Introduction to Graph Algorithms
This post marks the first in a series of posts I will complete on graph algorithms. The code will be python however, I will write the code very verbosely so it will be easily ported to your favorite programming language. I will assume you have some programming skills but are still a novice or that
Implementing Stack Oriented Languages – Part 3
Before we move on to adding more features to our language, I think it is high time we combine our disparate parts into a single entity.
Continue Reading “Implementing Stack Oriented Languages – Part 3”
Implementing Stack Oriented Languages — Part 2
Part 2 – The Parser It’s been some time since the first installment. It amazes me how quickly time flies by when you have so many projects at hand. So let’s jump right in and get coding! Before we get started though, let’s make some changes to our keywords file. First, we won’t need the
Continue Reading “Implementing Stack Oriented Languages — Part 2”
Graph Walking Made Easy!
Newbie Developers, especially those who are self-taught, often struggle with graph algorithms. I recently helped a young man on slack get a handle on the subject and I thought I would share my insights with those of you who lack the ability to write breadth-first search (BFS) and depth-first search (DFS) algorithms from scratch. Knowing
Recent Comments