The mysteries of flexible software

April 26, 2004, 11:00 PM —  ITworld — 

Software is interesting.

At the end of the day, running software is nothing more than large sets
of numbers undergoing manipulations through complex mathematical
functions (known as algorithms) which are themselves, nothing but
numbers.

Numbers are interesting.

Sometimes, numbers are used in software to represent themselves i.e.
financial calculations where you feed numbers in and get numbers out.
Sometimes, the numbers are used to represent other things - symbols.

Symbols are interesting.

The symbol 'A' for example is, as far as most computers are concerned,
the number 65. Fed into the appropriate function, the number 65 appears
to be manipulated as a letter from the Latin alphabet, not as a mere
number. The software we create floats on a vast sea of symbols and
functions that manipulate these symbols. Indeed, every bit of software
we write, adds to the vast sea of symbols and functions.

Functions are interesting.

Remember your high school math? Do you remember all those functions
(sometimes dressed up as equations)? Given some numbers, you plug them
into a function and out pops one or more other numbers. The numbers you
feed in are the 'parameters' of the equation. The parameters are the
bits that are left unspecified so that a function can becomes general
purpose.

Parameters are interesting.

Parameters are the key in turning a calculation into something that can
be reused in a variety of contexts. Without parameters, we cannot get
reuse from functions.

Reuse is interesting.

We always strive for reuse in the software we create. Some of the
functions we use are timeless and occur over and over again. Interest
rate calculations, the number of working days between two arbitrary
dates, that sort of thing. We put these general purpose functions into
so called 'libraries'. We try to reuse these libraries of functions over
and over again through the parameters they give us access to. However,
in most non-trivial software projects, there are many more
custom-designed functions than there are reusable functions.

Custom designed functions are interesting.

Every time we create a custom-designed function, we have to ask
ourselves 'what numbers in the core function should be left unspecified
- parameterized - in order to make the function general purpose and
reusable?'

Parameterization is interesting.

Take interest rate calculations as an example. It does not take a
financial guru to realize that the key numbers that need to be
parameterized are the rate, the principle and the term. Unfortunately,
as functions get more complex and more domain-specific, it becomes
harder and harder to identify what numbers should be parameterized. For
example, in a financial application, which aspects of invoice generation
need to be parameterized and which do not? In a manufacturing
application, which numbers need to be fed into the parts-reordering
function and which do not?

Sign up for ITworld's Daily newsletter
Follow ITworld on Twitter @IT_world

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
peer-to-peer

Esther Schindler
If the comments are ugly, the code is ugly

claird
SVG a graphics format for 21st century

pasmith
Take Chrome OS for a test spin

Sandra Henry-Stocker
Solaris Tip: Have Your Files Changed Since Installation?

sjvn
64-bits of protection?

jfruh
Android fragments vs. the iPhone monolith

mikelgan
What Gizmodo missed about the Pro WX Wireless USB disk drive

 

Sidekick: The Good News & the Bad News
Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325

Join the conversation here

The Daily Tip

The Daily TipQuick, practical advice for IT pros. Made fresh daily.

Hot tips:

Want to cash in on your IT savvy? Send your tip to tips@itworld.com. If we post it, we'll send you a $25 Amazon e-gift card.

Newsletters

Subscribe to ITWORLD TODAY and receive the latest IT news and analysis.

I would like to receive offers via email from ITworld partners.
By clicking submit you agree to the terms and conditions outlined in ITworld's privacy policy.
Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

Marketplace