1

We have a framework based in C# + XSLT + javascript, that is used as a base for the projects of the company.

The company has announced that in a few days I will be the responsable of this framework. The objectives are:

  • Repair bugs
  • Add new features

The problem is this framework has a lot of bugs, there's not documentation (none, zero), contains bad practices of code, and some antipatterns. (Also doesn't use any naming conventions).

One of the first things I thought was starting for the javascript part, and add jQuery library for use the functions of jQuery for DOM access, XML manipulation and AJAX calls and other stuff, because some of the actuals are buggy.

I'm afraid to be the "so-clever-guy-that-refactors-and-breaks-the-project" and i have to be so careful, because this framework is used in a lot of projects, and breaking the framework would be "so much visible".

How can start to adapt the code to works with jQuery?

1 Answer 1

3

The problem you have is not really specific to jQuery. When making changes to a working system, some application of good coding practices is required:

  • Create Development and Test environments separate to your live environment
  • Create test scripts for parts of your system that you know to work correctly at present (consider Selenium for automated browser-side testing)
  • Work steadily, making individual changes and testing continuously (look into TDD)
  • Use version control software (e.g. Subversion) so you can roll back if necessary.
Sign up to request clarification or add additional context in comments.

1 Comment

+1. If you are in a hurry, surround only what you want to change with tests.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.