ProgFu

programming tips & tricks

Feb 20

Deferred Objects in jQuery 1.5 - AJAX

The latest version of our beloved jQuery introduced a couple of new features, one of which is called Deffered Objects. Now what is that exactly?

We often need to introduce some sort of a callback mechanism in JavaScript, where a function is invoked once a task is done. The most popular usecase would be AJAX.

Read More


Feb 3

Stash it with Git!

How often do you change something and one minute later it breaks and you want to go back to the working version to debug it or just run it again to see how it works.

But what do you do with all those changes you already made? Since something isn’t working, you probably haven’t commited anything to the repository yet.

Read More


Jan 9

Your Code is Not Self Documenting

There is this movement that people should try to write a self documenting code. Such code doesn’t require any comments, because it is obvious what it does. While that might be true, it’s not the whole truth.

Read More


Jan 5

Dec 23

Sinatra and SQLite on 64MB RAM

This article is a direct followup of Ruby on 64MB RAM. If you didn’t read it, please do it now.

No MySQL

Since we’re running on very low resources, we need to think carefuly about every process we want to run on our server.

Read More


Once again back on tumblr

I’ve moved my blogs multiple times in the past few years, always expecting things to improve.

At first I started with WordPress, then somebody told me about tumblr, so I moved everything to tumblr. Then I found out I can’t run any server side scripts on tumblr, so I moved back to WordPress and yet again installed every possible plugin you can imagine.

WordPress Plugins? Nothx

I decided to put an end to this, to hell with all the bilion-in-one-SEO plugins. In the past few days I got a proof that I don’t need any of these hackish features to get traffic.

Why bother putting 15 social bookmark buttons when nobody even finishes reading the article? From now on I’m going to focus on the content, because that’s all that matters.

Fail Whale

I’d also like to apologize for all the crashes that occured in the past few days. It was caused by my host being overloaded, but since this blog is now hosted on tumblr, there shouldn’t be any more problems.


Dec 22

Ruby on 64MB RAM

This week I got my hands on 64MB RAM and very little CPU VPS. At first I thought it’s useless since there’s no way I can do anything with this, even the smallest Rails app barely runs on 256MB with nginx and MySQL.

But what about Sinatra? Could we run a small database driven application on such a tiny server? Let’s give it a try!

Read More


Walk the Path to Ruby Enlightenment

As Ruby is gaining popularity, many new people come to learn it. Even though there are numerous numbers of books for the topics, many programmers prefer to learn by example.

Not everyone has the time to buy a thick book full of examples and just start reading it. Then you have to rewrite the examples from the book to try them yourself, which is pain in sometimes pain in the ass, as books contain typos and other mistakes.

Read More


May 15
“If you want to make a difference in the world, the single most important thing you can do is consciously and deliberately choose to do work that you are passionate about.”

Feb 22

The Rails Upgrade Handbook is now available

omgbloglol:

The eBook I previously mentioned is now available! It’s only $12 at http://railsupgradehandbook.com.

Inside you’ll find…

  • Almost 120 pages of upgrade information
  • A step-by-step guide to upgrading your app to Rails 3
  • High-level discussion of what’s new in Rails 3
  • Practical tips on using Rails 3’s new features to improve your code
  • Real case studies of upgrading apps and plugins
  • Detailed checklists for upgrading

The website


Bloggers - Meet Millions of Bloggers
Web Analytics