Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love Swift. Especially the newer versions (swift 1 and 2 were so awful I gave up on it completely but 3+ are great).

But... I wouldn’t personally use it for anything other than iOS/Mac development because it’s always so hard to find examples / tutorials / help on stackoverflow for less-used languages and I imagine that’s what will be in store for me if I go this way.



This is unfortunately true. I just wrote a very simple little web service in Vapor.

Vapor itself is fantastic, but for documentation and examples, you’re pretty much limited to (1) the Vapor docs (2) the Vapor API docs buried on GitHub and (3) the source code. Fortunately the source itself is pretty well organized and easy to follow.


How did you find it? Was it worth the extra effort VS using some other language?


Overall I found it pretty nice.

It’s hard for me to compare to other languages in this space, like Go or Rust, because I have basically no experience with them beyond the very most basic introductory toy projects. My choices came down to Python (with Flask or aiohttp) or Swift with Vapor.

There were a couple of weeks where I wished I had just gone with Flask and been done with it.

But beyond the short term, now that I have it working, I’m glad I went with Swift. One big plus is that I can reuse a bunch of Swift Codable types between my iOS app and the web app. Another is that I feel like I have a better performance/concurrency story than I’d get with Flask.

Edit to add: I don’t think getting started with Vapor was any harder than with aiohttp. And for me, it was a lot easier than learning a whole new language like Rust.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: