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

VueJS Plugins: developing with HRM

I’ve never being a fan of keeping backend and frontend codebase together, though some of the well known project achieve it quiet well like Discourse. Keeping JavaScript aside for backend solutions, as part of standalone UI elements seemed as decent solution. But when you have to develop Vue components as plugins and keep the project running - testing becomes messy. I spent half a day trying to figure out the ways how you can use symlinks to pick local packages to work in dummy VueJS app, but no luck....

June 26, 2019 · 2 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

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

AdminLTE Midnight theme: customising templates

AdminLTE is by far one of the great examples of what Bootstrap CSS can do and consists of pre-defined UI elements used for Admin control panels. Similarly we have ElementUI, Bulma, and Bootstrap CSS in its core. Right now, there’s a massive amount of various admin panels on the net. AdminLTE Midnight Theme So, I made a quick Proof of Concept on how we can easily convert default AdminLTE layout into a dark theme, with a bit of help from grunt and yarn....

October 19, 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