22.12.2016 Views

CODING

MagPi53

MagPi53

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Review<br />

BOOKS<br />

RASPBERRY PI<br />

BESTSELLERS<br />

RAILS 5<br />

The latest Rails can do anything;<br />

probably even make your coffee!<br />

LEARNING RAILS 5:<br />

RAILS FROM<br />

THE OUTSIDE IN<br />

Author: J Mark Locklear<br />

Publisher: O’Reilly<br />

Price: £31.99<br />

ISBN: 978-1491926192<br />

magpi.cc/2gFZC78<br />

A very good intro book, but<br />

errors in code mean you’ll also<br />

learn from debugging as you<br />

go along. Sample projects build<br />

very logically through learning<br />

how to ‘do’ Rails.<br />

RUBY ON RAILS<br />

TUTORIAL<br />

Author: Michael Hartl<br />

Publisher: Addison Wesley<br />

Price: £40.69<br />

ISBN: 978-0134598628<br />

railstutorial.org<br />

Hartl’s comprehensive<br />

boot camp of a book (and<br />

online read) is highly praised<br />

by those who suit his immersive<br />

teaching methods. An excellent<br />

grounding, well updated for<br />

Rails 5 features.<br />

AGILE WEB<br />

DEVELOPMENT<br />

WITH RAILS 5<br />

Author: Sam Ruby<br />

Publisher: Pragmatic<br />

Bookshelf<br />

Price: £32.99<br />

ISBN: 978-1680501711<br />

magpi.cc/2gG1mNr<br />

A beginner’s guide into which<br />

agile, Ajax, REST, testing,<br />

and many best practices are<br />

closely woven into both its<br />

warp and its weft. Clear and<br />

thoughtful updates for Rails 5.<br />

FREE TO MAKE<br />

Authors: Dale Dougherty<br />

& Ariane Conrad<br />

Publisher: North Atlantic Books<br />

Price: £17.50<br />

ISBN: 978-1623170745<br />

magpi.cc/2gFUrnw<br />

Few revolutionary<br />

changes in the past<br />

have been as well<br />

chronicled as the still<br />

nascent maker movement, but if<br />

anyone is well-placed to give that<br />

commentary, it’s Make: magazine<br />

and Maker Faire founder Dale<br />

Dougherty. As well as the who,<br />

what, and where of the movement,<br />

Dougherty gives us a philosophical<br />

background to this “global<br />

countercultural phenomenon”,<br />

which empowers people to move<br />

away from passive consumerism.<br />

This exploration starts off<br />

with a look at the diverse range<br />

of makers – and their projects<br />

– spurred on by a love of what<br />

UNDERSTANDING<br />

ECMASCRIPT 6<br />

Author: Nicholas C Zakus<br />

Publisher: No Starch<br />

Price: £24.99<br />

ISBN: 978-1593277574<br />

magpi.cc/2gFYgsZ<br />

ECMAScript 6 is a<br />

huge set of changes to<br />

JavaScript – everything from<br />

Promises, to improve asynchronous<br />

programming, to several<br />

improvements to the good old array.<br />

What’s needed to get the average –<br />

or even occasional – JS coder up to<br />

speed is a guide to put these changes<br />

in context, and to show what they can<br />

do. Enter Zakas, creator of ESLint,<br />

and a very experienced JS developer.<br />

Starting with Block Bindings,<br />

one of ECMAScript 6’s solutions<br />

to previous versions’ problematic<br />

variable declarations, the author<br />

demonstrates admirable clarity<br />

in his explanations of how and<br />

why things work, followed by best<br />

they are doing. The ‘where’ takes<br />

us on a tour of makerspaces,<br />

fab labs, and less formal<br />

workshops. The ‘how’<br />

explains the boards, tools,<br />

technologies, and whole<br />

maker ecosystem. The<br />

chapter on ‘The Maker<br />

Mindset’ is an essential<br />

examination of what<br />

drives us to create – from<br />

playfulness, to a need to<br />

understand more fully.<br />

The closing chapters on makers’<br />

impact on the world, and a look at<br />

future development, provide food<br />

for thought. The notes, chronology,<br />

and bibliography are also of benefit.<br />

This fascinating book should, as<br />

Tim O’Reilly puts it in the foreword,<br />

help you to “find your own inner<br />

maker. And start to measure<br />

yourself by what you make,<br />

not what you own or buy.”<br />

Score<br />

practice examples. So in the chapter<br />

on Iterators and Generators, Zakas<br />

gives you the historic background,<br />

then changes from 5 to<br />

6, how to implement,<br />

and only then –<br />

understanding accomplished<br />

– 6’s built-in Iterators.<br />

Classes are a big feature<br />

in 6, and get appropriate<br />

treatment – including their<br />

first class citizenship (you<br />

can pass them into functions<br />

as arguments). ECMAScript 6’s<br />

tail call optimisation, changes to<br />

defining Object String Tags, userdefinable<br />

non-enumerable and<br />

non-writable object properties: it’s<br />

all here. Rounds off with a guide<br />

to ECMAScript 7 – or ECMAScript<br />

2016 – first of the new, yearly<br />

release cycle, containing only<br />

minor changes. Very readable.<br />

Recommended to any JavaScript<br />

user looking to grok ES6.<br />

Score<br />

84 January 2017<br />

raspberrypi.org/magpi

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!