# Miguel Quinones

Software engineering thoughts

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## My top 5 must-have technical books

DevFeed: [My top 5 must-have technical books](<https://devfeed.tech/articles/my-top-5-must-have-technical-books-97442.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2018/01/28/top-5-must-have-technical-books/>)

Published: 2018-01-28T19:06:09Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Domain-driven design (DDD)](<https://devfeed.tech/topics/domain-driven-design.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [books](<https://devfeed.tech/tags/books.md>), [domain-driven-design](<https://devfeed.tech/tags/domain-driven-design.md>), [learning](<https://devfeed.tech/tags/learning.md>), [meta](<https://devfeed.tech/tags/meta.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [software-engineer](<https://devfeed.tech/tags/software-engineer.md>), [technical](<https://devfeed.tech/tags/technical.md>), [top](<https://devfeed.tech/tags/top.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

### AI overview

The author recommends five books for software engineers, especially those starting out. The Pragmatic Programmer offers broad ideas for professional growth and craft, while The Art of Unit Testing introduces practical testing techniques and emphasizes maintainable, high-quality tests. Seven Languages in Seven Weeks explores programming paradigms through languages, including their motivations and tradeoffs; its challenges are optional. Domain-Driven Design presents coding as a modeling problem for managing complexity. The Algorithm Design Manual is preferred over Introduction to Algorithms for its problem-first "Catalog," which the author finds useful for finding solution ideas and understanding the range of algorithmic problems.

### Source excerpt

Quite recently a team member wanted to suggest interesting technical books to read for a junior engineer. I figured I might as well write my top 5 books here, in no particular order. I believe every Software Engineer should own these books, but reading them is a very good start ;) The Pragmatic Programmer: From journeyman to master If you have to read just one book, specially when starting to write software, it should be The Pragmatic Programmer. It covers ideas, always focused on self-improvement, mastery of the craft, and professinalism. I see this book as an extended list of ideas and suggestions for self-improvement, similar to the programmer competency matrix. While reading it, it's better to keep growing a list of topics to investigate further, as the book covers wildly different practices, ideas, and techniques. The Art of Unit Testing This book opened my eyes into the world of unit testing, from a practical (not philosophical) point of view. It introduced me to practical techniques to use in unit testing. Most imporptantly, it helps understand the crucial understanding of the necessity of maintainable test code, and 'good' tests. I think it's the best introductory book on unit testing. Period. Seven Languages in Seven Weeks More than a book, "Seven Languages in Seven Weeks" is an exploration into wildly different concepts across programming languages. It's a book about paradigms, and crucially, sparks the curiosity of why these exist at all. The way that the concepts are introduced, focusing on the reasons, advantages, disadvantages and design decisions of a language were very insightful for me. If you don't try the proposed challenges the book still will give you a lot of material to think about and to take ideas from. Domain-Driven Design Most software projects are about tackling complexity, and I must say many projects fail in this regards. The book taught me how to think about the act of writing code in a more abstracted way, as a modelling problem. Eric

## My top 5 must-have technical books

