Click here to Skip to main content
15,860,844 members
Articles / Cloud

How Not to Back Yourself into a Corner...

Rate me:
Please Sign up or sign in to vote.
4.78/5 (23 votes)
6 Dec 2016CPOL9 min read 27.2K   22   3
Things to remember when approaching a new project, questions to ask, things to consider and tips learned the hard way!

Introduction

Over the years (a lot of them!), I have been involved in projects of which some have succeeded tremendously well, some that have fallen flat on their face, and others that limped along, with peaks and troughs of equal parts of stress and plain sailing. I have found in general that when we have a "lessons learned" at the end of a project, and bring these lessons forward to new developments, our success rate climbs, and stress levels and the number of late nights spent fighting fires lowers. So this article is a light read, a collection of things to remember and think about when starting a project - things that may seem obvious, but deserve a place in your mental or project checklist. They are questions that if not asked, can lead to you backing yourself into a corner technically or operationally a while down the road when your project gets into production (or can't, because you didn't look far enough ahead...). This is only the tip of the iceberg and a starting point. I will add more topics as they comes to mind. I also look forward to you all adding comments that we can bring into the article!

Platforms and Operating Systems

This one may seem very obvious, but it has some gotchas. You may be targeting the Windows platform, but what versions do you support? .. depending on what you support may restrict your use of technology. For example, as of the date of this article, Windows XP support by Microsoft has generally stopped (or at least is dying a very slow death), yet it still has a very high installed user-base. If you choose to support running your code on XP, be aware that it will not run any technologies that require .NET version 4.5 for example. In addition to running on a particular platform, you also need to consider the platforms that are accessing your system as they may not "play nice" together and bring some unwanted pain.

Users and Their Data

Ahhh, users! Those dreaded creatures that consume the fruits of our labour.... I carried out some research a number of years ago and came to the conclusion that most applications would benefit from being designed first for fringe users (such as those with low sight ability). Apart from ensuring you are compliant with the laws on accessibility, research has shown that the fundamentals of design that you need to do for the less abled helps focus design and make it cleaner and simpler to use for all users.

While we are talking about users, what kind of volume of them are you expecting, to start, in 12 months, in 48 months? This question should have a deep impact on any area of your system that requires a swift response, and involves storage data or quick throughput of data.

Beware Hidden Users

(This section given by reader Jalapeno Bob - a very good point that needs to be made - cheers!)
With any process, there are often what I call "hidden users." Part of their job is to take a small subset of the system's output, massage it and then send it somewhere else. Their tools may be paper and pencil, as in copy a few values, average them over a week, copy them into a state form and mail it either weekly or monthly. Because these users are not the daily, "main path" users, management often forgets to include them in the list of uses and users given to system developers.

When management shows you a sample output with a column crossed out saying "We don't need this column any more.", be especially wary. In the previous system, that column was placed there for a reason. While it may be true that the column is no longer used, the odds are that some legacy process still uses it. Ask lots of questions about "obsolete" data being dropped with your brandy-new product. If you do eliminate a data output, be prepared to quickly add it back when the hidden users start to object.

Data Onboarding

There are few systems these days that don't involve interaction with other systems, and it is commonplace in "line of business" applications to migrate data from one application to another. When planning to bring users live therefore, we need to ask at what point/when, their historical data needs to be moved into the system, and how to get it in. This not only has implications for overall data storage, but also the efficiency of your data onboarding system itself. When you bring in data, are there dependencies that the data expects to be present? ... will a query fail to return data if this default expected data is not present? Another question to ask about data onboarding is the frequency of same. Is the data you are bringing in a once off job or something then needs to happen on a regular basis? ... if regular, then you need to consider how data coming in should be gathered, for example, do you need to put together a procedure for only onboarding incremental data.... questions, questions, questions....

Data Volume

When systems are designed, often only a cursory nod is given to the scalability of the architecture and load testing. if you expect any kind of volume, you must put together a proper strategy to load test - not only the data, but also the querying of data. You may find that the beautifully uber normalised database you are so proud of is as slow as treacle running uphill due to too many joins and inner selects. You need to plan ahead and de-normalise or pre-stage data where necessary. While it's a great accolade to the business that you encounter scaling problems, it's a far better accolade to you that you designed and tested for it properly in the first place.

Data I/O

