card – make your credit card form better in one line of code
Category: Programming
A big part of my work has to do with code. I’ve worked as system administrator – installing, patching, and configuring someone else’s code. I’ve worked as independent programmer, writing code on my own. I also programmed as part of the team. And on top of that, I worked as Team Leader and Project Manager, where I had to interact a lot with programmers. Programming world on its own is as huge as the universe. There is always something to learn. When I find something worthy or something that I understand enough to write about, I share it in this category.
unix-history-repo – a git repository representing the Unix source code history
unix-history-repo – a git repository representing the Unix source code history
randomColor – a color generator for JavaScript
randomColor – a color generator for JavaScript
randomColor generates attractive colors by default. More specifically, randomColor produces bright colors with a reasonably high saturation. This makes randomColor particularly useful for data visualizations and generative art.
You can also pass an options object to randomColor. This allows you to specify the hue, luminosity and the number of colors to generate.
International PHP Conference 2014, Berlin, Germany
As many of you already know, I’ve spent most of the last week in Berlin, Germany, attending the International PHP Conference 2014. Here’s the short story: it was another great event (yes, I’ve attended this conference before). The conference seems to grow and mature. There were plenty of engaging speakers and insightful topics. If you haven’t been to one of these yet, and you are involved with web technologies in general or PHP in particular, you definitely should attend. It’s worth every dime.
Now, for the long story.
Continue reading International PHP Conference 2014, Berlin, Germany
JsAction – a tiny event delegation library
JsAction – a tiny event delegation library
JsAction is a tiny event delegation library that allows decoupling the DOM nodes on which the action occurs from the JavaScript code that handles the action.
The traditional way of adding an event handler is to obtain a reference to the node and add the event handler to it. JsAction allows us to map between events and names of handlers for these events via a custom HTML attribute called jsaction.
Separately, JavaScript code registers event handlers with given names which need not be exposed globally. When an event occurs the name of the action is mapped to the corresponding handler which is executed.
Finally, JsAction uncouples event handling from actual implementations. Thus one may late load the implementations, while the app is always able to respond to user actions marked up through JsAction. This can help in greatly reducing page load time, in particular for server side rendered apps.


