alexjarvis
Distributed transactions in an RDBMS requires trusting all the hosts it runs on.
Former Top Gear trio hope to create an online universe for car fans
guard item.count > 0 else {
throw VendingMachineError.OutOfStock
}
to if count == 0 {
throw VendingMachineError.OutOfStock
}
only proves that you can refactor the code to not use guard whereas the article starts by talking about small functions, where you could in fact still use guard in this case.Lead iOS Engineer (Swift, Objective-C).
Six years experience creating and publishing apps to Apple and iOS since it was called iPhone OS 3 (2009).
Experience working remote.
Some of my work:
• 6Tribes http://6tribes.com
• WeCycle http://www.travelai.info
Apps that I built for myself:
• ZombieChat http://getzombiechat.com
• Meep http://meep.io
Get in touch!
Email: [email protected]
enum Car {
case Red
case Blue
}
extension Car {
func hello() {
print("hello")
}
}
let x = Car.Blue
x.hello()
https://developer.apple.com/library/ios/documentation/Swift/...edit: although you can't add a new case to the enum.
For example I've been working on a Json library that stores everything in an enum (ADT):
public enum JsValue {
case JsString(String)
case JsNumber(Double)
case JsObject([String: JsValue])
case JsArray([JsValue])
case JsBoolean(Bool)
case JsNull
}It's not the only issue. I put it down to how new the language is and how many non-critical issues they can fix.
Swift 1.2 has been a massive improvement with incremental compiling and the SourceKit HUD not flickering in my face every few minutes. But still Xcode crashes frequently.
With all the known problems considered, I still find that the advantage of using Swift far outweighs the small number of issues with it in its current version.
https://www.siliconmilkroundabout.com
In the meantime work on something you enjoy and can point to as a portfolio piece. Go to meetups and try and give a talk about something you care about.
ZombieChat Is Here to Save the World During Catastrophe
Show HN: ZombieChat is free for the weekend
Show HN: ZombieChat – A post-apocalyptic communication tool (Beta)
Full-stack software engineer (iOS / Scala). Loves building creative products, apps especially.
Startup founder with creative design skills and product experience: http://meep.io/download
Seeking part-time or fixed cost contracts for front-end, back-end or both.
Recently delivered a cross-platform activity recognition library in portable C to process inertial data using machine learning algorithms for a Travel startup (amongst other things).
Get in touch!
Email: [email protected]
Phone: +44 (0) 7545 378874
GitHub: http://github.com/alexanderjarvis
LinkedIn: http://uk.linkedin.com/in/alexanderjarvis/
keywords: iOS, Scala, Akka, Play, Functional, Distributed, Swift, Objective-C, ObjC, AWS
I created a distributed PubSub for the Scala/Akka/Play toolchain a while ago so just wondering how it compares: https://github.com/alexanderjarvis/dubsub
It's also public knowledge that they've been parsing messages for links to then 'like' the appropriate pages inside Facebook.
Rather than debate about how much profit there could be in it, which is entirely down to what the user talks about, I think it is important to realise the potential here even if it not fully realised at this point it time.
Also remember that they are keeping chat history indefinitely in HBase clusters (because they are 'sentimental') so as your habits and interests change over time this will become invaluable data to marketers who want to understand consumer behaviour.
I think it's great that WhatsApp are implementing end-to-end encryption but their now immediate connection with Facebook doesn't sit well with me. Perhaps I'm an idiot, but it doesn't take long to realise that there are perhaps competing interests at play here.
The fact that Facebook owns WhatsApp makes this announcement a big surprise as I think they profit far more with unencrypted messages (although WhatsApp was just delivering, not storing them supposedly).