Web development blog

Advanced SQL and named scopes stack with ActiveRecord

Jan.24, 2010

If you ever work with rails application that is a little bit more complex then a simple CRUD you would know that some of the ActiveRecord magic doesn’t work for complex SQL queries. I am primary talking about named scopes stack feature.
More…
Leave a Comment :, , , , ,

Vim as IDE - new development era for me

Dec.01, 2009

I was using Vim to do the minor editing in config files for ages. Vim is advanced on basic navigation and editing operations. However I was always prefer IDE for programming because of it’s specific to language navigation(’go to definition’ feature is awesome!), integrated debugger. But while gaining the experience I noticed that all advanced features began to be less important then basic ones. And you should try Vim if you feel the same.
More…
1 Comment :,

Objects behaviour inheritance with RSpec

Oct.27, 2009

About half of a year ago I was writing about object interface and Liskov Substitution Princeple. In short: Any class instance that extends the base class should pass all unit tests behaviour tests written for base class instance. It was a surprise for me that this concept has already been implemented in RSpec.

More…
3 Comments :, , , ,

Computer science ain’t as good as it should be

Jul.30, 2009

When I start studying computer science in the University class I truly believe that it is all I need to get started writing good programs. Algorithms > Functional programming > OOP > Databases > MVC is a step-by-step path of all people that learn programming of the web application. But… More…
6 Comments :, , , ,

When BDD user stories is productive

Jun.29, 2009

When you are skilled Unit tests writer it is not very easy to estimate the potential of BDD. Moreover in most cases BDD is used as a human-readable wrapper for unit tests. Do you really think that programmers need such abstract layer? Of course not… Users needs them.
More…
1 Comment :, , , , , ,

Pragmatic review of Google Wave technology

Jun.08, 2009

Have a good time watching the Google Wave presentation video. Looks like an excellent open technology that will make our life easier. I like the overall idea. It is really awesome. But I personally admit some things that seems useless to me…
More…
Leave a Comment :, , ,

Double select from a single table in complex SQL query.

Jun.02, 2009

When I start learning SQL I have to write a lot of nested queries when working on complex select statements from a single table. Now, I feel more comfortable with it and show how to avoid nesting. There are cases when you have to compare one row of the table with all others to get the result:
  • Select next element to current by the value of some field
  • Select records that are unique by some complex expression
  • Select all records that have the same parameter as given record.
You can get rid of nesting in all above cases. Let’s review the example. More…
Leave a Comment :, , ,

How to choose a sexy title for your article

May.13, 2009

Most of the people will not spend a minute reading your article if they wouldn’t get interested from the very beginning. What resides at the beginning of any article? It is the title of course. That is why choose a good title is very important for every content posted in the net. More…
Leave a Comment :, , , , ,

What do you expect from the interface?

May.05, 2009

Read a great article today - Liskov Substitution Principle (LSP). It let me understand that Interface is not just a list of methods.
More…
6 Comments :, , , ,

JBoss Seam usage makes the application code crazy!

May.04, 2009

Seam Application has a number of good innovations but let’s find out if we lose some advantages that we had before. I started application development with JBoss Seam one year ago. With the code base growth I have had more and more problems in workflow development . More…
11 Comments :, , , ,

The Content of this blog can be published anywhere with the link to original source.