Today, implementing sounds and audio in webpages has become much easier with the HTML5
<audio> tag and the Web Audio API. The
<audio> tag is simple and easy to use. And unlike Flash, it doesn’t require a plug-in to be installed in the user’s browser or computer. Meanwhile, Web Audio API is the latest and modern way of including audio into the webpage.
Starting with the most popular and wide-spread library, here comes Howler.js! This library is most likely the go-to tool when it comes to JS audio. Besides super-simple API, this lightweight tool (7KB) gives you full control over your audio with features like sprites (for segmenting your audio data) or auto-caching being built-in. It also has an HTML5 Audio fallback (for older browsers) and support for a number of audio encodings. And with its modular, pluggable architecture it comes with an optional spatial effects plugin 🤯 (for 3D audio effects). What more would you want? 👍
Who else loves to write side-effects-free functions? I think we, as programmers, all do. Today, in this story, I will walk you through the basic principles of functional programming that will make your coding life easier.
Formatting code consistently is a pain, especially when working on a team. The beauty of modern-day web development is that the tooling has gotten so much better! In this article, we will look at setting up Prettier to automatically format your code in Visual Studio Code.