25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introducing <strong>Vue</strong>.<strong>js</strong><br />

At the time of writing in late 2017, <strong>Vue</strong>.<strong>js</strong> is at version 2.5. In less than four<br />

years from its first release, <strong>Vue</strong> has become one of the most popular open source<br />

projects on GitHub. This popularity is partly due to its powerful features, but<br />

also to its emphasis on developer experience <strong>and</strong> ease of adoption.<br />

The core library of <strong>Vue</strong>.<strong>js</strong>, like React, is only for manipulating the view layer<br />

from the MVC architectural pattern. However, <strong>Vue</strong> has two official supporting<br />

libraries, <strong>Vue</strong> Router <strong>and</strong> <strong>Vue</strong>x, responsible for routing <strong>and</strong> data management<br />

respectively.<br />

<strong>Vue</strong> is not supported by a tech giant in the way that React <strong>and</strong> Angular are <strong>and</strong><br />

relies on donations from a small number of corporate patrons <strong>and</strong> dedicated <strong>Vue</strong><br />

users. Even more impressively, Evan You is currently the only full-time <strong>Vue</strong><br />

developer, though a core team of 20 more developers from around the world<br />

assist with development, maintenance, <strong>and</strong> documentation.<br />

The key design principles of <strong>Vue</strong> are as follows:<br />

Focus: <strong>Vue</strong> has opted for a small, focused API, <strong>and</strong> its sole purpose is the<br />

creation of UIs<br />

Simplicity: <strong>Vue</strong>'s syntax is terse <strong>and</strong> easy to follow<br />

Compactness: The core library script is ~25 KB minified, making it<br />

smaller than React <strong>and</strong> even jQuery<br />

Speed: Rendering benchmarks beat many of the main frameworks,<br />

including React<br />

Versatility: <strong>Vue</strong> works well for small jobs where you might normally use<br />

jQuery, but can scale up as a legitimate SPA solution

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

Saved successfully!

Ooh no, something went wrong!