Andrey Tarantsov

2个Pod

ATExpressiveCollections

理由,简单三点

  1. 有三种类型的代码
* Algorithmic / data structure-heavy code (e.g. “create an empty array with the given capacity, iterate over the input collection, perform a test on each element, add the elements passing the test to the output array”)

* API-heavy code (e.g. “get a file manager, ask for the properties of the given resources, check for errors”)

* Domain logic (e.g. “ignore missing files”)
  1. 混合这些类型的代码在同一方法中是一个坏主意。

  2. 因此,当你发现自己正在同一个方法中写多个处理集合的代码行和多个API交互/应用逻辑代码行时,你应该将算法部分提取到单独的辅助方法中。

ATExpressiveCollections是从我多年的应用中提取出来的一组算法辅助工具。

许可协议:MIT

  • Objective C

ATPathSpec

具有灵活可配置语法的路径匹配库,每个语法功能都可以通过标志启用/禁用。为shell globs和gitignore模式提供预定义的口味。

许可协议:MIT

  • Objective C