miércoles, 29 de octubre de 2014

Web Development with MongoDB and Node.js

Writing RESTful services in Nodejs can be as simple as glueing modules. Internet is plenty of Node.js middleware. To achieve so, you first need to learn the basics.

It's better to have some previous knowledge of Javascript before reading this book as Web Development with MongoDB and Node.js has a tiny introduction to Javascript and Node.js.

The book explains how to scaffold web applications through full coded examples. Middleware is the key of being highly productive and the book uses and explains the most well-known modules. You'll find out a big example split into several chapters that is a clone of a popular social image-sharing site that will show you things such as:

Express: handle routing, middleware injection, ...
Connect: a suite of middleware for multiple things. In the book Connect is used to deal with json, cookies, logging, parsing, encoding, HTTP method support, handling errors ...
Handlebars: apart from explaining the basics of this template engine, it also shows how to build html layouts, partial views which prevent code duplication and helpers used for injecting functions at the time of rendering.

And all this is wired up with MongoDB which is a NoSQL database. You'll learn the really basics of CRUD operations over Mongo (Create, Retrieve, Update and Delete). But Mongo is such simple that it really doesn't need further explanation other than seeing the API definition. This makes the book swift and faster to read. As it's already a tradition with Mongo and Javascript, it also involves Mongoose. Mongoose introduces schemas and models, that is to say built-in types, field restrictions and validation.

The book culminates with four miscellaneous chapters. A chapter dedicated to testing using Behavior Driven Development (Mocha, Chai.js, Sinon.js, Proxyquire). Another chapter that gathers some web services (like Heroku, Amazon, Digital Ocean, Nodejitsu and Microsoft Azure) and tells how to deploy your nodejs web-apps. And finally, the last two chapters reviews front-end frameworks like: Backbone.js, Ember.js, Angular.js; and Node.js frameworks like Meteor, Sails, hapi, Koa or Flatiron.

At the end of the book you will be more likely to start developing your own RESTful services as Node.js makes things simple and this book covers really common problems.

You can get your copy of Web Development with MongoDB and Node.js right here!

miércoles, 8 de octubre de 2014

Learning Xamarin Studio book review

Cross platform development is probably a win for mobile developers. A great technology that lets programmers do native apps without loosing performance is Xamarin. 

Packt Publishing has released a really interesting and complete set of books covering Xamarin technology. You can find books focused on programming like "Xamarin Cross-platform Application Development", "Xamarin Essentials", "Learning Xamarin Studio" and some more.

A good starting point to this literature is Learning Xamarin Studio. Even if you are an experienced native developer or simply if you want to start from scratch to mobile development you should get it. The book covers interesting stuff like:

  • Setting up Android ARM and Intel emulators.
  • Integration of XCode with Xamarin IDE.
  • Management of Apple certificates to distribute your apps to the App Store.
  • Publishing to the Google Play Store.

You will learn all the functionality the IDE has as it explains the meaning of every single button, pane or menu. Although this reading is about learning the environment in which you will design and develop apps you will also learn things like how to build forms using XAML design or unit testing integration with Touch.Unit and Andr.Unit.

Go and get Learning Xamarin Studio book.