Re:Show HN: SwiftHN, a Hacker News reader in Swift
by oidar on Friday July 18, 2014 @02:29PM
(#8054753)
Looks nice. What is your opinion on Swift now that you've used it for a project?
[ Parent
| on HN ]
Re:Show HN: SwiftHN, a Hacker News reader in Swift
by dimillian on Friday July 18, 2014 @02:40PM
(#8054813)
It's rough, not because of Swift, but because of Xcode. I really love Swift, but it take some time to get up to the speed you are used with Objective-c. Mostly because of the new syntax, but also because Xcode is very buggy around code completion, linking and syntax highlighting.
But for a new app, I would recommend Swift to anyone, it's light, and readable, I really like it.
Re:Show HN: SwiftHN, a Hacker News reader in Swift
by eludwig on Friday July 18, 2014 @08:49PM
(#8056292)
Debugging Swift is terrible right now in Xcode, unless I am not doing it right. Some values can be seen, others are inexplicably missing. Coming from Java/IntelliJ, it's a hopeless mess.
I hope that Xcode/Swift gets better in the debugging department soon. NSLog() is a rough way to see values. It's just so 1996.
Re:Show HN: SwiftHN, a Hacker News reader in Swift
by coldtea on Saturday July 19, 2014 @06:44AM
(#8057156)
>I hope that Xcode/Swift gets better in the debugging department soon. NSLog() is a rough way to see values. It's just so 1996.
Well, XCode also has the Swift Playground, with live values updating next to your code etc. Java/IntelliJ don't have that (of course XCode's implementation is beta too, and might not work on some cases).
Re:Show HN: SwiftHN, a Hacker News reader in Swift
by emp on Saturday July 19, 2014 @02:15PM
(#8058237)
Playground however is just a place for playing with snippets of code. And experiment and learn environment. If you have a bug in a running app, it's just not possible to recreate the problem except for the simplest of apps.
Re:Show HN: SwiftHN, a Hacker News reader in Swift
by dimillian on Saturday July 19, 2014 @02:52AM
(#8056890)
print and println just works for any value. But yeah, breakpoint and PO at doesn't work for debugging at the moment.
Re:Show HN: SwiftHN, a Hacker News reader in Swift
by k-mcgrady on Friday July 18, 2014 @04:48PM
(#8055549)
I had some big issues with code completion in Swift in Xcode. The completion engine regularly crashed and all syntax highlighting and warnings/errors disappeared. A total nightmare when you're trying to learn a new language.
Re:Show HN: SwiftHN, a Hacker News reader in Swift
by coldtea on Saturday July 19, 2014 @07:09AM
(#8057188)
>The completion engine regularly crashed and all syntax highlighting and warnings/errors disappeared. A total nightmare when you're trying to learn a new language.
Kids these days... We had to learn new languages with no "syntax highlighting", no "completion engine", no tutorials, no reference sites and no internet in general. If we were lucky we had some kind of printed manual -- not always.
Re:Show HN: SwiftHN, a Hacker News reader in Swift
by k-mcgrady on Saturday July 19, 2014 @10:47AM
(#8057592)
I may be a kid (24) but I also remember those days from learning Pascal :)