Hey. I am using the following line开发者_运维技巧 over and over in my controller index queries. Does it makes sense to create a new application method to re-use it? Any suggestions on how I could extr
I have derived classes that differ in some constant attribute.In all derived classes, I have a function that returns attribute.Is there a way to move the get_x function into the base class to remove t
Help or suggestion will do. I\'m installing the Visual Studio Express 2010, i know we cannot use resharper with express edition. i need know do i hav开发者_StackOverflow社区e any other alternate tool
I renamed a project in Eclipse via \'Refactor > Rename\' as suggested in this answer. I now want to rename it again, but the Refactor menu has only one menu item now (Android > Extract Android String
We have an agile enterprise application built on JSP and Servlet without any design strategy. This application was built in early 2002 considering 1000 users. After 2002, we received lots of request
Suppose I have two classes in a Rails application: class Subject < ActiveRecord::Base def children? Subject.where(:parent_id => self.id).length > 0
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing
I have a piece of code where I started to put the strategy pattern in place, say as follows: IStrategy
I\'m trying to improve how clean my JavaScript/jQuery is and was wondering if anyone has any pointers.
I have several functions on graph f(), g() and h() that implements different algorithms for the same problem. I would like to unit-test these functions using unittest framework.