strategy

How do you work on Oracle packages in a collaborative, version-controlled environment?

I'm working in a multi-developer environment in Oracle with a large package. We have a DEV => TST => PRD promotion pattern. Currently, all package edits are made directly in TOAD and then compiled into the DEV package. We run into two problems: Concurrent changes need to be promoted on different schedules. For instance, developer...

Best bugfixing/errorfinding strategy - all languages

Hi! I found out, while shoulder surfing some other - much more experienced programmers - that they all have different strategies in finding (their) errors in (their) code. And I don't mean understanding compiler error messages, but understanding the reason why the error message occurs - immediately by following the code-flow and locat...

WordPerfect programmers refusing to use anything but assembler

There is a version (popularised by Joel Spolsky) attributing the demise of WordPerfect to a refusal of its programmers to use anything but assembler that led to delay of the first WPwin release and as result eventually to losing the all important battle with Microsoft. There are a few references to programming work being done using asse...

Does the Strategy Pattern violate the Single Responsibility Principle?

If the Single Responsibility Principle states that every object must have a single reason to change and a single strategy class implemented with the Strategy pattern (by definition) has multiple methods that can change for any number of reasons, does that mean that it's impossible to implement the Strategy pattern without violating the S...

Fast development, or stable results, which is more important for public web site/services?

This is really just me soliciting a number of opinions and as a relative newbie to this site, I hope I was correct in marking this post as a community Wiki. If I was mistaken, can someone please correct my mistake. Anyways, here is the scenario. I am developing a web application and a number of services in support of that application....

How to adapt agile to different companies? An MBA thesis

My master's thesis is to look at how to apply agile. There is an awful lot of corporate selling of agile - lots of management consultants selling their brand as 'best'. I'm not interested whether XP, Scrum, Crystal Clear, Agile-CMMI, Six Sigma or any other brand/variant is best. I'm interested in what real, active developers (i.e. yo...

Emailer in Java using Strategy Pattern

UPDATED: Added one more question (Question #4). Hi all, I'm building myself a custom emailing utility. Now, to obey Single Responsibility Principle, I want to have the following classes: MailerSender, MailProvider and EmailObject. The MailSender is more of a delegate, check it out below: public class MailSender { private IMailPr...

What are the best books for Programming Theory?

Related: http://stackoverflow.com/questions/537855/what-books-to-take-programming-beyond-the-basics-closed http://stackoverflow.com/questions/574001/what-books-do-you-suggest-for-understanding-object-oriented-programming-design-de http://stackoverflow.com/questions/13781/computer-science-textbooks I'm trying to build some...

how to assign different concurrency strategy to the same (persistence) entity?

I'm using JPA and I am using second-level cache for all the reference entities. Everything's working well, I can get the entities from second-level cache is they were already been selected before. Now, I have two applications, they both use the same database (so they both use the same table, values, etc). 1.The read-only application ju...

Cost decorators

Hello, For each product there are associated cost calculators like: discount, discount by merchant, bonus by merchant, monthly discount etc. In future, more cost calculators would be added. We have a concrete product class and many decorators for each cost calculation. All products should use all of the calculators, because the calcula...

Caching Strategy for queried data

I'm currently in the process of building a repository for a project that will be DB intensive (Performance tests have been carried out and caching is needed hence why I'm asking ) The way I've got it set up now is that each object is individually cached, if I want to do a query for them objects I pass the query to the database and retur...

Strangler Application implementation with ZendFramework

I have current PHP codebase written in procedural (mainly) style that our client is using for some time now. What we want is to "strangle" (as in concept Strangler Application) that code and add Zend Framework to enable new development. What I have now is custom route that routes all "old" HTTP request to one controller (i.e. Strangler ...

How to prove to our users that they are not being cheated?

I have an information theory question about how to prove (or at least give statistical evidence) that an auction website is not shilling its users. We recently launched a pay-per-bid auction website. It is a new type of auction where the users pay to bid on timed auctions. Each bid raises the price and increases the time of the auction...

Successful Strategies for TRY ... CATCH in SQL Server 2005

I'm changing some code to take advantage of TRY ... CATCH in SQL Server 2005. What successful strategies have you found for using it? I'm thinking of creating a stored proc which calls the system functions which give details of the error, rolls back any open transaction and raises an error. Is there a better way? ...

After having started a project and suddenly having found new competition, how do you convince yourself to keep going?

I understand this is a subjective question but I want to see how others dealt with this issue: How do you convince yourself and your teammates while trying to start a business or a project and suddenly faced with competition, whether due to lack of research or entirely new startups, that we should keep going? What are some motivational...

How to be good at Ruby on Rail

If I want to be good at Ruby on Rail, what is the good way to reach it? Which resource I should read? How Can I test myself that I good at it and what level am I? ...

Any way to declare routing strategy for an WPF element?

Suppose we have a WPF element, for instance StackPanel with Buttons, Textboxes etc. inside. Is there any way to say directly in XAML that I want a tunneling strategy? <StackPanel RoutinStrategy="Tunneling" ... ...

How to Encapsulate Change For Random Variations

I am writing a motor vehicle system for a county government that lets a user select many different types of car tags. The problem is that the state has built in a lot of special little exceptions for tag types. I realize it's very messy and inefficient to simply code if statements for each of these, but I can't seem to find a way to ab...

To re-write or not?

This is a strategic question. I have a large piece of software, web based, that handles probably around 50 to 60 different tasks. The software uses about 100 MySQL tables, and can probably be considered as 3 big modules targeting 3 different sets of audiences. It runs very well. The software was started 5 years ago, and has gone through...

Zend_Auth: why authenticate object named adapter and not strategy?

$Zend_auth->authenticate($adapter); Why is it called an adapter and not a strategy? ...