473,394 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to get colleagues to follow best practices?

So in my workplace, our current Web application is a monolithic mess. Database calls from the UI layer, so much duplication and just some down right horrible code, plus don't get me started on the lack of test coverage.

Now by no means am I a saint. I'm still very early in my career, but I've taken a keen interest in writing clean, readable and testable code, as I want to instill good habits on myself and also to help those who come after me and read/extend my code.

The problem I have is that I am so junior. My lead developer is very understanding and she's started to take a vested interest in writing cleaner code, but the other devs on the team don't seem to listen or follow best practices. I feel with being so junior the other devs won't listen to me and shrug me off sort of. I've been trying to lead by example by refactoring code, adding tests and mentioning in code reviews about certain improvements.

So what have you guys done in your workplace to improve the quality of code? Have you hosted meetings stating the importance and showed some of the steps to writing clean code? Kept mentioning improvements in code reviews? Adding some rules to the code base for test coverage/naming conventions etc?
Feb 27 '20 #1
2 2091
dev7060
636 Expert 512MB
I'm still very early in my career, but I've taken a keen interest in writing clean, readable and testable code, as I want to instill good habits on myself and also to help those who come after me and read/extend my code.
The problem I have is that I am so junior. My lead developer is very understanding and she's started to take a vested interest in writing cleaner code, but the other devs on the team don't seem to listen or follow best practices. I feel with being so junior the other devs won't listen to me and shrug me off sort of. I've been trying to lead by example by refactoring code, adding tests and mentioning in code reviews about certain improvements.
They probably might need a reason to make a change in their coding habits. Making a change in style that one has been following for long might prove to be a tough task sometimes, but it is possible.

Reach out to people in the upper hierarchy of the company with a proper proposal stating the pros of adopting best practices and how such can benefit the company in the long run etc.

Just my two cents as a college sophomore.
Feb 27 '20 #2
gits
5,390 Expert Mod 4TB
while i can understand the feelings when you see existing code and feel its 'old school' or not in a 'hip' architecture - i can understand the senior devs in your case as well. Let alone call something a 'monolithic mess' shows that you judge over it from your own point of view without honoring what these devs already built - and obviously is in production and helps to earn all the money the company can use to pay your salary.

I think you get my point. Of course there are some advantages in cleaner code, loose coupling of services, testable code and all that - but you never should go ahead and tell someone what they did is straight out a mess - and in many cases these days a lot of software is more then 'over-engineered' by trying to implement all the 'new' stuff because outright seeing it as 'better'. In a lot of cases i see young developers that only can build - but not run stuff.

To init a change - you have to tackle the mindset of the team - which includes your own mindset as well - since i think you just see everything technology driven. But the issue with that is - that it will not outright provide any value to anyone without proving such. While there are lots of academic reasons that can be told for nearly everything in a codebase to be done differently - the real life value depends on solving a concrete problem. If you can find such and show that it can be solved with what you want to suggest - then you might start to earn trust - and you might start noticing that people come and ask you things and even then you won't make the world better overnight. Start with the 'no go's - and show why they are such and how to improve that - but always avoid judging the developers for it - keep it on the code only. A team is humans - so they have to be treated as such.
Feb 28 '20 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

27
by: Stuart Gerchick | last post by:
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by Herb Sutter, Andrei Alexandrescu is now a month or so away from release. What is people's opinion on this...is it going to be a...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
0
by: Wiktor Zychla | last post by:
Hello, after several investigations around ASP.NET, I would like to ask about the best practices for building a secure database application. suppose I wish to use Forms authentication in...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
0
by: David Helgason | last post by:
I think those best practices threads are a treat to follow (might even consider archiving some of them in a sort of best-practices faq), so here's one more. In coding an game asset server I want...
0
by: Louis Aslett | last post by:
I hope this is the correct newsgroup for this query (if not please give me a pointer to where is best): I understand the theory of normalisation etc and am trying to follow best practices in the...
1
by: Pablo | last post by:
Hello all, Hope today finds you well. I'm looking to take my knowledge of best practices within the development lifecycle to the next level. Basically I want to follow industry recognised,...
2
by: Eddie | last post by:
I have a DataSet with relations and other constraints being populated from the backend (SQL Server 2005). I use DataSet.FillSchema to retrieve the table schema for each table in the dataset. I...
0
by: joshfink | last post by:
Hey guys, I am writing an application where I want to follow the best practices on error handling. This is what I have: I created an enum for various issues that could happen within the...
5
by: Serge Rielau | last post by:
The DB2 development team has compiled a set of best practices for DB2 for LUW which can be found here: http://www.ibm.com/developerworks/db2/bestpractices/ Feedback (completeness, too much, too...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.