The Importance of a Flexible Job
One of the best changes in my life recently is that I finally have a flexible job: I work when I want to on what I want to. I got used to it to this point that I can't even imagine to work in the traditional way anymore.
Nothing Is Impossible
A lot of people seem to waste their time rationalising why they can't do something. Lack of talent, lack of money, lack of time, you name it! But I don't buy it, not anymore.
Blog 101Ideas.cz Reloaded!
There were barely any posts lately, I know. The thing is this blog was originally intended for Ruby, JavaScript or web-related stuff. But I'm not that interesting in blogging about IT anymore. Don't get me wrong, I love to program, I enjoy it, just it's often too trivial to blog about it. IT is an exact thing, get familiar with the API and work, anyone can do that.
HTML 5 Review
For a looong time there hasn't been any development of the HTML standard. HTML 4 was released in December 1997, with few minor updates since then. Finally in recent years a lot of people realised that the current HTML 4 standard isn't enough for needs of the modern web development and since the situation in W3C has been complicated, the Web Hypertext Application Technology Working Group ( WHATWG) started to work on a new standard ...
DRY Your YAML Files Up!
It's basically a simple inheritance pattern in YAML:
Mixins in JavaScript
Thanks to JavaScript flexibility it's incredibly easy to use mixins:
Extending JS Prototypes in Non-Invasive Way
The most serious reason for not extending prototypes of things like Object or Array is that you'll break iterations. For example
WSGI & Django Applications on Passenger
Quite cool thing I discovered recently is that you can deploy WSGI applications (Django etc) on Passenger. There is an example app for WSGI out there. Similarly as in Ruby, you have which looks like this (it's a slightly modified version of the linked example):
config.ru passenger_wsgi.py
Prototype inheritance in JavaScript II
This article is an continuation of the Prototype Inheritance in JavaScript where I explained what is prototype and how the basics of prototype inheritance in JavaScript works. Today I'll go on with the new keyword and how to use the more advanced OOP techniques as super() etc.
Subdomains in Django: An Example
In Django Middleware is a class which respond to one of these methods: process_request, process_view, process_response or process_exception. For more informations see the Django middleware docs.
CommonJS Module System in Ruby
I really like the CommonJS module system, which is explicit, rather than implicit as Kernel#require in Ruby. So rather than putting everything into the global namespace, require in CommonJS simply returns an object which contains the stuff you explicitly exported from the required file. For example:
Why You Don't Need OOP in JavaScript (So Much)
After I did some research on OOP in JavaScript, I realized I don't need it so much. I'm used to do pretty much everything via OOP, since it's the way how Ruby, my primary language works. But JavaScript is different.
My Node.js Projects
Minitest.js in action (it's using colours.js):
Wake up guys, Ruby 1.9 is here!
I'm disappointed how slowly Ruby community adopts the new Ruby 1.9. Oh wait, it's not new at all, it's more than a year old now! There is still significant amount of gems which aren't 1.9-compatible, my collegueues are asking me why we should upgrade to Ruby 1.9 and for Rubinius core team has compatibility with 1.9 so low priority that they didn't accept my patches for 1.9 compatibility even if I asked then 3 times.
Asynchronous Testing with Node.js
Do you remember projects when your tests run for 30 minutes or even an hour? I do, actually it's nearly turning into a standard. So when CI send you notification that something went wrong, you are already working on a new task, so you have to switch context to fix the stupid bug and then switch context back ... pretty annoying and distracting. Fortunatelly it doesn't have to be so slow, mainly in a web application when you can make a lot of code to run asynchronously since you are always waiting for database ...
<< Next page Previous page >>