Visualizing, Organizing, and Tidying your Codebase

Abstract

Maintaining a clean, well-organized codebase becomes increasingly challenging as projects grow and as more people try vibe coding. This talk explores how to leverage static analysis tools like Periphery to not only identify unused code, but to actively guide better code organization and encapsulation practices. We'll start with an introduction to Periphery and its benefits, then demonstrate how extending it with custom analysis and visualization can help developers identify naming inconsistencies, understand hierarchical relationships between SwiftUI views, and make informed decisions about file organization. With author's new PeripheryTree, we'll see how visualizing code relationships can reveal opportunities for better encapsulation, suggest file reorganization based on view hierarchies, and ultimately help maintain a cleaner, more maintainable codebase.

Dan Wood, Independent Developer

Dan Wood has been creating Mac software since the days when the Mac itself was new. With a Computer Science degree from UC Berkeley and a passion for intuitive design, he's built products that have helped thousands of users and shaped the trajectory of Apple-based software. He's most known for Watson, a 2002 macOS app that gave users a number of small utilities that accessed data only available over websites, packaging them into rich user interfaces. Apple loved the idea so much that they awarded it an Apple Design Award while simultaneously copying much of it into their app called Sherlock, giving birth to the verb that strikes fear into the hearts of macOS and iOS developers.

Currently working on several independent iOS and macOS projects, Dan has also been writing SwiftUI technical articles on his LinkedIn page and digging deep into SwiftUI headers and codebases to build a better understanding and organization of complex application code.

When he's not coding, you'll find Dan involved in his local community in a small town near San Francisco — advocating for better bicycling infrastructure, organizing political events, helping his grown son learn how to write code, and keeping bees.

BACK TO PROGRAMME