-
Notifications
You must be signed in to change notification settings - Fork 3
Home
saveUserProfile(user) {
HttpRequest.request(saveUserUrl, method: "POST", sendData: JSON.encode(user));
}
Future<User> loadUserProfile() {
return HttpRequest.request(loadUserUrl, method: "GET")
.then((data) => new User(JSON.decode(data)));
}
And now do not forget to call saveUserProfile
whenever the profile changes on the client, to call periodically loadUserProfile
to handle the profile changes on the server, to handle lost connection, and many others.
Programming is about art, not about writing boilerplate code!
Wouldn't this be much simpler?
var userSubscription = subscriber.subscribe("users");
var users = userSubscription.collection;
displayUsers(users);
users.onChange((changeSet) => displayUsers(users));
Now, whenever the users change on the server, we redraw the screen. Writing works similarly easy!
var user = users.findBy("_id", 3);
user["email"] = "[email protected]";
That's it!
The project is in its early stage, neither feature complete nor bug free. It will take us few months to deliver first stable version. But stay in touch and we will notify you when the preview comes out. Just send us an email to [email protected].
Definitely. We are looking for bright people that like the idea and can help to polish it, improve it and work with us on it. We are definitely looking for new members of clean team! Just send us an email to [email protected].
Short version: MongoDB and Dart.
Long version: Check the technological background.