Today I forked the somewhat abandoned PivotTable.js and spent my time upgrading it's dependencies to the latest versions, even JQuery from v1 to v3, and rewriting parts of it for cleaner code and much better performance, using conditional rendering.
The library is written in #coffeescript which makes sense for the time it was created in (~10 years ago I think). But coffeescript seems downright idiotic compared to modern #javascript it only adds overhead and you will get a very unoptimized and bad js output.
I was thinking of rewriting the whole library in #typescript with functional programming patterns, or #clojurescript . I was leaning more towards clojurescript tbh.
But I realized too much work is put in this library and fully rewriting it would be very costly for me. Even though I'm getting paid to do it, we got a lot more to do.
The library is very well put together and has many capabilities. You can tell it has took a lot of time & effort.
But the code is very questionable.
Full rewrite some day maybe


