4 ms·
Maybe true. I recently ported an Obj-C project containing 9000+ lines of code ( no GUI ) to Java and was quite surprised about how easy the Obj-C code was to re
by krisgenre 11y ago
Maybe true. I recently ported an Obj-C project containing 9000+ lines of code ( no GUI ) to Java and was quite surprised about how easy the Obj-C code was to read even though I knew nothing about it.
- Reason077 11y agoThe naming of parameters in method calls was something I found a bit weird and overly verbose when I first used ObjC. But I've come to appreciate that it can greatly improve readability when trawling through unfamiliar code bases, and thankfully it's a feature Apple have carried across to Swift. Now days I often wish Java had external parameter names, too!
- dilap 11y agoOne of my fave obj-c features (which comes from smalltalk, I am told), and I'm surprised more languages don't do it. Aids code readability immensely, and basically eliminates an entire class of bug (of accidentally transposing two params of the same type). Most people tend to react to it really negatively at first encounter though.
- ttflee 11y agoI had done the opposite for a hobby scheme-like interpreter found in github from Java into ObjC, but finding various difficulties doing the same into Swift at the early days of it. Converting that piece of Java codes into ObjC was easy and straightforward because it was basically just some Foundation classes, e.g. NSString, NSArray, NSDictionary and NSNumber.