How to choose what to refactor
A guide on applying the 'focusing question' technique to identify the most valuable code refactoring tasks that will simplify current project work.
Gio Lodi is a software developer and author writing about Test-Driven Development, Swift, automation, and developer productivity. He is the author of Test-Driven Development in Swift with SwiftUI and Combine.
179 articles from this blog
A guide on applying the 'focusing question' technique to identify the most valuable code refactoring tasks that will simplify current project work.
Explores the benefits of Test-Driven Development (TDD), including preventing false positives, improving design, and providing fast feedback.
Michael Feathers reflects on software's struggle with complexity and the need to learn from other fields' research to manage it better.
A developer shares their favorite productivity apps and tools for coding, workflow automation, and time management on macOS and mobile.
A software developer recommends four books on focus, mindset, leadership, and tech trends to help professionals grow in 2018.
Explains how to create and manage Git-compatible symbolic links using relative paths for cross-machine compatibility.
Explains the behavior and potential dangers of using beforeSuite and afterSuite hooks in the Quick testing framework for Swift.
Explains the execution order of nested beforeEach and afterEach blocks in the Quick testing framework for Swift.
Explains the differences between Nimble's toEventually and waitUntil for testing asynchronous Swift code, with guidance on when to use each.
A Swift developer recreates Ruby's 'unless' keyword in Swift, discussing its differences from 'guard' and sharing the implementation.
A tutorial on using XCTest closure-based expectations with NSPredicate to test asynchronous Swift code.
A guide to using dependency injection with static methods and classes in Swift to improve testability of legacy code.
A developer shares insights from contributing to danger-swiftlint, focusing on selective linting, Ruby testing with RSpec, and mocking Tempfile.
Advocates for writing descriptive, story-like Git commit messages to improve codebase history and debugging efficiency.
Tips for improving Xcode Run Script Build Phases by extracting scripts to separate files for better readability and maintainability.
A guide to manually integrating Google Firebase into an iOS project without using CocoaPods, covering framework setup and linking in Xcode.
Explains the difference between implicitly unwrapped and force unwrapped optionals in Swift, highlighting their dangers and appropriate use cases.
A technical guide on creating a Cloud 66 deploy hook to automate Postfix SMTP installation and configuration on a server.
Explains the dangers of force unwrapping Swift optionals (!) and why it should be avoided, promoting safer alternatives like optional binding.
Explains how to use the Swift Either enum for type-safe handling of two possible value types, with a practical example for table view data sources.