5 Common Developer problems and how to overcome them

5 Common Developer problems and how to overcome them

1. Duplicate code throughout the program

If you write code which is duplicated in the program it can be hard to maintain and can introduce bugs. You may think you have made the change to the code, but then find out the same method was duplicated in a different file and wasn't updated when you made the change. Causing different results, essentially a bug. This is why you should avoid duplication as much as you can. You should put this method in a location which can be called by different sections of the program. When you need to change the method later on, you only need to change it in one place, rather than search for or miss the duplicates.

2. Introducing new bugs after making a change

When you make a change to a program, or you add a new feature, you run the risk of introducing new bugs into the program. You can help to prevent this by writing unit tests. You write unit tests in a separate project to test the methods and functions in your program are working correctly. A test is written to make sure that a method does what it is expected to do, or that a method is called when it is supposed to be. The more tests your write for your program, the higher percentage of code coverage you will have. You would aim for 100%, but not many large programs get to 100% code coverage.

3. No version control

You may have added new features or changed a part of the code and put that code live. Then when the site is live, a bug may be discovered or you may be asked to remove the feature and go back to the previous version. This can be a problem if you don't use version control.

What is version control?

Version control is the process of recording changes in a program so you can go back to specific versions later on. When you work for a company, you will most likely already be using version control, probably SVN or GIT. When you are working on personal projects, you may not be using version control, so you will suffer the problems caused by this. I suggest you start using GitHub for Open-source Software projects, or install Visual SVN Server and Tortoise SVN on your machine if it is a private project.

4. Reading or writing code which is difficult to understand

When writing code, you understand it yourself, but do you know whether others will understand it too? Will you understand it yourself if you come back to it 6 months later? This is why companies have coding standards. These are a set of guidelines, rules or best practices to follow so that everyone else will be able to understand the code, no matter which developer wrote it. This covers conventions for things like naming, commenting, indenting, line length, single line or multi line methods etc.

5. Estimating how long a task will take to complete

When working as a professional developer, you will be asked how long a task will take to complete. This is needed for quoting a price, scheduling in the work and setting expectations. It can be difficult to estimate how long something will take, you need to look back at similar tasks and see how long they took. If you didn't measure how long they took, you will need to break it down into smaller tasks and make an educated guess for each item. This is why it is good to measure how long tasks take to complete. You can use this to create more accurate estimates for future tasks.

For more posts like this, go to my blog codeshare.co.uk

David Fury

Available Summer 2025

8 å¹´

I'd add automated tests to the list, unit testing has become the new "it compiles"

Phil Atkinson

Lead Cloud Engineer at Santander UK with expertise in AWS

8 å¹´

4 very easy ones to solve, estimating isn't so straight forward

赞
回复

要查看或添加评论,请登录

Paul Seal的更多文章

  • How to make money from your blog

    How to make money from your blog

    About this post In this post I share 6 ways which you can make money from your blog. Watch the video 1.

    4 条评论
  • What is .NET Core? 7 Things you should know.

    What is .NET Core? 7 Things you should know.

    1. What is .

  • Podcast Interview about Umbraco. Paul Seal on The Cynical Developer

    Podcast Interview about Umbraco. Paul Seal on The Cynical Developer

    Look mum, I'm on the internet I love to listen to podcasts, especially technical ones, around development and…

    3 条评论
  • Developer Question - Passion or Profession?

    Developer Question - Passion or Profession?

    What was the question again? I want to hear from other developers to find out if they see their job as a…

    13 条评论
  • How to get a job as a Professional Developer

    How to get a job as a Professional Developer

    How can I become a professional developer? Becoming a professional developer isn't for everyone. Before you embark on…

    2 条评论
  • What is so good about Umbraco?

    What is so good about Umbraco?

    So go on then, tell me what's so good about it. In this video I show you what I love about Umbraco.

  • How to set up GA Event Tracking in 3 easy steps

    How to set up GA Event Tracking in 3 easy steps

    What is Google Analytics? Google Analytics (GA) is a free service from Google which is fantastic for tracking visitors…

    2 条评论
  • What does the term dogfooding mean?

    What does the term dogfooding mean?

    Not more software jargon There are certain terms in the software industry which you may hear for the first time and…

    6 条评论
  • No such thing as a full stack developer

    No such thing as a full stack developer

    I see and hear it all the time, talking about people being full stack developers. I don't believe they are.

    6 条评论
  • Free live chat application for your website - tawk.to

    Free live chat application for your website - tawk.to

    One of our clients requested a free live chat facility on the new website I'm building for them. I wasn't aware of any…

    1 条评论

社区洞察

其他会员也浏览了