Manufacturing software development: Bigger is not always better

Manufacturing and IT insight: More lines of code in a software development project do not mean that a project will be successful; there is more to effective software development than just a sophisticated programming package. Software tools without proper programming training for the right people only lead to major headaches down the road for everyone.

04/07/2016


One of the many advantages of participating in professional organizations is the opportunity to learn about successful and unsuccessful automation programming projects. A recent project proved the old saying, "bigger is not always better." While bigger may be better for bank accounts and dessert servings, it is definitely not better when applied to programming, system designs, and control designs. More lines of code in a software program do not necessarily equate to better software. 

Fewer lines of code

The project involved fixing a custom report package that had been built by a company control engineer. The problem was that the engineer was not a programmer and had never received any formal training in software design, software engineering, or programming.

There were no established procedures for software development and no policies for design reviews. The result was a brute force approach, which used a separate function for each specific month and year and excessive code duplication. There was no documentation on the developed software. There were no comments in the code and no header descriptions on any of the functions. The report failed as soon as an unprogrammed date was reached, and no one remembered how the software was intended to work. A complete redesign and rewrite fixed the problem and reduced the number of lines of code from almost 10,000 lines to less than two hundred and eliminated more than 100 unnecessary functions in the process.

The lesson that should be learned from this example was that a better process was needed to develop software. No one would expect that giving a chemical or electrical engineer a 3D modeling tool would give him the skills needed to become an automotive designer and develop a new car design. However, too many managers and engineers think that giving chemical, electrical, or mechanical engineers a programming tool will make them qualified to develop professional software. There is more to effective software development than just a sophisticated programming package. Tools without training are just engineers' toys. Using tools without effective policies and procedures are just hobbies.

A key point to remember is that the ineffective design and development of software is a people problem, not a technology problem. Improving technology allows us to build software faster, but that doesn't necessarily mean better. Without training, knowledge of the underlying solution space, and some measure of experience, technology tools are often wasted. 

Four lessons of software development

The key lessons that should be learned in developing safe, supportable, and robust manufacturing software are: 1) provide focused training on new tools or provide the time to experiment and learn the environment before using it in a production solution; 2) develop comprehensive policies for the review of all software designs before they are committed to code; 3) write procedures on how to conduct design reviews; and 4) write effective procedures for how to conduct code reviews. The purpose of the design review procedures is to uncover ineffective algorithms, not to judge the designers. In his book Creativity, Inc. Ed Catmull, president of Pixar Animation, discusses the creative process and how it is iterative, and our first, second, and even later attempts are often in the wrong direction. An independent viewpoint often points out the flaws that we cannot see. The purpose of the code reviews is to identify best practice implementation weaknesses. Writers of code, just like writers of books, screenplays, and columns in trade magazines, need editors to review and correct mistakes that the authors cannot see.

Dennis Brandl is a founder and chief consultant at BR&L Consulting Inc., specializing in helping companies use Manufacturing IT to improve production, laboratory, and logistics processes. Courtesy: BR&L Consulting Inc.The development of safe and reliable manufacturing software, and especially any control system software, requires that there is a high level of maturity in training, policies, procedures, and tools. When combined with good engineers, these provide the winning combination for building future successes.

Dennis Brandl is president of BR&L Consulting in Cary, N.C., www.brlconsulting.com. His firm focuses on manufacturing IT. Contact him at dbrandl@brlconsulting.com. Edited by Chris Vavra, production editor, Control Engineering, CFE Media, cvavra@cfemedia.com.

MORE ADVICE

Key concepts

Establish procedures for software development and create policies for design reviews.

Ineffective software design is not a technology issue; it's a people issue.

Mature policies and a strong training program are vital for developing safe and reliable manufacturing software.

Consider this

What best practices and training policies can companies use to cut down on potential software development mistakes?

ONLINE extra

See other Manufacturing IT articles and additional stories by Brandl linked below.



The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Maximize ROI with integrated control system approach; Microcontrollers vs. PLCs; Power quality; Accelerate and rewire IIoT; Traits for excellent engineers
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how plant engineers and subject matter experts (SME) need support for time series data and its many challenges.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Maximize ROI with integrated control system approach; Microcontrollers vs. PLCs; Power quality; Accelerate and rewire IIoT; Traits for excellent engineers
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how plant engineers and subject matter experts (SME) need support for time series data and its many challenges.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Maximize ROI with integrated control system approach; Microcontrollers vs. PLCs; Power quality; Accelerate and rewire IIoT; Traits for excellent engineers
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how plant engineers and subject matter experts (SME) need support for time series data and its many challenges.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
click me