Welcome!

Blog Feed Post

Top 5 bad coding practices that could wreck a software development project

For software developers today, it is always good to determine some bad coding practices so as not to make these mistakes repeatedly. In any coding job, the best practices are a set of informal rules that the software development
community learned which could boost program quality. Many computer programs remain useful for longer than the original authors have imagined, some up to forty years even or more. Thus, any rule or rules should facilitate initial development and improvement as well as maintenance by people, aside from the original makers.


1. Typos in the code are common and quite frustrating because they have nothing to do with the programming skills of the developer. Regardless, a misspelled name or function can wreak havoc on cryptogram. Moreover, they may be hard to see. A solution would be to work in a good IDE or integrated development environment or a programmer-centered text editor that could considerably minimize errors. Another way is to choose a function and variable names intentionally that could be easily spelled and so easy to spot if misspelled.

2. Sensitive content should be encrypted as it travels over a network. This is because the data is vulnerable to interception when it does. This is not only a great idea, but a regulatory requirement as well. This means that sending data in the clear is a big no. Writing one's encryption system is hard, so it is important to utilize a proven industry standard encryption library and use it in the correct manner.

3. One bad coding practice is the failure to modularize cryptogram. It is a good practice to write functions that do one thing and only that alone. This helps to keep them short and thus, easy to understand and maintain. Long functions have many possible paths through them, making them more difficult to test. A good rule of thumb will be that a single functionality should occupy no more than one screen. Another is it has ten or more 'if' statements or loops, then it would be too complicated and should be written again.

4. Formatting and indenting code makes it easier to understand at a glance and to see errors. If a developer fails to do this, then the harder it will be. Furthermore, it also makes it so much easier for others to maintain code, as it is presented consistently. When using an IDE which does not automatically format, it would be a good idea to run it through a beautifier such as Uncrustify. It will consistently format based on the rules configured.

5. It is tempting to hardcore a secret password and account so one can get into the system later. However, this is considered a bad practice. While it is very convenient, it is also highly convenient for those who access the source cipher. The true issues is that eventually, a hardcore password will be more widely known than it was intended to in the first place. This could be a huge security risk, not to mention a very inconvenient option. 

It is bad for a developer not to think ahead when it comes to developing software solutions. One should think things ahead, including what the project is for, how much the scale is expected, the number of users it will have and how fast it runs. The answers may not be available, but if a developer is not able to do estimates, then it's impossible to choose a suitable framework for developing an application that will meet the requirements.

Read the original blog entry...

More Stories By Hiren Y

Hiren is an IT business consultant and blogger. His expertise includes diverse technology platforms, like Microsoft, Java, PHP, SharePoint, Open Source, Big Data, BI, and Mobile.

Latest Stories
"We were founded in 2003 and the way we were founded was about good backup and good disaster recovery for our clients, and for the last 20 years we've been pretty consistent with that," noted Marc Malafronte, Territory Manager at StorageCraft, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"With Digital Experience Monitoring what used to be a simple visit to a web page has exploded into app on phones, data from social media feeds, competitive benchmarking - these are all components that are only available because of some type of digital asset," explained Leo Vasiliou, Director of Web Performance Engineering at Catchpoint Systems, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
FinTechs use the cloud to operate at the speed and scale of digital financial activity, but are often hindered by the complexity of managing security and compliance in the cloud. In his session at 20th Cloud Expo, Sesh Murthy, co-founder and CTO of Cloud Raxak, showed how proactive and automated cloud security enables FinTechs to leverage the cloud to achieve their business goals. Through business-driven cloud security, FinTechs can speed time-to-market, diminish risk and costs, maintain continu...
"DivvyCloud as a company set out to help customers automate solutions to the most common cloud problems," noted Jeremy Snyder, VP of Business Development at DivvyCloud, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
What sort of WebRTC based applications can we expect to see over the next year and beyond? One way to predict development trends is to see what sorts of applications startups are building. In his session at @ThingsExpo, Arin Sime, founder of WebRTC.ventures, discussed the current and likely future trends in WebRTC application development based on real requests for custom applications from real customers, as well as other public sources of information.
"At the keynote this morning we spoke about the value proposition of Nutanix, of having a DevOps culture and a mindset, and the business outcomes of achieving agility and scale, which everybody here is trying to accomplish," noted Mark Lavi, DevOps Solution Architect at Nutanix, in this SYS-CON.tv interview at @DevOpsSummit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
As businesses adopt functionalities in cloud computing, it’s imperative that IT operations consistently ensure cloud systems work correctly – all of the time, and to their best capabilities. In his session at @BigDataExpo, Bernd Harzog, CEO and founder of OpsDataStore, presented an industry answer to the common question, “Are you running IT operations as efficiently and as cost effectively as you need to?” He then expounded on the industry issues he frequently came up against as an analyst, and ...
Kubernetes is an open source system for automating deployment, scaling, and management of containerized applications. Kubernetes was originally built by Google, leveraging years of experience with managing container workloads, and is now a Cloud Native Compute Foundation (CNCF) project. Kubernetes has been widely adopted by the community, supported on all major public and private cloud providers, and is gaining rapid adoption in enterprises. However, Kubernetes may seem intimidating and complex ...
While the focus and objectives of IoT initiatives are many and diverse, they all share a few common attributes, and one of those is the network. Commonly, that network includes the Internet, over which there isn't any real control for performance and availability. Or is there? The current state of the art for Big Data analytics, as applied to network telemetry, offers new opportunities for improving and assuring operational integrity. In his session at @ThingsExpo, Jim Frey, Vice President of S...
"DX encompasses the continuing technology revolution, and is addressing society's most important issues throughout the entire $78 trillion 21st-century global economy," said Roger Strukhoff, Conference Chair. "DX World Expo has organized these issues along 10 tracks with more than 150 of the world's top speakers coming to Istanbul to help change the world."
"We focus on SAP workloads because they are among the most powerful but somewhat challenging workloads out there to take into public cloud," explained Swen Conrad, CEO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"As we've gone out into the public cloud we've seen that over time we may have lost a few things - we've lost control, we've given up cost to a certain extent, and then security, flexibility," explained Steve Conner, VP of Sales at Cloudistics,in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We provide IoT solutions. We provide the most compatible solutions for many applications. Our solutions are industry agnostic and also protocol agnostic," explained Richard Han, Head of Sales and Marketing and Engineering at Systena America, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We are focused on SAP running in the clouds, to make this super easy because we believe in the tremendous value of those powerful worlds - SAP and the cloud," explained Frank Stienhans, CTO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Your homes and cars can be automated and self-serviced. Why can't your storage? From simply asking questions to analyze and troubleshoot your infrastructure, to provisioning storage with snapshots, recovery and replication, your wildest sci-fi dream has come true. In his session at @DevOpsSummit at 20th Cloud Expo, Dan Florea, Director of Product Management at Tintri, provided a ChatOps demo where you can talk to your storage and manage it from anywhere, through Slack and similar services with...