
Finding neighbours in a hex map
How I address and index the cells in the hex-grid of my game.
How I address and index the cells in the hex-grid of my game.
In Ben’s post, he questions whether switch statements are cleaner than if-else chains. I contend they are, because they better express the semantics of the
I like Python, but wish it had static typing. The added safety would go a long way to improving quality and reducing development time. So
Perhaps I wrote that I don’t know how to create a website, but glancing back, I certainlyhave built a lot. And oh boy, there’s quite
“Clever programming tricks have no place in programming interviews. They usually involve a small amount of code and solve an innocent-sounding question like “find the
“Lists are perhaps the fundamental data structure in code. There’s virtually no program that doesn’t use lists. Interviewers love asking questions that involve lists, either
37. You have no idea what that number is, do you? A number without context nor a label is a random value. It doesn’t tell
“I’ve conducted many interviews. There are many reasons why I reject people, but there are recurring themes. I want to give a list of the
A staple of compact code, the ternary operator ?: feels like it’s earned a place any programming language. I use it often; you should use
Variants are data types that can store different types of values in them, as opposed to one fixed type. In contrast to a generic object
Signup to my mailing list to get notified of each article I publish.
Made with Elementor. Hosted with SiteGround. Domain from Netim.