I took a Computer Graphics course during college, and I've been revisiting the subject. During this recent exploration, I came across something interesting: Bresenham's Line Drawing Algorithm. It's a straightforward and extremely clever method for drawing lines on a pixel-based display. Let's take a closer look at how the algorithm
Serve. Score. Share. Elevate Your Play.
Whenever you release an app update, it's important to make sure existing users don't fall behind and that your user base doesn't become fragmented across multiple versions. So, some apps will choose to notify users when a newer version is available or will force them to upgrade if they fall
After impulse purchasing a 3D printer a few months ago, I quickly found myself with a new hobby. In just a few weeks, my apartment started to fill up with an eclectic mix of prints from Thingiverse and Printables. Along the way, I discovered a passion for mechatronics and realized
If you've seen the WWDC What's new in Swift? [https://developer.apple.com/videos/play/wwdc2022/110354/] video, you've likely seen the updates to the if let and guard let syntax. Prior to Swift 5.7, it was common to unwrap an Optional variable and assign to a variable with
It’s always bugged me that Apple removed the Command + T shortcut to toggle Slow Animations. Using the following approach, you can restore this shortcut and add custom shortcuts to any Xcode or iOS Simulator settings. In System Preferences, select Keyboard -> App Shortcuts -> + Then, just specify your preferred
We'll see how we can use SwiftGen to add type-safety to our project's resources and enable us to write cleaner code.
Introduction You’ve likely used UUIDs in projects before and assumed them to be unique. Today, we’ll take a look at the main aspects of the implementation and understand why UUIDs are practically unique, though an incredibly small potential for duplication exists. The modern-day implementation of UUIDs can be
Anyone with any programming experience understands that computers are deterministic machines. If you provide the same input, you’ll always get the same output. That’s why having computers generate something by chance is trickier than it may seem. Computers use random numbers for everything from cryptography to gambling, generative