Onboarding data is great, but how many of us think of off-boarding? (no, it's not something you do in a heavy snow-fall....). under data protection and privacy legislation (in the EU and many other locations), it is a requirement that you must facilitate the export of any data relating to a user in a reasonably readable format. If you don't know what data you have on users, then it's hard to export it. We should plan from the ground up therefore that when methods are being written to get data into the system, we have corresponding data out functionality as well. Remember, it's easiest to do these things when they are designed, than latch them on afterwards when the system has grown out of control and the people who originally designed it and can answer questions are long gone.

Testing

When developers test their own work, that testing is based on what they themselves know and their tacit knowledge of how things work. For this reason amongst others, it is important to get non developers to test work. Sure, the developer should not release anything for test unless basic sanity checks have been carried out, but unless you are selling into the develop community, it is critical that you get people with no preconceived ideas to walk through designs and prototypes with you.

The UI of course is incredibly important, but so too is data and its validation. When constructing sample data, you need to ask some questions: is the data relevant? .. there is no point in testing validation for a US post-code format if the application is only deploying in the UK where the format will be different. Is the data date-bound? ... if your home page for example shows a dashboard that contains a summary of the last thirty days sales figures, but your sample data was collected six months ago, you may be scratching your head as to why the dashboard widget is empty. This is even more important when you are chaining business logic together and comparing data over time with historic data dependencies. In cases like these, it is good practice to put together a sample data generating harness that can generate accurate sample data based off a central pivot date given as a parameter.

Going back to data volume for a minute, here is a simple rule of thumb. If data retrieval takes more than two seconds, then that's too long to be used as a live data retrieval process and you need to redesign.

Technologies

When deciding on what technologies to use in a solution, assuming of course you have evaluated its suitability, you also need to consider the quality of the technology, its maturity and also the organisation supplying the technology. If the tech is open source, then you can examine the internals yourself and make sure it's solid. In the case of open source, the core development team and surrounding community are the organisation. Find out how long the organisation is around, what their long term plans are for the technology, what dependencies the technology has and if it conflicts with other technology or constraints you have. This might be technology focused such as requires Twitter Bootstrap version 2.x, or could be a target user organisation constraint such as "no Java applets allowed...".

Reinventing the Wheel

Many times, we may be inclined to reinvent the wheel just because what's out there doesn't do *exactly* what we need. If you are under time pressure (who isn't!), or are working to a budget, you might be better improving someone else's wheel instead. In a web example, this might mean borrowing someone else's CSS, using it as a base and tweaking it to meet your particular requirements. In a more programming orientated sense (what is code?! ... it gets quite blurred at times!), it may be noticing a pattern or method of doing something in one technology, and leveraging that to build something else on top. There are many occasions where I have taken multiple pieces of different technologies and plugged them all together to get a particular result - all the time re-using, re-shaping, and not re-inventing. On the other hand, if there's a genuine need for a better mouse-trap, then go build it if the business/use case justifies it!

Summary

While this is only the tip of the iceberg, the message is clear - don't jump in without thinking long and hard about technology implications, user requirements, scalability of system and data, etc. Draw on the wisdom of your team and the domain knowledge of your customers. Learn from your mistakes, and bring forward lessons learned to each new project you approach.

History

  • 25/12/2013 - Version 1 published
  • 06/12/2016 - Updated with Jalapeno Bob's great addition

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer SocialVoice.AI
Ireland Ireland
Allen is CTO of SocialVoice (https://www.socialvoice.ai), where his company analyses video data at scale and gives Global Brands Knowledge, Insights and Actions never seen before! Allen is a chartered engineer, a Fellow of the British Computing Society, a Microsoft mvp and Regional Director, and C-Sharp Corner Community Adviser and MVP. His core technology interests are BigData, IoT and Machine Learning.

When not chained to his desk he can be found fixing broken things, playing music very badly or trying to shape things out of wood. He currently completing a PhD in AI and is also a ball throwing slave for his dogs.

Comments and Discussions

 
GeneralBeware the Hidden Users Pin
Jalapeno Bob11-Oct-16 6:25
professionalJalapeno Bob11-Oct-16 6:25 
GeneralRe: Beware the Hidden Users Pin
DataBytzAI6-Dec-16 6:16
professionalDataBytzAI6-Dec-16 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.