57 karma · joined July 31, 2012
Distributed transactions in an RDBMS requires trusting all the hosts it runs on.
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: alex@panaxiom.co.uk
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.
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: alex@panaxiom.co.uk
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).
Full-stack engineer with iOS and Scala/Java experience.
Also a 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 portable C library to process accelerometer + gyroscope data using machine learning algorithms for a Travel startup (amongst other things).
Also available to consult with funded startups on growth and product.
Open source contributor: http://github.com/alexanderjarvis
Get in touch!
Email me: alex@panaxiom.co.uk Phone: +44 (0) 7545 378874
keywords: Scala, Akka, Play, Functional, Distributed, Swift, ObjC, AWS
Nevertheless I would be interested in creating a framework to tackle the model/persistence/networking/reactive boilerplate issue. I imagine it would be very popular.
Also is there a Swift version of ReactiveCocoa?
So in summary, continue business as usual while you negotiate and be skeptical of their motivations.
Rewind to just over a year ago and I place a (pre)order for 5 ASIC miners (from Butterfly labs) for a total of $3250. When the things arrived, a year later, I was lucky that they were still profitable at the time (mid August) as the price of BTC had risen but decided to sell them on eBay for ~$3000 each because not only were they ridiculously loud and I had no where to put them but the difficulty was ~60 million and increasing (and it's now 148).
I was lucky enough to pay off my credit card and still have some left over with the money I made from selling the miners. Although I made a decent profit, I would have made a lot more if I'd of just bought the coins for the same value (as they've increased ten fold in the same period).
Now I've invested around half of my profits back into buying coins and so have finally taken the original advice onboard. This and the current market conditions make even the best mining options from Cointerra seem like a risky investment at this stage.
If you really do need to just get something out the door that quick, then you should just be prepared to accept the consequences of no tests, or put some in later for maintenance sake.