Published in Design Patterns In Python·PinnedDesign Patterns In Python (Book)Sometimes you just want to switch off your computer and read from a book. So, I’ve revisited and rewritten all of the 23 GoF design patterns and compiled them into a book titled Design Patterns In Python. ASIN B08XLJ8Z2J Book provides FREE access to online instructional videos. Design Patterns in Python: Common GOF (Gang of Four) Design Patterns implemented in Python Design Patterns in Python: Common GOF (Gang of Four) Design Patterns implemented in Python: 9798702082608: Computer…www.amazon.comPython1 min readPython1 min read
Jan 9Member-onlyMastering Eye Contact and Gaze Redirection in Video Presentations: The Pros, Cons, and How-ToEye Contact / Gaze Redirection is a revolutionary AI technique designed to help ensure that your eyes are looking at the camera when presenting in a video. The purpose is to hopefully make the video more engaging. However, there are important pros and cons to consider before rushing into this. …Eye Contact2 min readEye Contact2 min read
Published in Threejs Tutorials·Nov 8, 2022Member-only“Break the GC 2” GameMaybe you missed the original “Break the GC” game. It’s a mini game written in Three.js, …JavaScript2 min readJavaScript2 min read
Aug 10, 2022Member-onlyDo I really need to use TypeScript?No you don’t. It’s an option for you, if you think you need it. TypeScript is an extra layer to JavaScript to help ensure type safety. “Type Safety? What?” JavaScript is dynamically typed, which means that you won’t know if there are type related problems with your code until runtime. …Typescript3 min readTypescript3 min read
Published in Threejs Tutorials·Aug 3, 2022Member-onlyWhy Does Three.js Need Import Maps?It doesn’t need import maps. It’s just an option in case you think you want it. For example, this example below doesn’t use import maps, but it still works. It imports the Three.js core directly from a CDN link. I.e., You also don’t need to use import maps in…Threejs4 min readThreejs4 min read
Published in Design Patterns in TypeScript·Apr 26, 2022Member-onlyVisitor Pattern in TypeScriptYour object structure inside an application may be complicated and varied. A good example is what could be created using the Composite structure. The objects that make up the hierarchy of objects, can be anything and most likely complicated to modify as your application grows. Instead, when designing the objects…Visitor Pattern5 min readVisitor Pattern5 min read
Published in Design Patterns in TypeScript·Apr 26, 2022Member-onlyTemplate Method Pattern in TypeScriptIn the Template Method pattern, you create an abstract class (template) that contains a Template Method that is a series of instructions that are a combination of abstract and hook methods. Abstract methods need to be overridden in the subclasses that extend the abstract (template) class. Hook methods normally have…Template Method Pattern4 min readTemplate Method Pattern4 min read
Published in Design Patterns in TypeScript·Apr 24, 2022Member-onlyStrategy Pattern in TypeScriptThe Strategy Pattern is similar to the State Pattern, except that the client passes in the algorithm that the context should run. The algorithm should be contained within a class that implements the particular strategies interface. An application that sorts data is a good example of where you can incorporate…Strategy Pattern3 min readStrategy Pattern3 min read
Published in Design Patterns in TypeScript·Apr 23, 2022Member-onlyState Pattern in TypeScriptNot to be confused with object state, i.e., one of more attributes that can be copied as a snapshot, the State Pattern is more concerned about changing the handle of an object’s method dynamically. This makes an object itself more dynamic and may reduce the need of many conditional statements. …State Pattern3 min readState Pattern3 min read
Published in Design Patterns in TypeScript·Apr 23, 2022Member-onlyMemento Pattern in TypeScriptThroughout the lifecycle of an application, an objects state may change. You might want to store a copy of the current state in case of later retrieval. E.g., when writing a document, you may want to auto save the current state every 10 minutes. …Memento Pattern5 min readMemento Pattern5 min read