₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,415 members, 8,421,818 topics. Date: Sunday, 07 June 2026 at 06:15 AM

Toggle theme

Programmers Need Better Debugging Ideas. Here's How To Handle Bugs. - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingProgrammers Need Better Debugging Ideas. Here's How To Handle Bugs. (1052 Views)

1 Reply

Programmers Need Better Debugging Ideas. Here's How To Handle Bugs. by classicdude1(op): 9:35pm On Sep 18, 2017
We all hate when we have to stay up all night or work for days just to find bugs in our code.

This is very annoying.�

So what's the best way to debug?

I talked to Patrick Triest, and he shared how he handles bugs to meet up deadlines.

The first is to avoid the “I’ll do the hacky solution now and fix it later” mentality.

It is always much more time-efficient to do it right the first time, since the hacky solutions rarely get fixed “later”, and are likely to cause major issues (in the form of bugs, poor performance, and developer productivity) down the road.

The second piece of advice is to utilize TDD (test-driven-development) or BDD (behavior-driven-development).

Including a test suite with your code (and ideally writing tests *before* writing the code itself), is a great way to catch bugs early on, and will provide some assurance that future code updates don’t break existing functionality.

The third piece of advice is “take your time”.

Make sure that you understand the code you are writing. Do thorough research instead of making guesses on the correct way to do something.

Don’t be afraid to take a few hours to refactor your code structure.

And the final tip is:

Always add comments.

An hour spent polishing your code today can save multiple days of work in six months.

What's your take?
1 Reply

Post Your Programming Projects Ideas HerePOC Of Bypassing Anti Debugging With Some Dirty Code I WroteDifferences Between Testing And Debugging In Programming Of Software Application234

not openAndroid Developer Neededョ[경주출장샵]『카톡FK74ㄴ』≫ KF19.NET 경주콜걸 경주출장만남 경주출장업소 경주출장안마 경주콜걸샵 경주콜걸후기 경주콜걸샵 경주오피