Recursive triangle subdivision
The other day I saw where Cliff Pickover tweeted some images of triangles recursively subdivided by adding a point to the barycenter of each triangle. The images were not what I expected, so I wanted to reproduce the images to look into this further. Here are the first three steps:
Read moreSwiftUI Layout — Cracking the Size Code
SwiftUI Layout — Cracking the Size CodePhoto by Deon Black on UnsplashIn the “SwiftUI Layout — The Mystery of Size,” we explained numerous sizing concepts involved in the SwiftUI layout process. In this article, we will further deepen our understanding of the SwiftUI layout mechanism by imitating the view modifiers frame and fixedSize, and demonstrate some
Read moreI am the new editor of Better Programming
As Anupam already announced, I will be taking over as editor of Better Programming as of Monday, September 11.I wanted to share a few words on who I am, and how this came about.Who am I?I have been a software engineer for the past 8–9 years, but I have always had a
Read moreGoal-driven code
Goal-Driven CodePhoto by Emile Perron on UnsplashSummary: Not all coding is sequential. For non-specialists, the programming language is often a barrier. Whand is a simplified declarative language intended to control external devices as a function of events and the passage of time.A Whand script essentially describes the desired result, unlike sequential languages
Read moreJustifiable sample size
One of the most common things a statistician is asked to do is compute a sample. There are well known formulas for this, so why isn’t calculating a sample size trivial? As with most things in statistics, plugging numbers into a formula is not the hard part. The hard part
Read moreGenerative AI Mindset
Figure 1. Large language models seem to have infinite knowledge. How should we work with them? Photo by Susan Q Yin on Unsplash.I learned three critical lessons using large language models (LLMs) during the summer of the generative AI hype. These lessons should be valuable for years to come.1. “Prompting” means
Read moreComputers are learning to decode the language of our minds
A series of amazing breakthroughs are allowing paralyzed people to speak and emote. With each passing month, we get closer to a brain-computer interface that might unlock some of the deepest mysteries of our grey matter.
Read moreDelay, Sleep, Pause & Wait in JavaScript
Learn how to create a sleep function in JavaScript for pausing code execution, given no built-in sleep() function for delaying program flow. Continue reading Delay, Sleep, Pause & Wait in JavaScript on SitePoint.
Read moreHere’s Why You Should Hand Over Product Prioritization to Engineering Managers
Let engineering managers own prioritization. Bold move, but here’s why it’s the future — and your team’s secret weaponAll images licensed under ShutterstockIn this series, we’ll explore how transferring prioritization responsibilities from product to engineering leaders can unlock enhanced team velocity. We’ll first delve into the main benefits of employing this change. Subsequent
Read moreAn Architecture for Behaviour-Driven Development in Swift
This article will show you how we can do behaviour driven development (BDD) in Swift — frictionlessContinue reading on Better Programming »
Read more