Dash for iOS 的某行代码

2016-11-15 11:28:59 +08:00
 caizixian
https://github.com/Kapeli/Dash-iOS/blob/4884835117038fad072afc99a0cbbb4f3fa474fa/Dash/DHDBResult.m#L561

Source: https://twitter.com/BalestraPatrick/status/798278284320604160
4553 次点击
所在节点    iDev
9 条回复
vulgur
2016-11-15 11:45:28 +08:00
滚了好久才滚到行尾
allan888
2016-11-15 11:59:01 +08:00
想知道这个和搞个 set 然后 check 一下是不是在 set 里面相比,他这么写有什么特殊的考虑吗。。。
black
2016-11-15 12:40:06 +08:00
@allan888 有个用 set 重构的 PR 了
Chrisplus
2016-11-15 12:46:06 +08:00
不能设置 max line length 么,换个行也好
iAugus
2016-11-15 12:46:39 +08:00
滚的好累。。。
HuangLibo
2016-11-15 13:14:56 +08:00
真的开源啦,虽然之前花了三十块钱,但是我已经很满意啦!
kitalphaj
2016-11-15 13:27:20 +08:00
Dash for iOS 的代码质量明显不高,毕竟当初写的时候肯定没打算开源,这种地方能水就水了。。。
andyL
2016-11-22 16:53:30 +08:00
if([self.platform isEqualToString:@"python"] || [self.platform isEqualToString:@"zepto"] || [self.platform isEqualToString:@"cvp"] || [self.platform isEqualToString:@"cvc"] || [self.platform isEqualToString:@"mongodb"] || [self.platform isEqualToString:@"cvcpp"] || [self.platform isEqualToString:@"vagrant"] || [self.platform isEqualToString:@"cf"] || [self.platform isEqualToString:@"ansible"] || [self.platform isEqualToString:@"ocaml"] || [self.platform isEqualToString:@"twig"] || [self.platform isEqualToString:@"smarty"] || [self.platform isEqualToString:@"chef"] || [self.platform isEqualToString:@"php"] || [self.platform isEqualToString:@"express"] || [self.platform isEqualToString:@"bash"] || [self.platform isEqualToString:@"swift"] || [self.platform isEqualToString:@"extjs"] || [self.platform isEqualToString:@"titanium"] || [self.platform isEqualToString:@"sencha"] || [self.platform isEqualToString:@"markdown"] || [self.platform isEqualToString:@"latex"] || [self.platform isEqualToString:@"bourbon"] || [self.platform isEqualToString:@"cmake"] || [self.platform isEqualToString:@"awesome"] || [self.platform isEqualToString:@"jade"] || [self.platform isEqualToString:@"SproutCore"] || [self.platform isEqualToString:@"neat"] || [self.platform isEqualToString:@"moment"] || [self.platform isEqualToString:@"elasticsearch"] || [self.platform isEqualToString:@"xojo"] || [self.platform isEqualToString:@"lodash"] || [self.platform isEqualToString:@"statamic"] || [self.platform isEqualToString:@"drupal"] || [self.platform isEqualToString:@"phonegap"] || [self.platform isEqualToString:@"cordova"] || [self.platform isEqualToString:@"laravel"] || [self.platform isEqualToString:@"compass"] || [self.platform isEqualToString:@"haml"] || [self.platform isEqualToString:@"sass"] || [self.platform isEqualToString:@"bootstrap"] || [self.platform isEqualToString:@"ember"] || [self.platform isEqualToString:@"jasmine"] || [self.platform isEqualToString:@"perl"] || [self.platform isEqualToString:@"jquerym"] || [self.platform isEqualToString:@"jQuery"] || [self.platform isEqualToString:@"css"] || [self.platform isEqualToString:@"dartlang"] || [self.platform isEqualToString:@"phpunit"] || [self.platform isEqualToString:@"polymerdart"] || [self.platform isEqualToString:@"angulardart"] || [self.platform isEqualToString:@"xul"] || [self.platform isEqualToString:@"xslt"] || [self.platform isEqualToString:@"javascript"] || [self.platform isEqualToString:@"arduino"] || ([self.platform isEqualToString:@"matlab"] && [self.type isEqualToString:@"Class"]) || [self.platform isEqualToString:@"angularjs"] || [self.platform isEqualToString:@"emmet"] || [self.platform isEqualToString:@"chai"] || [self.platform isEqualToString:@"mongoose"] || [self.platform isEqualToString:@"react"] || [self.platform isEqualToString:@"grunt"] || [self.platform isEqualToString:@"sooffline"] || [self.platform isEqualToString:@"soonline"] || [self.platform isEqualToString:@"rust"] || [self.platform isEqualToString:@"flask"] || [self.platform isEqualToString:@"numpy"] || [self.platform isEqualToString:@"pandas"] || ([self.platform isEqualToString:@"wordpress"] && [self.originalName contains:@"::"] && [self.type isEqualToString:@"Method"]) || [self.platform isCaseInsensitiveEqual:@"apache"] || [self.platform isEqualToString:@"sqlalchemy"] || [self.platform isEqualToString:@"tornado"] || [self.platform isEqualToString:@"matplotlib"] || [self.platform isEqualToString:@"salt"] || [self.platform isEqualToString:@"jinja"] || [self.platform isEqualToString:@"require"] || [self.platform isEqualToString:@"scipy"] || [self.platform isEqualToString:@"go"] || [self.platform isEqualToString:@"godoc"] || [self.platform isEqualToString:@"prototype"] || [self.platform isEqualToString:@"puppet"] || [self.platform isEqualToString:@"stylus"] || [self.platform isEqualToString:@"sinon"] || [self.platform isEqualToString:@"gl2"] || [self.platform isEqualToString:@"gl3"] || [self.platform isEqualToString:@"gl4"] || [self.platform isEqualToString:@"jqueryui"] || [self.platform isEqualToString:@"underscore"] || [self.platform isEqualToString:@"backbone"] || [self.platform isEqualToString:@"marionette"] || [self.platform isEqualToString:@"coffee"] || [self.platform isEqualToString:@"yii"] || [self.platform isEqualToString:@"mono"] || [self.platform isEqualToString:@"xamarin"] || [self.platform isEqualToString:@"yui"] || [self.platform isEqualToString:@"tcl"] || [self.platform isEqualToString:@"erlang"] || [self.platform isEqualToString:@"vsphere"] || [self.platform isEqualToString:@"twisted"] || [self.platform isEqualToString:@"phpp"] || [self.platform isEqualToString:@"joomla"] || [self.platform isEqualToString:@"symfony"]|| [self.platform isEqualToString:@"cakephp"] || [self.platform isEqualToString:@"scala"] || [self.platform isEqualToString:@"scaladoc"] || [self.platform isEqualToString:@"playscala"] || [self.platform isEqualToString:@"akka"] || [self.platform isEqualToString:@"sqlite"] || [self.platform isEqualToString:@"boost"] || [self.platform isEqualToString:@"unity3d"] || [self.platform isEqualToString:@"django"] || [self.platform isEqualToString:@"cpp"] || [self.platform isEqualToString:@"c"] || [self.platform isEqualToString:@"qt"] || [self.platform isEqualToString:@"rails"] || [self.platform isEqualToString:@"codeigniter"] || [self.platform isEqualToString:@"yard"] || [self.platform isEqualToString:@"ruby"] || [self.platform isEqualToString:@"awsjs"] || [self.platform isEqualToString:@"rubyGems"] || [parseFamily isEqualToString:@"cheatsheet"] || [parseFamily isEqualToString:@"originalName"] || [self.platform isEqualToString:@"foundation"] || [self.platform isEqualToString:@"lua"] || [self.platform isEqualToString:@"dojo"] || [self.platform isEqualToString:@"elixir"] || [self.platform isEqualToString:@"knockout"] || [self.platform isEqualToString:@"meteor"] || ([self.platform isEqualToString:@"actionscript"] && ![self.type isEqualToString:@"Class"]) || ([self.platform isEqualToString:@"grails"] && [self.type isEqualToString:@"Guide"])){

}
coldmn3
2016-11-24 09:32:14 +08:00
已经有人 pr 了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/320610

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX