Re:Java Was Strongly Influenced by Objective-C
by krisgenre on Thursday June 25, 2015 @02:50AM
(#9776342)
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.
[ Parent
| on HN ]
Re:Java Was Strongly Influenced by Objective-C
by Reason077 on Thursday June 25, 2015 @03:15AM
(#9776404)
The 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!
Re:Java Was Strongly Influenced by Objective-C
by dilap on Thursday June 25, 2015 @08:50AM
(#9777471)
One 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.
Re:Java Was Strongly Influenced by Objective-C
by ttflee on Thursday June 25, 2015 @07:15AM
(#9777073)
I 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.