Feeds:
Posts
Comments

Archive for the ‘Programming’ Category

The application reloads the list of jobs, if any job is reposted or expired. We display different labels, such as “reposted”, “expired”, depending on the action. It worked well with browsers but IE 8. Simply, IE was cacheing the part of html. Though we request the partial view by post. So, we brought in NoCache [...]

Read Full Post »

rails generate basics

create controller with help and home routes the option no-test-framework suppresses the default rspec test (or test::unit). if you have created them by mistake, you can destroy them. Creating a model is the same. Errors Could not find a javascript runtime. Install node.js.

Read Full Post »

rake basics

Rake is ruby make, a make-like language in ruby. make has been used to build code in linux & unit environment. This execute migrate db scripts. Use bundle exec, to run the version of rake in your gem file. You can see rake commands.

Read Full Post »

git basics

I have used git for a year now on my personal projects, but it is still mysterious. I feel like I need a good gui. Anyway, this is the basics of git, so don’t expect any in-depth knowledge from this post. An augmented .gitignore This will ignore rails document, vim, emacs swap files, and Mac [...]

Read Full Post »

You use keyboards and command line more and more, as you get more experienced with the tools in development. If you install git on windows, it creates “Git bash here” context menu on Windows Explorer. It is really handy, and I like it. I believe Visual Studio installation should do the same. Well, it doesn’t, [...]

Read Full Post »

It is so good that all those videos are published after conference. If you are not a speaker at the conference, not sponsored by your company, or not have a free ticket, often you can’t simply afford to attend it. This is the first of “My learnings from NDC Conference Videos” series. The benefits of simple, automated [...]

Read Full Post »

What is “Sandwich Code”? I found it in Ruby Koans. Often, you have to do something at the beginning and at the end, even though your main lock is in the middle. Let’s say, you want to retrieve data from database. You have to create a connection, open it, use it to load data, and [...]

Read Full Post »

As you use ASP.NET MVC on and on, you start building and using handy html helpers. Rob Conery posted a few of his helpers on his blog. You can find some more in his ASP.NET MVC source code. Inspired by his helpers, here I post mine. 1. Html.Image Depending on the environment, the absolute url [...]

Read Full Post »

Ideally, it is not recommended to test private methods, as complex internals should be kept hidden and only interface be tested. Well, in real world, sometimes, you need to test your private methods, as it performs very important operation. In my case, the method was public and later I changed it to private, since it [...]

Read Full Post »

Recently, I moved to Barclays. My job is still development, though. Totaljobs is a good company, and I enjoyed its casual, IT geek culture. It’s the thing I miss in my new job, as I work with quants. The web application here has generally more complex UI. On public web page, you would not normally [...]

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.

Join 135 other followers