The 16-year rewrite

In February 1992, I started work a piece of Frontier called the scheduler. It’s the equivalent of what they call “cron” in Unix-Land. You can put scripts in four different places: 1. everyMinute scripts, 2. hourly scripts, 3. overnight scripts and 4. threads. It was a simple bit of code that’s been running now for 16 years, on every copy of Frontier, Radio, or the OPML Editor.
It was built on the foundation for background processes that existed in 1992. A few years later a better foundation was built, but the scheduler was never adapted to run on that.
It’s always had a certain flakiness, and I never had the patience to track it down. It’s old code, written before I learned a lot of things about the Frontier environment, what works and what doesn’t. I just lived with the flakiness.
Yesterday I got tired of it, and I did what programmers like to do, I rewrote it. It took a few hours, but the new version is *much* cleaner, and already runs much more reliably.
Proving the point that sometimes code rewrites are the way to go.
I’ve released the new part to OPML Editor users. There’s no code that uses it yet, but there will be soon.

No Comments

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a comment

  • Calendar

    • February 2012
      M T W T F S S
      « Sep    
       12345
      6789101112
      13141516171819
      20212223242526
      272829  
  • Search