DevFeed: [My top 5 must-have technical books](<https://devfeed.tech/articles/my-top-5-must-have-technical-books-21622.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2018/01/28/top-5-must-have-technical-books/>)

Author: Miguel Angel Quiñones

Published: 2018-01-28T19:06:09Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [computational complexity](<https://devfeed.tech/topics/computational-complexity.md>), [Domain-driven design (DDD)](<https://devfeed.tech/topics/domain-driven-design.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [books](<https://devfeed.tech/tags/books.md>), [domain-driven-design](<https://devfeed.tech/tags/domain-driven-design.md>), [languages](<https://devfeed.tech/tags/languages.md>), [modelling](<https://devfeed.tech/tags/modelling.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [software](<https://devfeed.tech/tags/software.md>), [software-engineer](<https://devfeed.tech/tags/software-engineer.md>), [technical](<https://devfeed.tech/tags/technical.md>), [testing](<https://devfeed.tech/tags/testing.md>), [top](<https://devfeed.tech/tags/top.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

### AI overview

The author recommends five technical books for engineers, especially those early in their careers. The Pragmatic Programmer offers varied ideas for craft and self-improvement, with topics to investigate further. The Art of Unit Testing introduces practical techniques and emphasizes maintainable test code. Seven Languages in Seven Weeks explores programming paradigms and the reasons, tradeoffs, and design choices behind languages; its challenges are optional. Domain-Driven Design frames coding as a modeling problem for managing software complexity. The Algorithm Design Manual is preferred over Introduction to Algorithms for its problem-first Catalog, which the author finds useful for finding solution ideas and understanding the range of algorithmic problems.

### Source excerpt

Quite recently a team member wanted to suggest interesting technical books to read for a junior engineer. I figured I might as well write my top 5 books here, in no particular order. I believe every Software Engineer should own these books, but reading them is a very good start ;) The Pragmatic Programmer: From journeyman to master If you have to read just one book, specially when starting to write software, it should be The Pragmatic Programmer. It covers ideas, always focused on self-improvement, mastery of the craft, and professinalism. I see this book as an extended list of ideas and suggestions for self-improvement, similar to the programmer competency matrix. While reading it, it's better to keep growing a list of topics to investigate further, as the book covers wildly different practices, ideas, and techniques. The Art of Unit Testing This book opened my eyes into the world of unit testing, from a practical (not philosophical) point of view. It introduced me to practical techniques to use in unit testing. Most imporptantly, it helps understand the crucial understanding of the necessity of maintainable test code, and 'good' tests. I think it's the best introductory book on unit testing. Period. Seven Languages in Seven Weeks More than a book, "Seven Languages in Seven Weeks" is an exploration into wildly different concepts across programming languages. It's a book about paradigms, and crucially, sparks the curiosity of why these exist at all. The way that the concepts are introduced, focusing on the reasons, advantages, disadvantages and design decisions of a language were very insightful for me. If you don't try the proposed challenges the book still will give you a lot of material to think about and to take ideas from. Domain-Driven Design Most software projects are about tackling complexity, and I must say many projects fail in this regards. The book taught me how to think about the act of writing code in a more abstracted way, as a modelling problem. Eric

## Fixing autocompletion on mixed Objective-C and Swift projects

DevFeed: [Fixing autocompletion on mixed Objective-C and Swift projects](<https://devfeed.tech/articles/fixing-autocompletion-on-mixed-objective-c-and-swift-projects-21621.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2017/06/16/fixing-autocompletion-on-mixed-objective-c-and-swift-projects/>)

Author: Miguel Angel Quiñones

Published: 2017-06-16T22:55:27Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [cocoapods](<https://devfeed.tech/topics/cocoapods.md>), [Objective-C](<https://devfeed.tech/topics/objective-c.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [2017](<https://devfeed.tech/tags/2017.md>), [apple](<https://devfeed.tech/tags/apple.md>), [bridging](<https://devfeed.tech/tags/bridging.md>), [bug](<https://devfeed.tech/tags/bug.md>), [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [code-completion](<https://devfeed.tech/tags/code-completion.md>), [debug](<https://devfeed.tech/tags/debug.md>), [ide](<https://devfeed.tech/tags/ide.md>), [import](<https://devfeed.tech/tags/import.md>), [index](<https://devfeed.tech/tags/index.md>), [indexer](<https://devfeed.tech/tags/indexer.md>), [issue](<https://devfeed.tech/tags/issue.md>), [latest-release](<https://devfeed.tech/tags/latest-release.md>), [objective-c](<https://devfeed.tech/tags/objective-c.md>), [project](<https://devfeed.tech/tags/project.md>), [projects](<https://devfeed.tech/tags/projects.md>), [swift](<https://devfeed.tech/tags/swift.md>), [wwdc](<https://devfeed.tech/tags/wwdc.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

In the author's mixed Objective-C/Swift project, Swift autocompletion could fail intermittently because SourceKit had trouble indexing a library header imported without its path in the bridging header. The workaround was to use a library-style import such as `#import "path-to-library/MyClass.h"` instead of `#import "MyClass.h"`; the latter still compiled but could break completion. To investigate, the excerpt describes checking the SourceKit service log for code-completion requests, taking the compiler arguments and source file from the log, and running a Swift frontend invocation to expose the failing header. The author was unsure whether the behavior was an indexer bug or an import inconsistency. An update says the issues seemed fixed in Xcode 9.0.1 and that the Internal menu no longer appeared accessible, limiting the relevance of the debugging-menu steps.

### Source excerpt

This year I had the privilege of attending WWDC for the first time. I knew the labs were very important, and I want to share a resolution to fix a problem for our big project at Peak: Autocompletion on Swift code was not working most of the time in the IDE, and with the help of an Apple engineer in the labs we got it sorted. Update on 30/10/2017: The issues described here seem to be fixed with latest release version of Xcode 9.0.1 (9A1004). Also the 'internal' menu doesn't seem to be accessible anymore. If you know how to access it I'd love to hear from you! The issue If you are using Xcode 8 or Xcode 9 (beta 1 as of this writing), when you have a project with mixed Objective-C and Swift, you might encounters problems with autocompletion inside the Swift code. We've had this intermitently and most recent IDE versions made work very difficult as we would not have any autocompletion for our Swift code, or it would work intermitently. Our gut feeling was that the bridging header had some classes that were causing SourceKit to fail, but we didn't know how to debug the issue nor provide good feedback for Apple to fix it. Our chance came while visiting the labs at the conference, and a very helpful and patient Apple engineer worked with our project to understand what was wrong. Bridging header imports It turns out that if you import classes from libraries (in our case using CocoaPods) omitting the path may result in Sourcekit unable to index properly. For example, a class in some library: #import "MyClass.h" Code will compile fine but your code completion in Swift side might break because the indexer fails when encountering this file. I'm still unsure if it's because of importing the file somewhere else differently or if it's just a bug in the indexer. Anyway, the way to work around it (Apple is supposedly aware of this) is to import with the framework or library style, including the path: #import "path-to-library/MyClass.h" How to debug The engineer kindly made a wrote u

## Fixing autocompletion on mixed Objective-C and Swift projects

DevFeed: [Fixing autocompletion on mixed Objective-C and Swift projects](<https://devfeed.tech/articles/fixing-autocompletion-on-mixed-objective-c-and-swift-projects-97441.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2017/06/16/fixing-autocompletion-on-mixed-objective-c-and-swift-projects/>)

Published: 2017-06-16T22:55:27Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Objective-C](<https://devfeed.tech/topics/objective-c.md>), [cocoapods](<https://devfeed.tech/topics/cocoapods.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [2017](<https://devfeed.tech/tags/2017.md>), [apple](<https://devfeed.tech/tags/apple.md>), [bridging](<https://devfeed.tech/tags/bridging.md>), [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [code-completion](<https://devfeed.tech/tags/code-completion.md>), [debug](<https://devfeed.tech/tags/debug.md>), [import](<https://devfeed.tech/tags/import.md>), [indexer](<https://devfeed.tech/tags/indexer.md>), [objective-c](<https://devfeed.tech/tags/objective-c.md>), [swift](<https://devfeed.tech/tags/swift.md>), [tips](<https://devfeed.tech/tags/tips.md>), [wwdc](<https://devfeed.tech/tags/wwdc.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

In mixed Objective-C and Swift projects using Xcode 8 or Xcode 9 beta 1, a library header imported in a bridging header without its path could compile successfully yet cause SourceKit indexing to fail and Swift autocompletion to break intermittently. The reported workaround is to include the library path in the import, such as `#import "path-to-library/MyClass.h"`. To investigate, enable Xcode's debug menu from the command line, inspect `/tmp/sourcekit-service-log.txt` for code-completion requests, and use the logged compiler arguments to run a Swift frontend invocation; the resulting errors can identify headers to fix. The author said the issue seemed fixed in Xcode 9.0.1 and that the Internal menu no longer appeared accessible.

### Source excerpt

This year I had the privilege of attending WWDC for the first time. I knew the labs were very important, and I want to share a resolution to fix a problem for our big project at Peak: Autocompletion on Swift code was not working most of the time in the IDE, and with the help of an Apple engineer in the labs we got it sorted. Update on 30/10/2017: The issues described here seem to be fixed with latest release version of Xcode 9.0.1 (9A1004). Also the 'internal' menu doesn't seem to be accessible anymore. If you know how to access it I'd love to hear from you! The issue If you are using Xcode 8 or Xcode 9 (beta 1 as of this writing), when you have a project with mixed Objective-C and Swift, you might encounters problems with autocompletion inside the Swift code. We've had this intermitently and most recent IDE versions made work very difficult as we would not have any autocompletion for our Swift code, or it would work intermitently. Our gut feeling was that the bridging header had some classes that were causing SourceKit to fail, but we didn't know how to debug the issue nor provide good feedback for Apple to fix it. Our chance came while visiting the labs at the conference, and a very helpful and patient Apple engineer worked with our project to understand what was wrong. Bridging header imports It turns out that if you import classes from libraries (in our case using CocoaPods) omitting the path may result in Sourcekit unable to index properly. For example, a class in some library: #import "MyClass.h" Code will compile fine but your code completion in Swift side might break because the indexer fails when encountering this file. I'm still unsure if it's because of importing the file somewhere else differently or if it's just a bug in the indexer. Anyway, the way to work around it (Apple is supposedly aware of this) is to import with the framework or library style, including the path: #import "path-to-library/MyClass.h" How to debug The engineer kindly made a wrote u

## Automatic bridging from Swift to Objective-C using Sourcery

DevFeed: [Automatic bridging from Swift to Objective-C using Sourcery](<https://devfeed.tech/articles/automatic-bridging-from-swift-to-objective-c-using-sourcery-21620.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2017/05/21/automatic-bridging-from-swift-to-objective-c-using-sourcery/>)

Author: Miguel Angel Quiñones

Published: 2017-05-21T21:30:00Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Objective-C](<https://devfeed.tech/topics/objective-c.md>), [Code](<https://devfeed.tech/topics/code.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [bridging](<https://devfeed.tech/tags/bridging.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [examples](<https://devfeed.tech/tags/examples.md>), [generate](<https://devfeed.tech/tags/generate.md>), [objective-c](<https://devfeed.tech/tags/objective-c.md>), [programming](<https://devfeed.tech/tags/programming.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

This tutorial explains how to automate bridging Swift structs and enums to Objective-C using Sourcery templates and metadata from production code. It introduces a protocol-based opt-in approach, describes separate generation strategies for structs and enums, and notes the use of Stencil for template development.

### Source excerpt

I recently read a great post by Benjamin Encz about bridging Swift to Objective-C by creating bridging types that can be exposed to the older language. I wondered if his idea can be improved and automated using meta-programming with Sourcery by Krzystof Zablocki. The answer is a very impressive ObjC-like uppercase YES. First of all, you should read Benjamin's post. He proposes to use a bridging class that can be instantiated from Objective-C and Swift because it inherits from NSObject. The bridging class has properties to get and set the properties of the bridged type. In this post I'm just going to give an overview of the template and highlight the simpler parts. If you want to jump directly in the code, here's the project, and the template. The example template bridges struct and enum, but doesn't handle custom protocols to keep it as simple as possible. About Sourcery Sourcery is a tool to generate code, using your written templates, using metadata from your production code. In other words, it's a tool to do metaprogramming in Swift. If you are not familiar with Sourcery I encourage you to go read the documentation and at least understand the simple examples like generating Equatable implementations for your types. Getting familiar with Stencil, one of the supported template languages is also fundamental. Building the template We'll need to generate a new class for every struct and enum that we bridge. In order to opt-in to the feature, we use phantom types in order to mark swift types (our custom structs or enums) that can be bridged to Objective-C. Our template will use this protocol to which types to introspect: 1 protocol AutoObjCBridgeable {} For example, take Benjamin's example code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 enum CheckoutOption { case creditCard(given: Int) case paypal(String) } struct ShoppingCart { var items: [String] var checkoutOption: CheckoutOption? init(items: [String], checkoutOption: CheckoutOption? = nil) { self.items = items self.checkout

## Automatic bridging from Swift to Objective-C using Sourcery

DevFeed: [Automatic bridging from Swift to Objective-C using Sourcery](<https://devfeed.tech/articles/automatic-bridging-from-swift-to-objective-c-using-sourcery-97440.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2017/05/21/automatic-bridging-from-swift-to-objective-c-using-sourcery/>)

Published: 2017-05-21T21:30:00Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Objective-C](<https://devfeed.tech/topics/objective-c.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>)

Tags: [automated](<https://devfeed.tech/tags/automated.md>), [bridging](<https://devfeed.tech/tags/bridging.md>), [class](<https://devfeed.tech/tags/class.md>), [code](<https://devfeed.tech/tags/code.md>), [enum](<https://devfeed.tech/tags/enum.md>), [enums](<https://devfeed.tech/tags/enums.md>), [init](<https://devfeed.tech/tags/init.md>), [meta-programming](<https://devfeed.tech/tags/meta-programming.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [metaprogramming](<https://devfeed.tech/tags/metaprogramming.md>), [objective-c](<https://devfeed.tech/tags/objective-c.md>), [properties](<https://devfeed.tech/tags/properties.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [protocols](<https://devfeed.tech/tags/protocols.md>), [string](<https://devfeed.tech/tags/string.md>), [struct](<https://devfeed.tech/tags/struct.md>), [structs](<https://devfeed.tech/tags/structs.md>), [swift](<https://devfeed.tech/tags/swift.md>), [template](<https://devfeed.tech/tags/template.md>), [templates](<https://devfeed.tech/tags/templates.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

Sourcery can generate Objective-C-accessible wrapper classes for opted-in Swift structs and enums. Types adopt the marker protocol `AutoObjCBridgeable`; a Stencil template uses Sourcery metadata to create `NSObject` wrappers that hold the native value and expose properties. Struct wrappers forward native properties, with setters for mutable values. Enum bridging needs a wrapper for the enum plus separate classes for its cases, allowing associated values to be represented. The example is deliberately incomplete: it does not handle protocols, private properties, initializer defaults, forwarded methods, or structs used as enum associated values. The author presents generated bridges as a temporary aid during migration and recommends keeping Objective-C interaction limited.

### Source excerpt

I recently read a great post by Benjamin Encz about bridging Swift to Objective-C by creating bridging types that can be exposed to the older language. I wondered if his idea can be improved and automated using meta-programming with Sourcery by Krzystof Zablocki. The answer is a very impressive ObjC-like uppercase YES. First of all, you should read Benjamin's post. He proposes to use a bridging class that can be instantiated from Objective-C and Swift because it inherits from NSObject. The bridging class has properties to get and set the properties of the bridged type. In this post I'm just going to give an overview of the template and highlight the simpler parts. If you want to jump directly in the code, here's the project, and the template. The example template bridges struct and enum, but doesn't handle custom protocols to keep it as simple as possible. About Sourcery Sourcery is a tool to generate code, using your written templates, using metadata from your production code. In other words, it's a tool to do metaprogramming in Swift. If you are not familiar with Sourcery I encourage you to go read the documentation and at least understand the simple examples like generating Equatable implementations for your types. Getting familiar with Stencil, one of the supported template languages is also fundamental. Building the template We'll need to generate a new class for every struct and enum that we bridge. In order to opt-in to the feature, we use phantom types in order to mark swift types (our custom structs or enums) that can be bridged to Objective-C. Our template will use this protocol to which types to introspect: protocol AutoObjCBridgeable {} For example, take Benjamin's example code: enum CheckoutOption { case creditCard(given: Int) case paypal(String) } struct ShoppingCart { var items: [String] var checkoutOption: CheckoutOption? init(items: [String], checkoutOption: CheckoutOption? = nil) { self.items = items self.checkoutOption = checkoutOption } } We just

## Build settings depending on Xcode version

DevFeed: [Build settings depending on Xcode version](<https://devfeed.tech/articles/build-settings-depending-on-xcode-version-21619.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2017/01/29/temporary-build-settings/>)

Author: Miguel Angel Quiñones

Published: 2017-01-29T23:26:54Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Xcode](<https://devfeed.tech/topics/xcode.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [settings](<https://devfeed.tech/tags/settings.md>), [swift](<https://devfeed.tech/tags/swift.md>), [version](<https://devfeed.tech/tags/version.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

The excerpt shows how to select Swift build flags by Xcode version using an xcconfig file. It defines separate `OTHER_SWIFT_FLAGS_XCODE_0820` and `OTHER_SWIFT_FLAGS_XCODE_0830` values, then sets `OTHER_SWIFT_FLAGS = $(OTHER_SWIFT_FLAGS_XCODE_$(XCODE_VERSION_MINOR))`. In the example, this lets Xcode 8.3 beta use `-enable-bridging-pch` while Xcode 8.2.1 uses the previous flags, avoiding an unsupported flag with the older Swift compiler. The author notes that `XCODE_VERSION_MINOR` is undocumented. This is an excerpt; it does not provide further setup details.

### Source excerpt

This weekend I wanted to setup Precompiled Bridging Headers for my project. This setting is available in the new Xcode 8.3 beta. Then building for latest official XCode (8.2.1) the code will not compile because the Swift compiler doesn't recognize it. How do we use different build settings for different Xcode versions? Only possible with xcconfig files. There's an undocumented build setting called XCODE_VERSION_MINOR that we can use here. And after some variable substitution we'll make it work. Here's the gist: 1 2 3 4 5 6 // Setting for last Xcode OTHER_SWIFT_FLAGS_XCODE_0820 = //<previous flags, if any> // Setting for Xcode Beta OTHER_SWIFT_FLAGS_XCODE_0830 = -enable-bridging-pch // Switch configuration based on Xcode version OTHER_SWIFT_FLAGS = $(OTHER_SWIFT_FLAGS_XCODE_$(XCODE_VERSION_MINOR)) Full credit to Samantha Marshall's excellent writeups of xcconfig files. Take a read, very useful to refer to.

## Build settings depending on Xcode version

DevFeed: [Build settings depending on Xcode version](<https://devfeed.tech/articles/build-settings-depending-on-xcode-version-97439.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2017/01/29/temporary-build-settings/>)

Published: 2017-01-29T23:26:54Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Xcode](<https://devfeed.tech/topics/xcode.md>), [version](<https://devfeed.tech/topics/version.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [settings](<https://devfeed.tech/tags/settings.md>), [swift](<https://devfeed.tech/tags/swift.md>), [tips](<https://devfeed.tech/tags/tips.md>), [version](<https://devfeed.tech/tags/version.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

The excerpt shows how to select Swift compiler flags by Xcode version using an xcconfig file. It assigns separate `OTHER_SWIFT_FLAGS_XCODE_0820` and `OTHER_SWIFT_FLAGS_XCODE_0830` values, then sets `OTHER_SWIFT_FLAGS` through nested variable substitution with the undocumented `XCODE_VERSION_MINOR` setting. This lets the Xcode 8.3 beta use `-enable-bridging-pch` while the 8.2.1 configuration retains previous flags, avoiding an unsupported flag in the older compiler.

### Source excerpt

This weekend I wanted to setup Precompiled Bridging Headers for my project. This setting is available in the new Xcode 8.3 beta. Then building for latest official XCode (8.2.1) the code will not compile because the Swift compiler doesn't recognize it. How do we use different build settings for different Xcode versions? Only possible with xcconfig files. There's an undocumented build setting called XCODE_VERSION_MINOR that we can use here. And after some variable substitution we'll make it work. Here's the gist: // Setting for last Xcode OTHER_SWIFT_FLAGS_XCODE_0820 = //<previous flags, if any> // Setting for Xcode Beta OTHER_SWIFT_FLAGS_XCODE_0830 = -enable-bridging-pch // Switch configuration based on Xcode version OTHER_SWIFT_FLAGS = $(OTHER_SWIFT_FLAGS_XCODE_$(XCODE_VERSION_MINOR)) Full credit to Samantha Marshall's excellent writeups of xcconfig files. Take a read, very useful to refer to.

## Reducing the pain of git bisect with Xcode

DevFeed: [Reducing the pain of git bisect with Xcode](<https://devfeed.tech/articles/reducing-the-pain-of-git-bisect-with-xcode-97438.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2017/01/22/reducing-the-pain-of-git-bisect-with-xcode/>)

Published: 2017-01-22T11:49:01Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [cocoapods](<https://devfeed.tech/topics/cocoapods.md>), [workflow automation](<https://devfeed.tech/topics/workflow-automation.md>)

Tags: [automate](<https://devfeed.tech/tags/automate.md>), [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [git](<https://devfeed.tech/tags/git.md>), [git-bisect](<https://devfeed.tech/tags/git-bisect.md>), [ios](<https://devfeed.tech/tags/ios.md>), [ios-development](<https://devfeed.tech/tags/ios-development.md>), [regression](<https://devfeed.tech/tags/regression.md>), [tips](<https://devfeed.tech/tags/tips.md>), [tools](<https://devfeed.tech/tags/tools.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

Git bisect narrows a regression to a commit by searching between known good and bad revisions, but iOS projects can make each step slow: CocoaPods dependencies may need refreshing, reproducing bugs may require manual testing or a device, and Xcode reindexes changed sources. The article suggests using a Git post-checkout hook to run `pod install` and close and reopen Xcode, or to build with `xcodebuild` and launch a simulator with `ios-sim`; manual reproduction and good/bad feedback remain necessary when tests do not cover the bug. It also recommends granular commits, ensuring each commit compiles, considering checking in Pods, and writing meaningful commit messages. The excerpt gives a simulator command for a specific older SDK and device type, so it does not establish a general setup for all projects.

### Source excerpt

There's times when you need to investigate regressions in your project, and you don't know have any clue as why something is happening. Git bisect is the best tool for this cases, but it can be painful to use in non small projects using CocoaPods and Xcode. I want to share what I've been doing to ease the pain. If you never used Git bisect, check this introduction. The git command performs a binary search across your repository history, starting from two known commits you provide to the algorithm: 'Good' and 'Bad'. 'Bad' will usually be your last commit, and 'Good' will be a commit back in the history of your repository, when you know the code was working as expected. For every step of the search you need to tell git if a commit is good or bad, either manually or automatically by running a script. Pain points When we enter the realm of iOS development, there's a some factors that make bisect tedious to use. If you use CocoaPods, and if you don't check in the 'Pods' directory in source control, every time you change branch or bisect selects a new commit, you might need to run pod install in order to have all dependencies available and compile correctly. If you are searching for a regression, chances are you don't have an automated test suite, so you'll need to run your app manually and reproduce the issue you are searching for. There will be cases when you're dealing with a bug that needs an app reinstall or needs to run on device to reproduce. To top all this, Xcode will start the long indexing process every time there's changes to the sources due to change of commit, so your computer will start doing lot of work. All of these nuances makes the process of searching for issues using bisect very tedious and not so 'magical' as it is supposed to be. I've nevertheless used bisect many times to save time otherwise wasted reading code and navigating breakpoints during long debugging sessions. You just need some patience and the will to automate some stuff. Reducing the pa

## Reducing the pain of git bisect with Xcode

DevFeed: [Reducing the pain of git bisect with Xcode](<https://devfeed.tech/articles/reducing-the-pain-of-git-bisect-with-xcode-21618.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2017/01/22/reducing-the-pain-of-git-bisect-with-xcode/>)

Author: Miguel Angel Quiñones

Published: 2017-01-22T11:49:01Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [cocoapods](<https://devfeed.tech/topics/cocoapods.md>)

Tags: [automate](<https://devfeed.tech/tags/automate.md>), [binary-search](<https://devfeed.tech/tags/binary-search.md>), [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [ease](<https://devfeed.tech/tags/ease.md>), [git](<https://devfeed.tech/tags/git.md>), [git-bisect](<https://devfeed.tech/tags/git-bisect.md>), [indexing](<https://devfeed.tech/tags/indexing.md>), [ios](<https://devfeed.tech/tags/ios.md>), [ios-development](<https://devfeed.tech/tags/ios-development.md>), [regression](<https://devfeed.tech/tags/regression.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

Git bisect narrows a regression to a commit by searching between known good and bad revisions, but iOS projects can make each step slow: CocoaPods dependencies may need reinstalling, reproducing bugs may require manual app testing or a device, and Xcode reindexes after source changes. The excerpt recommends automating `pod install` with Git's `post-checkout` hook when Pods are not checked in, and combining `xcodebuild` with ios-sim to build and launch in a simulator, leaving reproduction and good/bad feedback manual. It also recommends small, meaningful commits that each compile; checking in Pods can avoid fetching dependencies but has unspecified disadvantages.

### Source excerpt

There's times when you need to investigate regressions in your project, and you don't know have any clue as why something is happening. Git bisect is the best tool for this cases, but it can be painful to use in non small projects using CocoaPods and Xcode. I want to share what I've been doing to ease the pain. If you never used Git bisect, check this introduction. The git command performs a binary search across your repository history, starting from two known commits you provide to the algorithm: 'Good' and 'Bad'. 'Bad' will usually be your last commit, and 'Good' will be a commit back in the history of your repository, when you know the code was working as expected. For every step of the search you need to tell git if a commit is good or bad, either manually or automatically by running a script. Pain points When we enter the realm of iOS development, there's a some factors that make bisect tedious to use. If you use CocoaPods, and if you don't check in the 'Pods' directory in source control, every time you change branch or bisect selects a new commit, you might need to run pod install in order to have all dependencies available and compile correctly. If you are searching for a regression, chances are you don't have an automated test suite, so you'll need to run your app manually and reproduce the issue you are searching for. There will be cases when you're dealing with a bug that needs an app reinstall or needs to run on device to reproduce. To top all this, Xcode will start the long indexing process every time there's changes to the sources due to change of commit, so your computer will start doing lot of work. All of these nuances makes the process of searching for issues using bisect very tedious and not so 'magical' as it is supposed to be. I've nevertheless used bisect many times to save time otherwise wasted reading code and navigating breakpoints during long debugging sessions. You just need some patience and the will to automate some stuff. Reducing the pa

## App extensions, Xcode and Cocoapods, OMG!

DevFeed: [App extensions, Xcode and Cocoapods, OMG!](<https://devfeed.tech/articles/app-extensions-xcode-and-cocoapods-omg-21617.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2016/11/28/app-extensions-xcode-and-cocoapods-omg/>)

Author: Miguel Angel Quiñones

Published: 2016-11-28T09:44:54Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [cocoapods](<https://devfeed.tech/topics/cocoapods.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [Library](<https://devfeed.tech/topics/library.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [conditionals](<https://devfeed.tech/topics/conditionals.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [app](<https://devfeed.tech/tags/app.md>), [apple](<https://devfeed.tech/tags/apple.md>), [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [core](<https://devfeed.tech/tags/core.md>), [extension](<https://devfeed.tech/tags/extension.md>), [extensions](<https://devfeed.tech/tags/extensions.md>), [ios](<https://devfeed.tech/tags/ios.md>), [library](<https://devfeed.tech/tags/library.md>), [macros](<https://devfeed.tech/tags/macros.md>), [swift](<https://devfeed.tech/tags/swift.md>), [target](<https://devfeed.tech/tags/target.md>), [tooling](<https://devfeed.tech/tags/tooling.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

CocoaPods 1.1.0 enables `APPLICATION_EXTENSION_API_ONLY` for libraries linked to app extensions, so compilation can fail when library code references extension-unavailable APIs such as `UIApplication.sharedApplication`, even if the app does not call that code. Mark restricted APIs with `NS_EXTENSION_UNAVAILABLE_IOS`; conditionally compile where needed. For a library that needs different code paths in the app and extension, the excerpt recommends that its author provide separate CocoaPods subspecs, with the extension subspec enabling a preprocessor macro, and that each target link to its corresponding subspec. The workaround requires a podspec change. The excerpt also cautions that Swift extension availability annotations may still fail to permit compilation.

### Source excerpt

Have you encountered this error when upgrading to the latest CocoaPods (1.1.0), or sharing a library between your iOS App and your extension? 1 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead. If yes, continue reading, as you might have encountered same issue as myself. I've recently had to upgrade a project to using Cocoapods 1.1.0. Things stopped compiling, and I had to investigate the root cause of the problem. It has to do with iOS App extensions, unavailable APIs and how fragile our tooling is ;). TL;DR The first cause of error can be fixed by conditionally compiling with a macro. See example here It's better if you define whole classes or API unavailable using NS_EXTENSION_UNAVAILABLE_IOS If you had this error in a 3rd party library you'll need it to be fixed by the author (see below) If you are a library author and need to have different code paths via preprocessor macros, read this thread, and follow the recommendation to create a separated subspec for an extension target Unavailable API for App extensions Since the introduction of Application extensions several years ago, Apple has marked some API as unavailable for these targets. For example, sharedApplication from UIApplication: 1 @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead."); or in Swift: 1 2 @available(iOSApplicationExtension, unavailable) open class var shared: UIApplication { get } Apple is using a new macro, NS_EXTENSION_UNAVAILABLE_IOS to mark API as unavailable. There's a new setting on Xcode, APPLICATION_EXTENSION_API_ONLY, and if set, the code will not compile if it contains a call to sharedApplication. This setting is automatically enabled for extension targets so you get the error in your code when you are writing it. Writing separate code for an App target and and extension target is not

## App extensions, Xcode and Cocoapods, OMG!

DevFeed: [App extensions, Xcode and Cocoapods, OMG!](<https://devfeed.tech/articles/app-extensions-xcode-and-cocoapods-omg-97437.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2016/11/28/app-extensions-xcode-and-cocoapods-omg/>)

Published: 2016-11-28T09:44:54Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [cocoapods](<https://devfeed.tech/topics/cocoapods.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [Library](<https://devfeed.tech/topics/library.md>), [conditionals](<https://devfeed.tech/topics/conditionals.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [cocoapods](<https://devfeed.tech/tags/cocoapods.md>), [extensions](<https://devfeed.tech/tags/extensions.md>), [tips](<https://devfeed.tech/tags/tips.md>), [tools](<https://devfeed.tech/tags/tools.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

Xcode's `APPLICATION_EXTENSION_API_ONLY` check can make shared libraries fail to compile for app extensions when they contain APIs such as `UIApplication.sharedApplication`, even if the extension does not call them. The excerpt recommends marking unavailable APIs with `NS_EXTENSION_UNAVAILABLE_IOS` and, for libraries that need different code paths, providing separate CocoaPods subspecs for the app and extension. Its example uses `Core` and `AppExtension` subspecs with a preprocessor definition on the extension version, then links each subspec to its corresponding target. CocoaPods 1.1.0 deduplicates targets, so this workaround requires the library author to update the podspec. The excerpt also notes an unresolved Swift limitation around extension-unavailable APIs.

### Source excerpt

Have you encountered this error when upgrading to the latest CocoaPods (1.1.0), or sharing a library between your iOS App and your extension? 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead. If yes, continue reading, as you might have encountered same issue as myself. I've recently had to upgrade a project to using Cocoapods 1.1.0. Things stopped compiling, and I had to investigate the root cause of the problem. It has to do with iOS App extensions, unavailable APIs and how fragile our tooling is ;). TL;DR The first cause of error can be fixed by conditionally compiling with a macro. See example here It's better if you define whole classes or API unavailable using NS_EXTENSION_UNAVAILABLE_IOS If you had this error in a 3rd party library you'll need it to be fixed by the author (see below) If you are a library author and need to have different code paths via preprocessor macros, read this thread, and follow the recommendation to create a separated subspec for an extension target Unavailable API for App extensions Since the introduction of Application extensions several years ago, Apple has marked some API as unavailable for these targets. For example, sharedApplication from UIApplication: @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead."); or in Swift: @available(iOSApplicationExtension, unavailable) open class var shared: UIApplication { get } Apple is using a new macro, NS_EXTENSION_UNAVAILABLE_IOS to mark API as unavailable. There's a new setting on Xcode, APPLICATION_EXTENSION_API_ONLY, and if set, the code will not compile if it contains a call to sharedApplication. This setting is automatically enabled for extension targets so you get the error in your code when you are writing it. Writing separate code for an App target and and extension target is not an issue

## Easy localization management with Google spreadsheets

DevFeed: [Easy localization management with Google spreadsheets](<https://devfeed.tech/articles/easy-localization-management-with-google-spreadsheets-21616.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2016/11/19/easy-localizations-management-with-spreadsheets/>)

Author: Miguel Angel Quiñones

Published: 2016-11-19T16:50:18Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Localization (l10n)](<https://devfeed.tech/topics/localization.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [cms](<https://devfeed.tech/tags/cms.md>), [google](<https://devfeed.tech/tags/google.md>), [json](<https://devfeed.tech/tags/json.md>), [localization](<https://devfeed.tech/tags/localization.md>), [solution](<https://devfeed.tech/tags/solution.md>), [spreadsheet](<https://devfeed.tech/tags/spreadsheet.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

The article's example uses a Google spreadsheet as a shared localization table and a Swift script, run locally or on CI, to fetch its contents and generate app `.strings` files. It presents Sheetsu as a simple way to expose spreadsheet data through a JSON API, avoiding a spreadsheet library; the author notes that the free plan limits use to one spreadsheet without additional sheets. The workflow aims to reduce manual string-file edits and make translations easier to share with translators. The example does not handle placeholder validation, which the author identifies as a needed follow-up because translators may alter placeholders.

### Source excerpt

Last thursday I gave a talk at NSLondon meetup called 'Minimum Viable Tooling'. The topic was examples of approaching tooling and automation for small teams. I showed real examples of what we do at Peak, where I currently work. One of the things people showed interest in after the talk was how we deal with localizations. In this post I will replicate the simple solution from scratch, so you can follow along and get started with your own projects. And we will be using Swift for the scripting, just because we can! The minimal CMS In the talk I showed what we currently use to automate generation of strings at Peak. The goal of the solution is twofold: The first is to remove manual manipulation of local strings files by developers. The second is to raise visibility of any translation across the company and enable easier collaboration with translators. This is generally achieved by using a CMS, either a built solution or your own. We'll build our own by leveraging Google spreadsheets as a database and web interface. So we'll need two simple parts: One one side, the strings are hosted in a Google spreasheet. Then on the other side, we'll run a script locally or on our CI every time we want to update strings in the application. The script will load the spreasheet contents, and generate the appropiate .strings file contents. The spreadsheet I've created an example spreadsheet here. It contains rows with keys, and columns with the supported language keys in your app: Here you can take two approaches for your script; you can either use any Google spreadsheet library for a popular scripting language like Ruby or Python, or you can leverage yet another service on top of spreasheets: Sheetsu. Using the service means you don't need any library because it converts the content to a JSON API that can be easily parsed with traditional code. We'll use this as it's the simplest solution. Note that we would need to pay to have more flexibility as the free plan only allows one spreadshee

## Easy localization management with Google spreadsheets

DevFeed: [Easy localization management with Google spreadsheets](<https://devfeed.tech/articles/easy-localization-management-with-google-spreadsheets-97436.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2016/11/19/easy-localizations-management-with-spreadsheets/>)

Published: 2016-11-19T16:50:18Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Localization (l10n)](<https://devfeed.tech/topics/localization.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [automate](<https://devfeed.tech/tags/automate.md>), [automation](<https://devfeed.tech/tags/automation.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cms](<https://devfeed.tech/tags/cms.md>), [collaboration](<https://devfeed.tech/tags/collaboration.md>), [database](<https://devfeed.tech/tags/database.md>), [google](<https://devfeed.tech/tags/google.md>), [keys](<https://devfeed.tech/tags/keys.md>), [localization](<https://devfeed.tech/tags/localization.md>), [python](<https://devfeed.tech/tags/python.md>), [script](<https://devfeed.tech/tags/script.md>), [spreadsheet](<https://devfeed.tech/tags/spreadsheet.md>), [strings](<https://devfeed.tech/tags/strings.md>), [swift](<https://devfeed.tech/tags/swift.md>), [tips](<https://devfeed.tech/tags/tips.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

The example builds a lightweight localization workflow with a Google spreadsheet as the shared translation table and a Swift script that fetches its contents and generates `.strings` output, reducing developers' manual file edits while making translations easier to share with translators. It uses Sheetsu to expose the sheet as JSON, avoiding a spreadsheet library; the excerpt notes that its free plan allows only one spreadsheet without additional sheets. The sample leaves file creation for later and does not handle validation for strings with placeholders, which the author identifies as a source of translator errors.

### Source excerpt

Last thursday I gave a talk at NSLondon meetup called 'Minimum Viable Tooling'. The topic was examples of approaching tooling and automation for small teams. I showed real examples of what we do at Peak, where I currently work. One of the things people showed interest in after the talk was how we deal with localizations. In this post I will replicate the simple solution from scratch, so you can follow along and get started with your own projects. And we will be using Swift for the scripting, just because we can! The minimal CMS In the talk I showed what we currently use to automate generation of strings at Peak. The goal of the solution is twofold: The first is to remove manual manipulation of local strings files by developers. The second is to raise visibility of any translation across the company and enable easier collaboration with translators. This is generally achieved by using a CMS, either a built solution or your own. We'll build our own by leveraging Google spreadsheets as a database and web interface. So we'll need two simple parts: One one side, the strings are hosted in a Google spreasheet. Then on the other side, we'll run a script locally or on our CI every time we want to update strings in the application. The script will load the spreasheet contents, and generate the appropiate .strings file contents. The spreadsheet I've created an example spreadsheet here. It contains rows with keys, and columns with the supported language keys in your app: Here you can take two approaches for your script; you can either use any Google spreadsheet library for a popular scripting language like Ruby or Python, or you can leverage yet another service on top of spreasheets: Sheetsu. Using the service means you don't need any library because it converts the content to a JSON API that can be easily parsed with traditional code. We'll use this as it's the simplest solution. Note that we would need to pay to have more flexibility as the free plan only allows one spreadshee

## Controlling time in the app

DevFeed: [Controlling time in the app](<https://devfeed.tech/articles/controlling-time-in-the-app-21615.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2016/10/26/controlling-time-in-the-app/>)

Author: Miguel Angel Quiñones

Published: 2016-10-26T18:38:37Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [App](<https://devfeed.tech/topics/app.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [Swift](<https://devfeed.tech/topics/swift.md>), [Library](<https://devfeed.tech/topics/library.md>), [Code](<https://devfeed.tech/topics/code.md>), [simulator](<https://devfeed.tech/topics/simulator.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [ios](<https://devfeed.tech/tags/ios.md>), [library](<https://devfeed.tech/tags/library.md>), [simulator](<https://devfeed.tech/tags/simulator.md>), [swift](<https://devfeed.tech/tags/swift.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The article explains how to control an application's perceived system date and time to make time-dependent behavior easier to test and debug. It presents dependency injection for unit tests and describes using the TUDelorean library with an in-app debugging menu to simulate time changes and system-triggered events without changing the device or computer clock.

### Source excerpt

Today I want to share a small utility we've been using for a while at Peak, my current workplace, to control the system time inside the application and save time while testing or debugging. In most application code you'll eventually end up with tasks that need to execute periodically, or after some time has passed. The period of time will depend on the actual application requirements, and might change from the order of seconds to days. For example, you might have a data cleanup every 30 days, your application might ping a backend for synchronization every 10 minutes, or by the start of every day, some data needs to be generated and presented to the user. Foundation and dates You'll eventually use NSDate and NSCalendar (or Date and Calendar in Swift) to calculate when your tasks should be executed. As an example, say you have a task scheduler, and it will run tasks after a specific amount of time passed: 1 2 3 4 5 6 7 8 9 10 11 12 13 protocol Task { func execute() } class Scheduler { func schedule(_ task: Task, every: TimeInterval) { // Schedule and save task to run every x seconds } func run(with date: Date) { // Actually perform the calculations and fire due tasks } } For this code to be testable it's a very common practice to pass the Date in, as we do in the example above. This will improve testability as the date can be controlled from unit tests, thus isolating the system date from the date the component uses to operate. But what about the times when you want to check the integration between the code and the system date? What if you want to trigger code that reacts to UIApplicationSignificantTimeChange? The traditional way to test this kind of interactions is to change the date on the device, be it on iOS directly, or you or computer if running the simulator. But it would be very useful to control the system date and time inside the application without having to change the system date in the device or your computer. Time travel To control the time from a debugg

## Controlling time in the app

DevFeed: [Controlling time in the app](<https://devfeed.tech/articles/controlling-time-in-the-app-97435.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2016/10/26/controlling-time-in-the-app/>)

Published: 2016-10-26T18:38:37Z

Content type: tutorial

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [application](<https://devfeed.tech/tags/application.md>), [backend](<https://devfeed.tech/tags/backend.md>), [calendar](<https://devfeed.tech/tags/calendar.md>), [control](<https://devfeed.tech/tags/control.md>), [data](<https://devfeed.tech/tags/data.md>), [days](<https://devfeed.tech/tags/days.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [device](<https://devfeed.tech/tags/device.md>), [example](<https://devfeed.tech/tags/example.md>), [foundation](<https://devfeed.tech/tags/foundation.md>), [inside](<https://devfeed.tech/tags/inside.md>), [integration](<https://devfeed.tech/tags/integration.md>), [ios](<https://devfeed.tech/tags/ios.md>), [minutes](<https://devfeed.tech/tags/minutes.md>), [period](<https://devfeed.tech/tags/period.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [run](<https://devfeed.tech/tags/run.md>), [schedule](<https://devfeed.tech/tags/schedule.md>), [time](<https://devfeed.tech/tags/time.md>), [tips](<https://devfeed.tech/tags/tips.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

TUDelorean can shift the date seen by app code during testing or debugging, allowing developers to exercise time-dependent behavior without changing the device or simulator's system clock. The article first notes that passing `Date` into a scheduler makes its calculations controllable in unit tests, but does not test integration with the system date. It describes using TUDelorean's runtime method substitutions from an in-app debugging menu, then emitting `UIApplicationSignificantTimeChange` manually to simulate a new day. Call `TUDelorean.backToThePresent()` to restore the real system date. The author says this technique is for testing and debugging only.

### Source excerpt

Today I want to share a small utility we've been using for a while at Peak, my current workplace, to control the system time inside the application and save time while testing or debugging. In most application code you'll eventually end up with tasks that need to execute periodically, or after some time has passed. The period of time will depend on the actual application requirements, and might change from the order of seconds to days. For example, you might have a data cleanup every 30 days, your application might ping a backend for synchronization every 10 minutes, or by the start of every day, some data needs to be generated and presented to the user. Foundation and dates You'll eventually use NSDate and NSCalendar (or Date and Calendar in Swift) to calculate when your tasks should be executed. As an example, say you have a task scheduler, and it will run tasks after a specific amount of time passed: protocol Task { func execute() } class Scheduler { func schedule(_ task: Task, every: TimeInterval) { // Schedule and save task to run every x seconds } func run(with date: Date) { // Actually perform the calculations and fire due tasks } } For this code to be testable it's a very common practice to pass the Date in, as we do in the example above. This will improve testability as the date can be controlled from unit tests, thus isolating the system date from the date the component uses to operate. But what about the times when you want to check the integration between the code and the system date? What if you want to trigger code that reacts to UIApplicationSignificantTimeChange? The traditional way to test this kind of interactions is to change the date on the device, be it on iOS directly, or you or computer if running the simulator. But it would be very useful to control the system date and time inside the application without having to change the system date in the device or your computer. Time travel To control the time from a debugging menu in the application, w

## Knowing when to delete code

DevFeed: [Knowing when to delete code](<https://devfeed.tech/articles/knowing-when-to-delete-code-21614.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2016/08/16/knowing-when-to-delete-code/>)

Author: Miguel Angel Quiñones

Published: 2016-08-16T20:04:04Z

Content type: opinion

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Application Development](<https://devfeed.tech/topics/application-development.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>), [Software](<https://devfeed.tech/topics/software.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [legacy-code](<https://devfeed.tech/tags/legacy-code.md>), [refactor](<https://devfeed.tech/tags/refactor.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [regression](<https://devfeed.tech/tags/regression.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

An opinion article about deciding when to delete code in long-term projects. It discusses short-lived application code, how evolving products can make code legacy, and the trade-off between refactoring and rewriting, favoring small refactorings over large rewrites.

### Source excerpt

Much of the literature and writing related to sofware development focuses on the creation, new ideas, fresh ideas and things to improve in your next project. But when is it a good moment to delete the old stuff in an long term project? Here's my short rant about this; I recently deleted a chunk of code in my current project and just felt I wanted to write my thoughts. Short-lived code Working on application development field, it is very normal that some code is very short lived. If you're looking to build systems and generic components then you're generally out of luck. Most Application code is generally short lived. In my opinion we just need to know how to deal with it. Products evolve, ideas and markets change, and the code implementing those concepts has to change to reflect the direction of an application. If your code doesn't closely relate or express the domain of your application, you're bound to have design problems, miscomunication and likely many bugs. Application code is very likely to become legacy in a very short time. That time might be even less than 1 or 2 years. Legacy code There isn't consensus on what makes code reach the dreaded legacy status. The definition has changed since it's first introduction, and nowadays we generally consider legacy the code that we didn't write. See the wikipedia entry: ...source code inherited from someone else and source code inherited from an older version of the software Or another definition: Michael Feathers introduced a definition of legacy code as code without tests, which reflects the perspective of legacy code being difficult to work with in part due to a lack of automated regression tests Many programmers generally call legacy code anything that they didn't write. While this is a very harsh treament of somebody's effort and time, it will mean that your code will become legacy in very short time as well. Refactoring vs Rewriting Legacy code is often mentioned when refactoring. The effort of writing some piece o

## Knowing when to delete code

DevFeed: [Knowing when to delete code](<https://devfeed.tech/articles/knowing-when-to-delete-code-97434.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2016/08/16/knowing-when-to-delete-code/>)

Published: 2016-08-16T20:04:04Z

Content type: opinion

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [legacy systems](<https://devfeed.tech/topics/legacy-systems.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Code Modularity](<https://devfeed.tech/topics/code-modularity.md>)

Tags: [application-development](<https://devfeed.tech/tags/application-development.md>), [code](<https://devfeed.tech/tags/code.md>), [delete](<https://devfeed.tech/tags/delete.md>), [legacy-code](<https://devfeed.tech/tags/legacy-code.md>), [meta](<https://devfeed.tech/tags/meta.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [tests](<https://devfeed.tech/tags/tests.md>), [tips](<https://devfeed.tech/tags/tips.md>)

### AI overview

The author argues that application code can become legacy quickly as products and markets change, so developers should judge code by how well it still expresses the application's domain. When considering refactoring or rewriting, weigh the effort against end-user value; the author favors small refactorings and says large rewrites have not paid off in their experience. They especially urge teams to remove dead or temporary code--such as obsolete A/B tests, migrations, and bridging code--rather than keep it "just in case," since unused code adds cruft and may become hard to understand. This is the author's opinion, not a universal rule.

### Source excerpt

Much of the literature and writing related to sofware development focuses on the creation, new ideas, fresh ideas and things to improve in your next project. But when is it a good moment to delete the old stuff in an long term project? Here's my short rant about this; I recently deleted a chunk of code in my current project and just felt I wanted to write my thoughts. Short-lived code Working on application development field, it is very normal that some code is very short lived. If you're looking to build systems and generic components then you're generally out of luck. Most Application code is generally short lived. In my opinion we just need to know how to deal with it. Products evolve, ideas and markets change, and the code implementing those concepts has to change to reflect the direction of an application. If your code doesn't closely relate or express the domain of your application, you're bound to have design problems, miscomunication and likely many bugs. Application code is very likely to become legacy in a very short time. That time might be even less than 1 or 2 years. Legacy code There isn't consensus on what makes code reach the dreaded legacy status. The definition has changed since it's first introduction, and nowadays we generally consider legacy the code that we didn't write. See the wikipedia entry: ...source code inherited from someone else and source code inherited from an older version of the software Or another definition: Michael Feathers introduced a definition of legacy code as code without tests, which reflects the perspective of legacy code being difficult to work with in part due to a lack of automated regression tests Many programmers generally call legacy code anything that they didn't write. While this is a very harsh treament of somebody's effort and time, it will mean that your code will become legacy in very short time as well. Refactoring vs Rewriting Legacy code is often mentioned when refactoring. The effort of writing some piece o

## Xcode 8: New build settings and analyzer improvements

DevFeed: [Xcode 8: New build settings and analyzer improvements](<https://devfeed.tech/articles/xcode-8-new-build-settings-and-analyzer-improvements-97433.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2016/07/31/xcode-8-new-build-settings-and-analyzer-improvements/>)

Published: 2016-07-31T20:50:16Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Xcode](<https://devfeed.tech/topics/xcode.md>), [clang](<https://devfeed.tech/topics/clang.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [clang](<https://devfeed.tech/tags/clang.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [conditional](<https://devfeed.tech/tags/conditional.md>), [false-positives](<https://devfeed.tech/tags/false-positives.md>), [improvements](<https://devfeed.tech/tags/improvements.md>), [ios](<https://devfeed.tech/tags/ios.md>), [legacy-code](<https://devfeed.tech/tags/legacy-code.md>), [objective-c](<https://devfeed.tech/tags/objective-c.md>), [settings](<https://devfeed.tech/tags/settings.md>), [swift](<https://devfeed.tech/tags/swift.md>), [tools](<https://devfeed.tech/tags/tools.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

Xcode 8 beta 3 adds more aggressive nullability analysis: CLANG_ANALYZER_NONNULL set to YES checks all calls and may expose additional warnings in legacy Objective-C code; YES_NONAGRESSIVE is a less strict fallback while auditing them. CLANG_ANALYZER_OBJC_DEALLOC checks cleanup of synthesized instance variables in -dealloc, though the author could not trigger it and cautions about possible false positives. Swift conditional compilation flags move from OTHER_SWIFT_FLAGS values such as -DMYFLAG to SWIFT_ACTIVE_COMPILATION_CONDITIONS values such as MYFLAG. SWIFT_SUPPRESS_WARNINGS and SWIFT_TREAT_WARNINGS_AS_ERRORS control the corresponding compiler options; both default to NO. ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES replaces deprecated EMBEDDED_CONTENT_CONTAINS_SWIFT. The excerpt also notes that .xcconfig files can conditionally include other files with #include? and that Xcode considers their settings when suggesting updates.

### Source excerpt

I always like to check the new build settings and analyzer improvements of every Xcode release. And this year's main release includes a couple of goodies. Let's check them out! Analyzer improvements From the current Xcode 8 beta 3 release notes: 'Misuse of null' or CLANG_ANALYZER_NONNULL The static analyzer check for nullability violations supports both aggressive and less aggressive levels of checking. The more aggressive level checks for nullability violations in all calls This is a very nice addition for anybody dealing with legacy Objective-C code and audited APIs. So remember to enable the more aggressive setting in your project as it won't be enabled after your upgrade. Most likely you'll find that some APIs were not used correctly, and you'll get more warnings. You should set it to YES instead of YES_NONAGRESSIVE for the most strict checking. Remember you can revert (hopefully temporarily) to YES_NONAGRESSIVE so you can make your code compile while you audit the analyzer warnings again. New setting: CLANG_ANALYZER_OBJC_DEALLOC The clang static analyzer now checks for improper cleanup of synthesized instance variables in -dealloc methods Possibly a minor one, but remember that the analyzer could give you new false positives in legacy code. I couldn't make it trigger in a test project, so I don't really know what it will warn you about. New build settings New setting: SWIFT_ACTIVE_COMPILATION_CONDITIONS "Active Compilation Conditions" is a new build setting for passing conditional compilation flags to the Swift compiler. Previously, we had to declare your conditional compilation flags under OTHER_SWIFT_FLAGS, remembering to prepend "-D" to the setting. For example, to conditionally compile with a MYFLAG value: #if MYFLAG // do stuff #endif The value to add to the setting -DMYFLAG Now we only need to pass the value MYFLAG to the new setting. Time to move all those conditional compilation values! New settings: SWIFT_SUPPRESS_WARNINGS and SWIFT_TREAT_WARNINGS_AS_E

## Xcode 8: New build settings and analyzer improvements

DevFeed: [Xcode 8: New build settings and analyzer improvements](<https://devfeed.tech/articles/xcode-8-new-build-settings-and-analyzer-improvements-21613.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2016/07/31/xcode-8-new-build-settings-and-analyzer-improvements/>)

Author: Miguel Angel Quiñones

Published: 2016-07-31T20:50:16Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Xcode](<https://devfeed.tech/topics/xcode.md>), [Null-Safety](<https://devfeed.tech/topics/null-safety.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [clang](<https://devfeed.tech/tags/clang.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [conditional](<https://devfeed.tech/tags/conditional.md>), [deprecated](<https://devfeed.tech/tags/deprecated.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [false-positives](<https://devfeed.tech/tags/false-positives.md>), [improvements](<https://devfeed.tech/tags/improvements.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [legacy-code](<https://devfeed.tech/tags/legacy-code.md>), [objective-c](<https://devfeed.tech/tags/objective-c.md>), [settings](<https://devfeed.tech/tags/settings.md>), [swift](<https://devfeed.tech/tags/swift.md>), [warnings](<https://devfeed.tech/tags/warnings.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

Xcode 8 adds stricter nullability analysis and several Swift build settings. CLANG_ANALYZER_NONNULL can check all calls at the aggressive level; the excerpt recommends setting it to YES rather than YES_NONAGRESSIVE, while warning that stricter checks may expose misuse in legacy Objective-C code. CLANG_ANALYZER_OBJC_DEALLOC adds checks for cleanup of synthesized instance variables in -dealloc, though the author could not test it and notes possible false positives. SWIFT_ACTIVE_COMPILATION_CONDITIONS replaces -D-prefixed entries in OTHER_SWIFT_FLAGS with bare condition names. SWIFT_SUPPRESS_WARNINGS and SWIFT_TREAT_WARNINGS_AS_ERRORS map to compiler options and both default to NO. The excerpt also says ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES replaces deprecated EMBEDDED_CONTENT_CONTAINS_SWIFT, and notes optional xcconfig inclusion with #include?.

### Source excerpt

I always like to check the new build settings and analyzer improvements of every Xcode release. And this year's main release includes a couple of goodies. Let's check them out! Analyzer improvements From the current Xcode 8 beta 3 release notes: 'Misuse of null' or CLANG_ANALYZER_NONNULL The static analyzer check for nullability violations supports both aggressive and less aggressive levels of checking. The more aggressive level checks for nullability violations in all calls This is a very nice addition for anybody dealing with legacy Objective-C code and audited APIs. So remember to enable the more aggressive setting in your project as it won't be enabled after your upgrade. Most likely you'll find that some APIs were not used correctly, and you'll get more warnings. You should set it to YES instead of YES_NONAGRESSIVE for the most strict checking. Remember you can revert (hopefully temporarily) to YES_NONAGRESSIVE so you can make your code compile while you audit the analyzer warnings again. New setting: CLANG_ANALYZER_OBJC_DEALLOC The clang static analyzer now checks for improper cleanup of synthesized instance variables in -dealloc methods Possibly a minor one, but remember that the analyzer could give you new false positives in legacy code. I couldn't make it trigger in a test project, so I don't really know what it will warn you about. New build settings New setting: SWIFT_ACTIVE_COMPILATION_CONDITIONS "Active Compilation Conditions" is a new build setting for passing conditional compilation flags to the Swift compiler. Previously, we had to declare your conditional compilation flags under OTHER_SWIFT_FLAGS, remembering to prepend "-D" to the setting. For example, to conditionally compile with a MYFLAG value: 1 2 3 #if MYFLAG // do stuff #endif The value to add to the setting -DMYFLAG Now we only need to pass the value MYFLAG to the new setting. Time to move all those conditional compilation values! New settings: SWIFT_SUPPRESS_WARNINGS and SWIFT_TREAT_WARNING

## Dear SDK developer

DevFeed: [Dear SDK developer](<https://devfeed.tech/articles/dear-sdk-developer-97432.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2016/04/22/dear-sdk-developer/>)

Published: 2016-04-22T11:50:32Z

Content type: opinion

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [SDK](<https://devfeed.tech/topics/sdk.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [changelog](<https://devfeed.tech/tags/changelog.md>), [community](<https://devfeed.tech/tags/community.md>), [crash](<https://devfeed.tech/tags/crash.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [discussions](<https://devfeed.tech/tags/discussions.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [engineering-practice](<https://devfeed.tech/tags/engineering-practice.md>), [examples](<https://devfeed.tech/tags/examples.md>), [logs](<https://devfeed.tech/tags/logs.md>), [meta](<https://devfeed.tech/tags/meta.md>), [migration](<https://devfeed.tech/tags/migration.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [project](<https://devfeed.tech/tags/project.md>), [quality](<https://devfeed.tech/tags/quality.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [source-code](<https://devfeed.tech/tags/source-code.md>), [third-party](<https://devfeed.tech/tags/third-party.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

The author argues that SDK maintainers should provide user-focused documentation with examples, rationale, and FAQs; publish source where possible to help users diagnose bugs and enable community fixes; and maintain changelogs that describe concrete changes. When APIs break, migration guides should show how to move to replacements with minimal effort. Getting-started examples should also account for host applications that use multiple SDKs: the Facebook and Branch examples both show app delegate URL or link handling, but the author says neither explains return values or how to combine SDK handling with the app's other work. Examples should help developers integrate SDKs into existing applications rather than assume the SDK is used alone.

### Source excerpt

As an application developer I get to use many third party code to integrate it into my current project. I want to share a checklist of things a user of an SDK really appreciates. Documentation This is the most important part of any SDK, be it open source or closed source. Users don't need to understand your code, or learn by themselves how to use your APIs. Maintaining documentation is a big part of maintaining an SDK, and it goes far beyond documenting the code. Documentation! Really, this is very important and lacking on many commercial SDKs. Please include examples, rationale and FAQ. Documentation!! Don't get it? Just some examples of great additional documentation: Quick: Quick RxSwift: RxSwift YapDatabase: YapDatabase Please, open source your SDK There's nothing more annonying than encountering bugs or unexpected behaviour and having to skim through logs, documentation and trial and error tests. This can happen anytime when using unfamiliar APIs, and having the source to understand what goes wrong is the first big benefit of open source SDKs. Furthermore, if you accept contributions from the community, you might get some developers helping with debugging and fixing issues. Having open issue discussions help with questions and faster communication. A good example is projects on Github. See an example of Snowplow devs just guiding me over my confusion. Surely your business model is not dependant on you not publishing the source code that interacts with your platform? Changelogs Any developer including third party code in an application is assuming the quality of your code into theirs. They also have the final accountability for the end users, who don't care where a bug or crash is coming from. Good engineering practice will make users of your SDK wary of changes you introduce, so a changelog is very important to let them know what changed. And please, don't just add stability improvements. Version migration documentation More documentation! This is very special

## Dear SDK developer

DevFeed: [Dear SDK developer](<https://devfeed.tech/articles/dear-sdk-developer-21612.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2016/04/22/dear-sdk-developer/>)

Author: Miguel Angel Quiñones

Published: 2016-04-22T11:50:32Z

Content type: opinion

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [SDK](<https://devfeed.tech/topics/sdk.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [accountability](<https://devfeed.tech/tags/accountability.md>), [also](<https://devfeed.tech/tags/also.md>), [apis](<https://devfeed.tech/tags/apis.md>), [application](<https://devfeed.tech/tags/application.md>), [behaviour](<https://devfeed.tech/tags/behaviour.md>), [benefit](<https://devfeed.tech/tags/benefit.md>), [bug](<https://devfeed.tech/tags/bug.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [business](<https://devfeed.tech/tags/business.md>), [can](<https://devfeed.tech/tags/can.md>), [changelog](<https://devfeed.tech/tags/changelog.md>), [changes](<https://devfeed.tech/tags/changes.md>), [code](<https://devfeed.tech/tags/code.md>), [communication](<https://devfeed.tech/tags/communication.md>), [community](<https://devfeed.tech/tags/community.md>), [contributions](<https://devfeed.tech/tags/contributions.md>), [crash](<https://devfeed.tech/tags/crash.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [developer](<https://devfeed.tech/tags/developer.md>), [sdk](<https://devfeed.tech/tags/sdk.md>)

### AI overview

The author's checklist emphasizes helping SDK users understand, debug, and safely adopt changes. Provide documentation with examples, rationale, and FAQs; for breaking API changes, include migration guidance and examples that ease the transition. Open sourcing can let users inspect behavior, while community contributions and public issue discussions may help with debugging and questions. Publish changelogs that describe specific changes rather than vague "stability improvements," since application developers remain accountable for bugs affecting end users. Finally, make getting-started examples realistic: explain return values and account for host applications doing other work, rather than assuming the SDK is used alone. The text names Quick, RxSwift, YapDatabase, and Snowplow as documentation or migration-guide examples, and contrasts Facebook and Branch examples as naive.

### Source excerpt

As an application developer I get to use many third party code to integrate it into my current project. I want to share a checklist of things a user of an SDK really appreciates. Documentation This is the most important part of any SDK, be it open source or closed source. Users don't need to understand your code, or learn by themselves how to use your APIs. Maintaining documentation is a big part of maintaining an SDK, and it goes far beyond documenting the code. Documentation! Really, this is very important and lacking on many commercial SDKs. Please include examples, rationale and FAQ. Documentation!! Don't get it? Just some examples of great additional documentation: Quick: Quick RxSwift: RxSwift YapDatabase: YapDatabase Please, open source your SDK There's nothing more annonying than encountering bugs or unexpected behaviour and having to skim through logs, documentation and trial and error tests. This can happen anytime when using unfamiliar APIs, and having the source to understand what goes wrong is the first big benefit of open source SDKs. Furthermore, if you accept contributions from the community, you might get some developers helping with debugging and fixing issues. Having open issue discussions help with questions and faster communication. A good example is projects on Github. See an example of Snowplow devs just guiding me over my confusion. Surely your business model is not dependant on you not publishing the source code that interacts with your platform? Changelogs Any developer including third party code in an application is assuming the quality of your code into theirs. They also have the final accountability for the end users, who don't care where a bug or crash is coming from. Good engineering practice will make users of your SDK wary of changes you introduce, so a changelog is very important to let them know what changed. And please, don't just add stability improvements. Version migration documentation More documentation! This is very special

## Xcode 7.3 analyzer improvements

DevFeed: [Xcode 7.3 analyzer improvements](<https://devfeed.tech/articles/xcode-7-3-analyzer-improvements-21611.md>)

Original publisher: [Read original article](<http://miqu.me/blog/2016/01/21/xcode-7-dot-3-analyzer-improvements/>)

Author: Miguel Angel Quiñones

Published: 2016-01-21T20:39:53Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Xcode](<https://devfeed.tech/topics/xcode.md>), [clang](<https://devfeed.tech/topics/clang.md>)

Tags: [annotations](<https://devfeed.tech/tags/annotations.md>), [beta](<https://devfeed.tech/tags/beta.md>), [clang](<https://devfeed.tech/tags/clang.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [generics](<https://devfeed.tech/tags/generics.md>), [improvements](<https://devfeed.tech/tags/improvements.md>), [objective-c](<https://devfeed.tech/tags/objective-c.md>), [release-notes](<https://devfeed.tech/tags/release-notes.md>), [settings](<https://devfeed.tech/tags/settings.md>), [static](<https://devfeed.tech/tags/static.md>), [user](<https://devfeed.tech/tags/user.md>), [warning](<https://devfeed.tech/tags/warning.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

Xcode 7.3's static analyzer adds checks for nullability violations, common Objective-C generics misuse, and missing localization. CLANG_ANALYZER_NONNULL and CLANG_ANALYZER_OBJC_GENERICS are enabled by default and warn when code conflicts with nullability or generics annotations. CLANG_ANALYZER_LOCALIZABILITY is off by default; enable "Missing localizability" under "Static Analyzer - Generic Issues." It flags user-facing text assigned directly to a label, but the excerpt says it does not detect an untranslated key passed to NSLocalizedString.

### Source excerpt

The latest xcode beta is available for downloading. There are many improvements, and the usual problems with stuff that stops working... Ah the love of Apple for it's developers :). But I want to tell you about a feature that caught my attention: New analyzer settings! New analyzer settings From the release notes: The static analyzer warns when nil is returned from a method or function with a nonnull return type or is passed to a parameter marked nonnull. The static analyzer checks for common misuses of Objective-C generics. The static analyzer checks for missing localizability. This check is off by default and can be enabled by selecting 'Yes' for 'Missing localizability' in the 'Static Analyzer - Generic Issues' build settings. There are 3 new settings related to these new features: CLANG_ANALYZER_NONNULL, CLANG_ANALYZER_OBJC_GENERICS and CLANG_ANALYZER_LOCALIZABILITY. CLANG_ANALYZER_NONNULL and CLANG_ANALYZER_OBJC_GENERICS Objective-C continues to get some love! Adding into the changes for nullability and generics, now the analyzer will start to warn you about usage not in line with your annotations. That's very good news, considering that the compiler checks were a bit lacking. Additional kudos because both settings are enabled by default. CLANG_ANALYZER_LOCALIZABILITY This is an intriguing one. Let's investigate further; Let's say you have some code where you set a string to a label: 1 label.text = @"not-localized"; You'll now get a nice analyzer warning: "User-facing text should use localized string macro" But you won't get a warning when the key is not localized. Like: 1 label.text = NSLocalizedString(@"not-localized", nil); Hey, we can't have everything, but here's my request for improvement submitted. Anyway, go ahead and enable these new settings! And use the analyzer!

## Xcode 7.3 analyzer improvements

DevFeed: [Xcode 7.3 analyzer improvements](<https://devfeed.tech/articles/xcode-7-3-analyzer-improvements-97431.md>)

Original publisher: [Read original article](<https://miqu.me/blog/2016/01/21/xcode-7-dot-3-analyzer-improvements/>)

Published: 2016-01-21T20:39:53Z

Content type: article

Language: en

Sources: [Miguel Quinones](<https://devfeed.tech/sources/miguel-quinones.md>)

Topics: [Xcode](<https://devfeed.tech/topics/xcode.md>), [clang](<https://devfeed.tech/topics/clang.md>)

Tags: [annotations](<https://devfeed.tech/tags/annotations.md>), [beta](<https://devfeed.tech/tags/beta.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [generics](<https://devfeed.tech/tags/generics.md>), [ios](<https://devfeed.tech/tags/ios.md>), [objective-c](<https://devfeed.tech/tags/objective-c.md>), [release-notes](<https://devfeed.tech/tags/release-notes.md>), [settings](<https://devfeed.tech/tags/settings.md>), [static](<https://devfeed.tech/tags/static.md>), [tools](<https://devfeed.tech/tags/tools.md>), [user](<https://devfeed.tech/tags/user.md>), [warning](<https://devfeed.tech/tags/warning.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

Xcode 7.3's static analyzer adds checks for nil values that conflict with nonnull annotations and common Objective-C generics misuse; both settings are enabled by default. A third check flags directly assigned user-facing text that lacks a localization macro, but the excerpt says it does not detect when a string passed to NSLocalizedString is itself an untranslated key. Missing localizability is off by default and can be enabled in Static Analyzer - Generic Issues. The excerpt names the corresponding settings CLANG_ANALYZER_NONNULL, CLANG_ANALYZER_OBJC_GENERICS, and CLANG_ANALYZER_LOCALIZABILITY.

### Source excerpt

The latest xcode beta is available for downloading. There are many improvements, and the usual problems with stuff that stops working... Ah the love of Apple for it's developers :). But I want to tell you about a feature that caught my attention: New analyzer settings! New analyzer settings From the release notes: The static analyzer warns when nil is returned from a method or function with a nonnull return type or is passed to a parameter marked nonnull. The static analyzer checks for common misuses of Objective-C generics. The static analyzer checks for missing localizability. This check is off by default and can be enabled by selecting 'Yes' for 'Missing localizability' in the 'Static Analyzer - Generic Issues' build settings. There are 3 new settings related to these new features: CLANG_ANALYZER_NONNULL, CLANG_ANALYZER_OBJC_GENERICS and CLANG_ANALYZER_LOCALIZABILITY. CLANG_ANALYZER_NONNULL and CLANG_ANALYZER_OBJC_GENERICS Objective-C continues to get some love! Adding into the changes for nullability and generics, now the analyzer will start to warn you about usage not in line with your annotations. That's very good news, considering that the compiler checks were a bit lacking. Additional kudos because both settings are enabled by default. CLANG_ANALYZER_LOCALIZABILITY This is an intriguing one. Let's investigate further; Let's say you have some code where you set a string to a label: label.text = @"not-localized"; You'll now get a nice analyzer warning: "User-facing text should use localized string macro" But you won't get a warning when the key is not localized. Like: label.text = NSLocalizedString(@"not-localized", nil); Hey, we can't have everything, but here's my request for improvement submitted. Anyway, go ahead and enable these new settings! And use the analyzer!

[Next page](<https://devfeed.tech/sources/miguel-quinones.md?cursor=WyIyMDE2LTAxLTIxVDIwOjM5OjUzKzAwOjAwIiwgIjQ0N2Y3YTBlLWJkZjQtNDU0Mi04YWI2LTVkZDZhMjY5ZGVlZSJd>)