Archive for the ‘JavaScript’ Category

Managing State in CSS with Reusable JavaScript Functions

Posted on: No Comments
Determining the most efficient way of managing state can be a challenging issue in CSS, but thankfully there are many OOCSS-based methodologies out there which provide some good solutions. My preferred comes from SMACSS (Scalable and modular architectu...

How to Organize a Large React Application and Make It Scale

Posted on: No Comments
This article is by guest author Jack Franklin. SitePoint guest posts aim to bring you engaging content from prominent writers and speakers of the Web community In this article, I'll discuss the approach I take when building and structuring large React ...

10 Machine Learning Examples in JavaScript

Posted on: No Comments
When we think of tools for developing Machine Learning software, languages like Python, C++, and MATLAB come to mind. Although it is the most popular programming language in the world, JavaScript is usually not on that list. This is mainly due to the ...

10 Machine Learning Examples in JavaScript

Posted on: No Comments
When we think of tools for developing Machine Learning software, languages like Python, C++, and MATLAB come to mind. Although it is the most popular programming language in the world, JavaScript is usually not on that list. This is mainly due to the ...

Patterns for Object Inheritance in JavaScript ES2015

Posted on: No Comments
With the long-awaited arrival of ES2015 (formerly known as ES6), JavaScript is equipped with syntax specifically to define classes. In this article, I’m going to explore if we can leverage the class syntax to compose classes out of smaller parts. Kee...

Quick Tip: How to Style React Components with styled-components

Posted on: No Comments
[special]While many aspects of building applications with React have been standardized to some degree, styling is one area where there are still a lot of competing options. Each has its pros can cons, and there is no clear best choice.[/special] In thi...

Five Techniques to Lazy Load Images for Website Performance

Posted on: No Comments
This article is part of a series created in partnership with SiteGround. Thank you for supporting the partners who make SitePoint possible. With images making up a whopping 65% of all web content, page load time on websites can easily become an issue....

When Does a Project Need React?

Posted on: No Comments
You know when a project needs HTML and CSS, because it's all of them. When you reach for JavaScript is fairly clear: when you need interactivity or some functionality that only JavaScript can provide. It used to be fairly clear when we reached for libr...

Choosing between React and Angular: An in-Depth Comparison

Posted on: No Comments
Should I choose Angular, or React? Today's bipolar landscape of JavaScript frameworks has left many of developers struggling to pick a side in this debate. Whether you're a newcomer trying to figure out where to start, a freelancer picking a framework ...

Quick Tip: How to Build Your Custom Theme for Telescope Nova

Posted on: No Comments
Telescope Nova is the perfect platform to use if you want to build your own social web app fast and easy. This is a free and open-source project created by Sacha Greif. The front-end development part of the app is built with the React library , while ...