CommentComment

Did you see the discussion thread proposing an official Swift style guide this week?

In my opinion, style guides are overrated. Everyone has an opinion on them so they always generate lots of discussion, which makes them feel more important than they really should be. Should there be an official Swift style guide? Meh, maybe? I guess it'd probably be a net positive overall. Is it the best thing to spend time on? Almost certainly not.

So why am I writing about it? Mainly so I can link to this tweet (read the whole thread) from Nick Lockwood. Even though CocoaPods and Carthage are still popular today, SwiftPM really took the wind out of their sails and (so far) has failed to deliver a better solution for the problem they solve. If an official linting/formatting tool is developed, how long will we have to wait for it to become good enough to replace what we already have in SwiftLint/SwiftFormat?

I think I'd have much less of a reaction to a proposal for a style guide which didn't also propose a new tool to enforce it but instead relied on the tools that this community have already put thousands of hours of effort into.

Dave Verwer

News

Tools


Code




Design

Business and Marketing

Up to Speed

Videos

Jobs

And finally...