Design Con 2015
Breaking News
Comments
Newest First | Oldest First | Threaded View
old account Frank Eory
User Rank
Rookie
re: Engineers believe in coding standards but fail to effectively enforce them
old account Frank Eory   2/8/2011 5:53:39 PM
NO RATINGS
The same issues apply to writing RTL code for hardware design. As others have said, when you are writing code, you're focused on getting the functionality you need and meeting the schedule. Most engineers will adhere to the coding standards they believe are important, and will comment their code appropriately so that they themselves can maintain it and re-use it on a later project. Total compliance with a set of standards designed to enable re-use by other engineers who were not part of the original development is not usually a luxury that the tight schedule affords us. I always run the lint checker on all the RTL, but the fundamental problem is the "trivial rules" that FergusB mentioned. It takes only minutes to run the linting tool, but can take hours to filter through the reports it generates, to weed out the coding standard violations that really don't matter -- which is typically at least 90% of them!

selinz
User Rank
Manager
re: Engineers believe in coding standards but fail to effectively enforce them
selinz   2/8/2011 4:36:51 PM
NO RATINGS
KB, you hit in on the head. When you are creating code, you are focussed on the task of making things work. However, a good editor always helps. It's not burdensome to format code as you are writing it. Writing detailed text comments describing variables and procedures, as well as error processing is what seems most burdensome.

daleste
User Rank
CEO
re: Engineers believe in coding standards but fail to effectively enforce them
daleste   2/8/2011 5:48:05 AM
NO RATINGS
Are there any easy ways to have programs that analyze the code to quickly help the engineers follow the standards? I have always tried to create my own tools to help me avoid errors in my code. I first learned this with the unix pretty command to help format my C code.

KB3001
User Rank
CEO
re: Engineers believe in coding standards but fail to effectively enforce them
KB3001   2/7/2011 10:04:48 PM
NO RATINGS
I agree, it's parly a return on investment issue. Time to market pressure is also a major factor in Engineers not adhering to coding standards.

FergusB
User Rank
Rookie
re: Engineers believe in coding standards but fail to effectively enforce them
FergusB   2/7/2011 5:51:23 PM
NO RATINGS
AS CTO of Programming Research, I agree that the majority favour good coding practices in principle but suffer from severe implementation hurdles. Here's two things we focus on at PRL: a) avoid trivial rules and only focus on the really important *language-based* issues. b) treat (the majority of) legacy code more leniently than new code. Do this right down to code line level so that what you're adding or changing is made perfect. We call this "baseline analysis".

Robotics Developer
User Rank
Rookie
re: Engineers believe in coding standards but fail to effectively enforce them
Robotics Developer   2/7/2011 5:15:27 AM
NO RATINGS
Unless and until companies see the benefit of the coding standard checking tools they will not implement their use. It is a simple dollars/cents (or euros) matter, tools cost money and running them takes time (also money)and it seems that the value is not seen in tool based code standards checking. Is there a study that can show the cost savings (not from the tool vendor but an independent verification source)?

daleste
User Rank
CEO
re: Engineers believe in coding standards but fail to effectively enforce them
daleste   2/6/2011 9:28:16 PM
NO RATINGS
I agree that most software engineers believe that standards do help the quality and maintainability of the code. It is up to the company to put the proceedures in place to enforce the standards that they want. The problem is that most software projects do not have the time or funding to add this step. The manual checks do not help much because they tend to be glossed over without an in depth review.



Top Comments of the Week
Flash Poll
Like Us on Facebook

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
EE Life
Frankenstein's Fix, Teardowns, Sideshows, Design Contests, Reader Content & More
Carlos Bueno

Adventures in Userland
Carlos Bueno
Post a comment
Editor’s Note: Excerpted from Lauren Ipsum: A story about computer science and other improbable things, author Carlos Bueno introduces us to Lauren and her adventures in ...

Max Maxfield

Tired Old iPad 2 vs. Shiny New iPad Air 2
Max Maxfield
8 comments
I remember when the first iPad came out deep in the mists of time we used to call 2010. Actually, that's only four years ago, but it seems like a lifetime away -- I mean; can you remember ...

Martin Rowe

Make This Engineering Museum a Reality
Martin Rowe
Post a comment
Vincent Valentine is a man on a mission. He wants to make the first house to ever have a telephone into a telephone museum. Without help, it may not happen.

Rich Quinnell

Making the Grade in Industrial Design
Rich Quinnell
16 comments
As every developer knows, there are the paper specifications for a product design, and then there are the real requirements. The paper specs are dry, bland, and rigidly numeric, making ...

Special Video Section
The LT8640 is a 42V, 5A synchronous step-down regulator ...
The LTC2000 high-speed DAC has low noise and excellent ...
How do you protect the load and ensure output continues to ...
General-purpose DACs have applications in instrumentation, ...
Linear Technology demonstrates its latest measurement ...
10:29
Demos from Maxim Integrated at Electronica 2014 show ...
Bosch CEO Stefan Finkbeiner shows off latest combo and ...
STMicroelectronics demoed this simple gesture control ...
Keysight shows you what signals lurk in real-time at 510MHz ...
TE Connectivity's clear-plastic, full-size model car shows ...
Why culture makes Linear Tech a winner.
Recently formed Architects of Modern Power consortium ...
Specially modified Corvette C7 Stingray responds to ex Indy ...
Avago’s ACPL-K30T is the first solid-state driver qualified ...
NXP launches its line of multi-gate, multifunction, ...
Doug Bailey, VP of marketing at Power Integrations, gives a ...
See how to ease software bring-up with DesignWare IP ...
DesignWare IP Prototyping Kits enable fast software ...
This video explores the LT3086, a new member of our LDO+ ...
In today’s modern electronic systems, the need for power ...