Wow, thatβs really good, Ben
@qualitycoding.org
https://qualitycoding.org Author of iOS Unit Testing by Example https://iosunittestingbyexample.com. Technical coach, ex-Industrial Logic. Over 20 years of #TDD. Code with joy, drive down your cost of change. he/him
Wow, thatβs really good, Ben
Ugh, computer in the shop β for a week!
To help others use James Shore's "Nullables" pattern language in Swift, I'm releasing
github.com/jonreid/Outp...
ApprovalTests is a new testing tool for Swift, providing an alternative to assertions. Watch this 5-minute demo to learn the basics of getting started. https://qualitycoding.org/approvaltests-swift-getting-started/
Icon by Kelly Latimore depicting Jesus Christ breaking an assault rifle
βChrist Breaks the Rifleβ by kellylatimoreicons.com
- Nullables greatly improve the design and ease of testing.
- OutputTracking is a new package I'm releasing to make it easier to adopt the Nullables pattern language in Swift.
- Prompt: "Examine all test names. Where can they be improved to express domain ideas instead of programming terminology?"
Xcode showing Swift Package. Production code: 17 types. 12 Swift Testing tests in 3 test suites, total time 0.002 seconds.
I'm starting a new iOS app, and feel like I already have several things to blog about. But first, a micro-blog:
- I want the Swift Package to contain all non-UI code.
- Incredible feedback speed compared to testing in iOS simulator!
- Many think "unit tests" means each type needs a test file. Nope.
π€·πΏββοΈThe backflips white people go through to try to justify police killing unarmed Black people for no reason while opposing ICE killing unarmed white people for no reason, is something quite amazing to observe.
Cops have killed 141 people so far this year. It's not even March yet.
Is unit testing view controllers worth it? What about other code that interacts with system APIs? I have a powerful, but non-obvious motive. https://qualitycoding.org/testing-view-controllers/
Developers, managers, executives: If you donβt understand what Jason is saying here, _please be curious enough to ask._
Whatβs a βturnβ?
New in Print - and 40% off with code in π§΅
The Healthy Programmer - 2nd Edition.
It's a brutal time to be a developer: rising uncertainty, relentless pressure, and constant overload aren't exactly a recipe for good health.
Taking care of yourself never mattered more.
pragprog.com/titles/...
Test-Driven Development helps me write code that is correct. SwiftLint helps me write code that is clear. Here's how I like to configure SwiftLint. https://qualitycoding.org/swiftlint/
Let's throw a cat among the pigeons.
Folks say the difference between software design and architecture is that architecture is design decisions that are difficult to change.
A primary goal of software design is ease of change.
Software architecture is a failure of software design?
Discuss ;-)
"AI has removed the developer bottleneck"
If developers really were your bottleneck, throwing developers at a problem would actually have worked in the past 20 years
One point I make is that Agile Software Development's reputation is built almost entirely on the experiences of teams who've never even seen software agility.
See also: TDD, refactoring, design principles, continuous integration etc.
A feature of ApprovalTests called "combination approvals" can help you bring legacy code under test. Write tens or hundreds of test cases in a few lines. https://qualitycoding.org/wrangle-legacy-code-combination-approvals/
A large-scale study of developer IDE activity found that only 8% of devs who claimed they did Test-Driven Development did anything even close in reality.
Were 92% lying? I suspect not.
More likely, they just didn't know they weren't doing it, because they didn't know what TDD actually looks like.
Also laughing at all the B-roll footage of San Francisco. Great footage, wrong city.
Superbowl report at halftime point:
- Winner: Bad Bunny, with a fun show
- Loser: AI-generated ads
Rich does not mean clever, apparently
Highlighting the speaker who stood in front of the Surprise mayor and told him to consider what the Mayor of Ohrdruf mustβve thought before he died by suicide: βHe might have thought βhow is this my fault I had no jurisdiction over thisβ maybe he said βthis site was not subject to local zoning.ββ
Andrea Bocelli holy moly! #olympics
What does refactoring actually look like? Let's continue an example based on a real iOS view controller. Watch this 23-minute screencast. https://qualitycoding.org/refactoring-mvvm-part2/
Canceling tomorrow's live stream.
"Swift + AI" will return on March 15.
Darn. I caught a cold β¦from going into the office.
Tomorrow's live-coding may or may not happen. Let's see how I feel (and sound).
π₯Ά βοΈ βοΈ It has been COLD in the US this week. Saturday, Brimson Minnesota was -43ΛF (-42ΛC)
So, until the end of the week, pretty much everything is -43% at the Bookshelf.
Just use coupon code Brrr when you check out.
Stay Warm. Only at pragprog.com
Β
You could have played this for me blind, and I would have asked, βIs that Holdsworth?β because his sound was so unique.
Iβm not an electric guitar player, but this guy, wowβ¦ I was listening to the Bruford debut album recently.