Lego Designs

29 Apr 2021

Building blocks vs Lego’s

Let’s use an analogy here before I am on the chopping block for this obscure title. Imagine a child who has the option to create a structure from either their simplistic building blocks or use Lego’s preset grooves. Lego’s will give the child an overwhelming advantage in not only strudiness, but creative design. This is done through Lego’s unique presets that all connect together to make whatever the child wants. While normal old and boring building blocks have no grooves and thus must have strong structural integrity inorder to stand tall all while not being able to endlessly expand.

So what?

Just like Lego’s vs building blocks, design patterns lay strong foundations for programmers to tackle any sort of problem. There is a wide variety of templates available to web designers to pave the basic formats of a webpage. Web designers who can successfully alter their preset design patterns to fit their needs have an advantage over others who choose to build web based programs from the ground up.

STEEP learning curves

Normally when something is too good to be true, it is, but implementing design patterns is a reality within reach. Now just because it is useable doesn’t mean that you’re not going to struggle trying to comprehend just what exactly you’re looking at. Personally, I’ve been abusing the usage of Singleton classes to export singleton object all across my programs. In some of my other classes, I’ve also been using prototypes to properly allocate the flow of data while running and testing programs.

For me, I struggled for hours on end staring blankly at my computer screen before i finally figured out what I was doing. There is an immense learning curve and it’s a whole lot of information to try and process at once, so don’t be deter’d if and when you don’t get it the first time. Come back to the code sometime later and online guides written in plain English are normally the best bet to really understand the inner workings.

Let’s wrap this up

Design patterns are useful tools and a good template for people, but lets not force people into using them. A slow push in the right direction towards the end goal of tackling a multifile program with a wide variety of patterns will always produce better results. This concept isn’t one where you can push your kid into the pool and say “swim”, it must be taught.