SlideShare a Scribd company logo
Swift for Back-End: A new
generation of full stack
languages?
Swift for back end: A new generation of full stack languages?
Full-stack
“Developers who are comfortable
working with both back-end and front-end
technologies”
Full-stack Examples
Full-stack Developer Examples
Swift
● Modern
● Fast
● Safe
● OpenSource
●
Swift vs Objective-C
● Swift is easier to read
● Swift is easier to maintain
● Swift is safer
● Swift is unified with memory management
● Swift requires less code
Swift vs Objective-C
Swift is easier to read
Objective C
Swift
Swift is easier to read
Swift Full-stack
Swift Mobile
Swift Desktop
Swift Server
● Web swift framework
● Pure swift
● MVC
● Middlewares
● API
Installation
● Install swift
● Install vapor toolbox (curl -sL toolbox.vapor.sh |
bash)
● Install swiftenv(optional)
● Have fun ;)
Databases
Fluent is the first Swift ORM and it works great with a wide range
of databases. It provides a beautifully expressive and easy to use
syntax for interacting with your database.
Swift for back end: A new generation of full stack languages?
DEMO
Pros and Cons
Pros
● Performance
● Swift
● Debug
● Apple
Cons
● Early phase**
Vapor vs other guys
● Vapor (Swift)
● Ruby on Rails (Ruby)
● Laravel (PHP)
● Lumen (PHP)
● Express (JavaScript)
● Django (Python)
● Flask (Python)
● Spring (Java)
● Nancy (C#)
● Go (Pure Go, no
framework)
PlainText
SQLite Fetch
JSON
Deploy
Things to do?
Things to do?
● Authentication
● API
● Errors Handling
● Bug Fixes
● https://github.com/OpenKitten/MongoKitten/pull/41
Documentation
● https://vapor.github.io/documentation/
● https://github.com/vapor/vapor
● http://stackoverflow.com/
Results
Vapor’s speed comes from the fact that it is both compiled and has
modern syntax and language features. Even though it is a new
framework, it is giving people plenty to talk about.
Got questions?
Twitter.com/callo90
carlos.lopez@koombea.com

More Related Content

Swift for back end: A new generation of full stack languages?