NSString Ruby
Languages and libraries
objective-c library
SHOW HN2013
87points
52comments
#275of 1,739 in 2013
Top 16%of 2013 by points
How HN took it
CuriousMostly questions and neutral comments
10 positive, 14 neutral or asking, 0 mixed, 3 critical, out of 27 comments about the project. Thread score +0.33.
Idea: 6 for, 0 againstExecution: 0 for, 2 againstDesign: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful and makes Objective-C more readable
From 3 comments
Wow, this looks really useful. Thanks for building this!
YoyosForUs on HNVery impressive. I didn't know about objectAtIndexedSubscript and objectForKeyedSubscript so I wouldn't have thought this was possible as a category.
pdenya on HNThis is awesome and, as an Obj-C dev, is yet another thing that makes me want to learn Ruby.
sarreph on HN
Objections
Adding methods to core Foundation classes risks future conflicts with system methods
From 2 comments
They look like convenient additions... but I'd be reluctant to add so many category methods onto a Foundation class. Especially for un-prefixed methods. If a future version of…
chrisdevereux on HNMethods are often added to core classes like NSString. For example, in iOS 6: https://developer.apple.com/library/ios/releasenotes/General/iOS60APIDiffs/index.html And you…
chrisdevereux on HN
Naming does not follow Objective-C conventions for mutating methods
From 2 comments
One thing that irks me is that the author doesn't stick to ObjC naming conventions. Take for example the capitalize methods. In ruby, you have "capitalize" and "capitalize!" to…
jakobe on HNI'm not really sure I understand; why would calling the method "capitalize" instead of "capitalizeInPlace" be inconsistent? (Also, the comments in the header file and the README…
jakobe on HN
Requests
Add a string format method
From 2 comments
Add a String format one, then is set!
mamcx on HNUnfortunately, although there's no particular reason for it, you're not allowed to write a method that takes only variadic arguments. This doesn't work: ``` - (NSString *)format:…
mikeash on HN
Questions
Is a category like a C# extension method?
From 1 comment
Is 'category' like a extension method in c#?
hamxiaoz on HN
Alternatives named
ObjectiveSugar
From 1 comment
ObjectiveSugar: https://github.com/mneorr/ObjectiveSugar
sjm on HN
RubyMotion
From 1 comment
I have to add the obligatory pitch for just using RubyMotion. I use it/love it, and def recommend it for those that have become a bit annoyed with the verbose-ness of obj-c.
w0rdson on HN