JavaScript optimization Part 2: Applying styles to elements

Mar 27
2007 22:02 (Development, JavaScript) · Русский (8,720 views)

This is second part of articles cycle devoted to JavaScript optimization. In this post I’ll cover dynamic elements styling and explore a little HTML-rendering process. Also you will find here some tricks on how to make your applications faster.

Read the rest of entry »

JavaScript optimization Part 1: Adding DOM elements to document

Mar 25
2007 03:40 (Development, JavaScript) · Русский (16,607 views)

Most web-developers writing tons of JavaScript, especially in our Web 2.0 century. It’s powerful technology, but most browsers has very slow implementation of engine, and everyone at some instant decide to review code and make it faster. In this post I’ll share my experience and explain several tricks how to make your JavaScript as fast as possible.

This is first article in 7 parts tutorial, stay tuned.

Read the rest of entry »

Colorizing console Ruby-script output

Mar 23
2007 18:28 (Development, Ruby on Rails) · Русский (10,593 views)

Very often I have to implement console scripts (because of my laziness, for boring processes optimization). Many of them write some information to the output, show process status or display results of work. Anyway, it’s very wearisome action to read script output, and I want to highlight most important things: errors in red, successfully finished steps in green color, etc. And it is a case when ANSI escape sequences could help. They are supported by the most terminals, including VT100 (btw, Windows NT family console does not support it, but I will back to this issue later).

Read the rest of entry »

5 Things why I love RSpec

Mar 19
2007 09:31 (Development, RSpec, Ruby on Rails) · Русский (7,530 views)

RSpec provides a framework for writing what can be called executable specifications of program behavior. In this short post I want to explain why I use this framework in place of classic TestUnit library.

Read the rest of entry »

 
Copyright © 2005 - 2008, Dmytro Shteflyuk