Monday, July 10, 2017

KeystoneJS: The Best Node.js Alternative to WordPress

 
View online
sitepoint
 
SitePoint JavaScript

One common criticism of modern front-end frameworks, such as React and Angular, is the overhead they contribute to the file size of the application itself. For large, complex apps this isn't always a problem, but you might be building a mobile app where every byte counts, or perhaps putting together a small app where including one of the aforementioned libraries seems like overkill.

Although there are various options for optimizing code for production, and techniques such as Angular's Ahead-of-Time compilation, using a complex framework can also add cognitive overhead and a certain amount of boilerplate code to small projects.

It's easy to see why some developers still opt for jQuery when building simpler apps (although it's not exactly 'lightweight' itself) or just vanilla JavaScript. This approach does require discipline, though; If you don't decide on (and stick to) a suitable architecture it's easy to end up with spaghetti code that is difficult to test and maintain.

Today, we have an article by Jorge Bucaran, creator of HyperApp. It's a minimal library for creating front-end apps that manages to incorporate a nice method for creating stateless, functional components, and built-in Redux-like state management in just 1KB! Take a look, and let us know if this is something you could see yourself using for future projects.

HyperApp: The 1 KB JavaScript Library for Building Front-End Apps

Nilson Jacques
JavaScript Editor
@SitePointJS

 
 
 
 
 

No comments:

Post a Comment