Why working from home is good for business?

July 29, 2019 · 0 min · anvyst

Ember.js: Documentary

Honeypot filmed a great documentary on Ember.js and the story of its development. Brings up so many good memories from 2016. Back then, I was taking up by an ambitious task of re-writing the checkout service of the company I used work in, from plain PHP with monstrous AJAX spaghetti code, to something more stable, and consistent. Seeing a pure MVC architecture in JS framework was a real surprise for me, as most of the codebase I faced back then, didn’t have any structure....

July 24, 2019 · 1 min · anvyst

“Global data” by M. Fowler & K. Beck

Since our earliest days of writing software, we were warned of perils of global data - how it was invented by demons from the fourth plane of hell, which is the resting place of any programmer who dares to use it. (C) Refactoring, 2nd Edition

July 13, 2019 · 1 min · anvyst

Refactoring UI to Common UI Problems

July 1, 2019 · 0 min · anvyst

Docker: access host database from container on Mac

With things like homebrew you kind of forget that you’re not on Linux, and some things might actually work differently. Trying to connect to a host database server from the container using 172.17.0.1 didn’t work out. After few hours, figuring out that everything’s setup right, you’re not going crazy, you stumble upon this note: The host has a changing IP address (or none if you have no network access). From 18....

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

PHP RFC: Comprehensions

Another interesting RFC recently landed to PHP community. So far the easiest way of explaining comprehensions for me comes from Python world: Comprehensions are constructs that allow sequences to be built from other sequences. Here’re some examples from List comprehensions in Python: def palindromes(strings): return [s + s[::-1] for s in strings] def starting_with(letter, names): return [name for name in names if name[0].lower() == letter.lower()] JavaScript, however, decided to remove its support from standard in favour of filter/arrow/map functions....

April 13, 2019 · 1 min · anvyst

Disney to compete with Netflix

Disney executives didn’t mention Netflix once during their three-hour-plus investor presentation Thursday, at which the company laid out its plans to build up a suite of subscription streaming services — most notably Disney+, a $7-a-month service bursting with movies and TV shows. Disney+ launches in the US in November and will feature everything from Disney’s recent theatrical offerings, like Captain Marvel, to classic Disney movies like Bambi, and new, original stuff like The Mandalorian, a _Star Wars _TV-show spinoff....

April 12, 2019 · 1 min · anvyst