scf4 / callbaxx

[Satire]🔥 JS utility library to bring classic callback style programming to synchronous code — ES6? More like ES Sucks.
MIT License
9 stars 1 forks source link

Bruh #1

Open TimboKZ opened 6 years ago

scf4 commented 6 years ago

Hi @TimboKZ, thanks for the question!

One of the biggest problems with JavaScript is that we must mix synchronous and asynchronous code, resulting in an inconsistent coding style and unnecessary cognitive load. The sixers "Promised" a simple solution to this problem: kill the callback and make everything look synchronous and things will be simpler.

Unfortunately we're still "awaiting" to reap the benefits of all of that nonsense. The added syntactic sugar and blackbox magic has only introduced further complexities and fracturing of the ecosystem, causing confusion for new and old developers alike. Not to mention incompatibilities between browsers and so on.

We've spent the last several years using Webpack and Babel to transpile awaited promisified callback functions back into callback functions: fighting against JavaScript while introducing a greater potential for bugs into our software, and for what?

There has been a far simpler solution to the aforementioned problem in front of us the whole time: use callbacks for everything.

Callbaxx is a library of callback wrappers for common functions which allows you to do just that.

By embracing and promoting the beautiful asynchronous nature of JavaScript, rather than fighting it, Callbaxx let's you write JavaScript as it was meant to be written!