Skip to main content
Home
Richard Harrison's development notes

Main navigation

  • Home
  • Aerodynamics
  • Emesary
  • FlightGear
  • Journal
  • Portfolio
  • Vault
  • Wordpress
  • Showcase
User account menu
  • Log in

Breadcrumb

  1. Home

Design

C++ Basic Framework Design for a Simulation System

This set of code is derived from the work performed building the Direct2Learning Java Avionics training platform (now defunct).

It uses multiple inheritance, however base classes are pure virtual effectively to provide interfaces.

The code sample is missing the complicated ExecScheduler which is where the scheduling of modules is performed. Writing the ExecScheduler is reasonably complex - it needs to work with threads and provide timing. I've got a Java version of this which is at the end for illustration.

Web Application Architecture

Frequently I see the same question in many forms; "How do I design a web application architecture". The simple answer is that all application architectures are different, depending on the actual needs. Instinctively most programmers know what's required, or at least we think that we do. bq. The true skill is to realise that we are often wrong and that any architecture design needs to be validated. h2. Pragmatic approach to application architecture Pragmatism is one of those often misapplied terms that is often used interchangeable with "in my experience".

Removal Of Control in object oriented systems

Removal Of Control is a mechanism that will improve the usability, reliability and readability of code. I use commonly, it's similar in what I'm achieving but very different to IoC. The defining difference for me with ROC is:

Removal Of Control allows objects to be less tangled.

The ends squeezing the middle in object oriented design.

Often when designing anything it is all to easy to forget the simple fact that when you add 1 to a number you will eventually be doing ADDQ.L #1, D2.

I follow, but not rigidly, the following rules of thumb

If you have a design with 2 classes you probably should be writing something procedural.

If you have a design with more than 30 classes it's probably time to revisit the design.

Breaking rule of thumb no.4

I've just realised that effectively I'm breaking my own rule of thumb No.4 "You don't need to write an application framework", and here I am writing one.

View update complexities

On a page where there are lots of views but all from the same entity there is an interesting challenge when an individual item is updated within a view. Normally this is catered for during a full postback simply because the entire page is recreated dynamically, so it is enough that the post is processed during the construct phase.

However this isn't true when we are using an ajax update to modify an item.

ZXAF Development notes

ZXAF is really the culmination of a lot of individual techniques that I've used in many different developments.

So, I decided to pull of these together into a project, release it as opensource, and continue developing it with a view to doing everything the right way. It is a development without a timescale or a budget, and its nice to be able to spend time on pure development.

How to use alpha blending on websites to create cool looking effects

Alpha blending is now possible thanks to improved browser support for PNG images with an alpha channel.

In essence the alpha channel controls the visibility and I use this together with layering images atop each other to provide texture and colour to style page elements.

Design

Site Contents

  • Home
  • Aerodynamics
  • Emesary
  • FlightGear
  • Journal
  • Portfolio
  • Vault
  • Wordpress
  • Showcase

Search

RSS feed
Powered by Drupal