Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6953481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:29:06+00:00 2026-05-27T14:29:06+00:00

You’ve all heard it before, classic Delphi application. With 3rd party libraries we’re at

  • 0

You’ve all heard it before, classic Delphi application.

With 3rd party libraries we’re at 1.5 million lines of code, probably 200,000 of our own (Dev Express, NexusDB, etc etc)

One huge Datamodule that I’ve been slowly splitting into 5 (and likely need more). Moving some business logic to these datamodules slowly but surely as methods of the module.

Everything coded ‘under the button’, no classes of our own. A few forms have 20k lines of code.

I need a reasonable plan to get this in a better place. Right now you can’t really test ANY of it, minor changes could introduce an army of bugs, etc.

I was thinking, to start, get a unit going for each major form and extract business logic in the form to this class/unit. Something like TMyForm has a TMyFormClass.pas so that TmyForm ends up with nothing but UI. Continue to modularize the datamodules, write tests asap. Only refactor where we’re working on.

Sound sane, addition suggestions, somebody please send me liqour….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:29:07+00:00Added an answer on May 27, 2026 at 2:29 pm

    In the end, this is a business decision, and should be made as such. What would give your business the most value. Identify that, and refactor that area first, where you can demonstrate (prove) that the benefits to the business are high at least, if not the highest possible value.

    I believe that any plan that starts with an implementation idea (MVC rules! Split all the things!) without business-value assessment, is going to be a largely wasted effort.

    Example: My application prints and helps me mail my invoices to my customers. Most valuable area of the application to refactor is that I’ve never been able to handle customer priority and make batching work properly. This improvement has a clear business value, and refactoring it will take me (I estimate) 10 days. During this time, I also hope to decouple my database access code, from my business rules, and decouple my business rules from my UI, for just the area of the code that has to do with the Priority and Batching elements of my UI, which means it hits only 10% of my UI code, and this refactoring effort takes me (I estimate) another 10 days. That means a total of 20 days effort, and the code will be able to do something new. I also intend to make some unit tests (my first ever) that will rely on the ability to mock my database layer away.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.