Kartones Blog

Be the change you want to see in this world

Book Review: Dune II - Insider's Guide

Summary: The Dune II - Insider's Guide is a comprehensive reference material for the game, providing detailed information on units, missions, mechanics, and the history of Westwood Studios. It includes screenshots, maps, and tactical strategies, making it a must-read for fans and those interested in the development of the first PC RTS.


Word prediction using a trie data structure

Summary: Explores word prediction/autocomplete using a trie data structure. Includes a demo and the source code of the trie implementation.


Python Imports 101

Summary: Explains Python import basics, relative vs. absolute imports, import resolution, and provides examples to clarify common import scenarios.


Two Testing Anti-Patterns

Summary: Discusses the anti-patterns of testing private methods and mocking class under test methods. It emphasizes the importance of focusing on behavior, refactoring when necessary, and testing in line with production conditions.


Markov Model Python Example

Summary: A Python example of a Markov model. How to implemented a Markov chain to generate sentences based on a given text file. Describes the process of building a dictionary of word chains and demonstrate how the model can generate sentences.


Previous entries