Declarative vs imperative programming

While going through RxJS, found this amazing article explaining the differences of imperative and declarative programming. In computer science, declarative programming is a programming paradigm that expresses the logic of a computation without describing its control flow. Here are some excerpts and learning cliffs to lighten up Saturday quarantine: I draw the line between declarative and non-declarative at whether you can trace the code as it runs. Regex is 100% declarative, as it’s untraceable while the pattern is being executed....

April 18, 2020 · 1 min · anvyst

You don't need: MomentJS?

While striving to minimise the footprint of production compiled JS code for some of my side projects, I found this great collection of nice, but sometimes controversial, repositories. Problems with Moment.js: It is highly based on OOP APIs, which makes it fail to work with tree-shaking, thus leading to a huge bundle size and performance issues. It is mutable due to OOP APIs and non-pure functions, which cause bugs like these....

January 21, 2020 · 1 min · anvyst

SVG libraries worth checking

https://frappe.io/charts http://snapsvg.io/ https://svgjs.com/docs/2.7/

June 27, 2019 · 1 min · anvyst

Fullcalendar.io for Vue: No more custom scripts

Few years, ago, I had to dance around fullcalendar.io library to get it working nicely in VueJS framework. Some wrappers, custom components and lots of external jQuery code to make it work. No more of it! Now, cakephp-[calendar](https://github.com/QoboLtd/cakephp-calendar/) can be re-written using fullcalendar-vue package. And it sound like a perfect weekend task: Getting rid of custom event treating RFC all the way with Recurrences Clean State Management and stand-alone JS npm package (instead of all-in-one solution) Congratulations to developers from fullcalendar community, who did a great job moving away to TypeScript, and making the codebase more incorporating with modern frameworks like Vue/React/Angular....

June 21, 2019 · 1 min · anvyst

SPA reload after deploy

John Resig, founder of jQuery, recently raised a great discussion on how to handle Single Page Application reloading after deployment. For folks that've developed Single Page Apps - how do you deal with users leaving pages open for a *really* long time? Reload every N days? Reload after a deploy? We frequently have users attempt actions many weeks after a feature was removed! — John Resig (@jeresig) January 10, 2019 Some of the options included:...

January 11, 2019 · 1 min · anvyst

Birth & Death of JavaScript

Absolutely brilliant talk from Gary Bernhardt about JavaScript. Appearance of asm.js and all the low-level fun, that was going on in 2000’s. This science fiction / comedy / absurdist / completely serious talk traces the history of JavaScript, and programming in general, from 1995 until 2035. It’s not pro- or anti-JavaScript; the language’s flaws are discussed frankly, but its ultimate impact on the industry is tremendously positive. For Gary’s more serious (and less futuristic) thoughts on programming, try some Destroy All Software screencasts....

December 10, 2018 · 1 min · anvyst

Dashboards with GraphQL & ElasticSearch

Here’s an example of creating Dashboards with GraphQL and ElasticSearch from React community. As a big fan of VueJS framework, it’s still nice to check what’s happening on the other side of the fence from React community fellow coders. Mitch Clay published an article on how you can utilise GraphQL with ElasticSearch to design dashboards for the your projects. The stack is pretty common for JS environment: NodeJS 2. React 3....

December 4, 2018 · 1 min · anvyst

VueJS.London - Jest for Vue testing

Images Copyright www.edtelling.com In September, I was lucky to attend VueJS London conference. It was an amazing experience, with lots of interesting talented people from different corners of the EU and the States. I’ll slowly start assembling the info on the talks that took place there. Once the slides become available I will start adding them here as well. One of the greatest talks at the conference was by Roman Kuba....

October 10, 2018 · 1 min · anvyst

JavaScript issues in one picture

The picture looks a bit outdated as it misses gazillion of trendy frameworks and transpilers but still relevant to the subject

December 26, 2017 · 1 min · anvyst

Some useful links for JS coding

Few nice things to use in close future: Hoodie A fast, simple backend as a service for your web apps, Open Source and free. No need to write server-side code or database schemas. Makes building offline-capable software a breeze. GREENKEEPER.IO Get safety & consistency with real-time monitoring and automatic upates for npm dependencies.

September 21, 2017 · 1 min · anvyst