Discussing the article: "From Novice to Expert: Collaborative Debugging in MQL5"

 

Check out the new article: From Novice to Expert: Collaborative Debugging in MQL5.

Problem-solving can establish a concise routine for mastering complex skills, such as programming in MQL5. This approach allows you to concentrate on solving problems while simultaneously developing your skills. The more problems you tackle, the more advanced expertise is transferred to your brain. Personally, I believe that debugging is the most effective way to master programming. Today, we will walk through the code-cleaning process and discuss the best techniques for transforming a messy program into a clean, functional one. Read through this article and uncover valuable insights.

Whether it’s in neural network systems, artificial intelligence, or other related software disciplines, debugging is essential. I believe that the most valuable skill you can develop is the ability to solve problems as they arise, and this skill becomes an integral part of you for future challenges of a similar nature. Thus, problem-solving can build a strong skill set, gradually transforming someone into an expert.

Collaborative Debugging

Collaborative Debugging

When I committed to writing this article, I was working on a project in which I encountered several errors while trying to compile the code. At times, the debugger would present me with 50 error lines to address. Through trial and error, I developed a routine for tackling bugs that allows me to resolve issues in just a few minutes, if not seconds, and get the program running smoothly.

Author: Clemence Benjamin

 
Hello. 

Well written article but on these complex projects, the debugger, print and how are not always enough. 

We need to develop more powerful tools so that we don't stay too long
 

Good article for beginners, a bit verbose in my opinion. Some remarks :

  • You should clearly say that when you have a list of errors, you ALWAYS need to start checking the first one at the top of the list. This is the most efficient way to deal with errors and to avoid wasting time with secondary errors.
  • You should provide the "buggy" version of the "D1_PriceMarker.mq5", so people will be able to practice themselves following your article.
    ObjectSetInteger(0, labelName, OBJPROP_YDISTANCE, price); // Position label at the price level

  • This is clearly a logical error, an 'Y_DISTANCE' is an integer value (pixel position on the screen) and you provided a double 'price'.

Engaging in discussions about coding challenges is a fantastic way to learn from other experts.

  • I barely have seen you active on the forum, either to ask or answer questions.

Collaborative Debugging in MQL5

  • I don't get it. Where is the "collaborative part" ? Did I missed something.
 
Gerard Willia G J B M Dinh Sy #:
Hello. 

Well written article but on these complex projects, the debugger, print and how are not always enough. 

We need to develop more powerful tools so that we don't stay too long


Thank you,  Gerard Willia G J B M Dinh Sy for your insight. This projects approach is a fantastic way to collaborate, although it hasn't gained popularity yet.
Gerard Willia G J B M Dinh Sy
Gerard Willia G J B M Dinh Sy
  • 2024.09.11
  • www.mql5.com
Trader's profile
 
Alain Verleyen #:

Good article for beginners, a bit verbose in my opinion. Some remarks :

  • You should clearly say that when you have a list of errors, you ALWAYS need to start checking the first one at the top of the list. This is the most efficient way to deal with errors and to avoid wasting time with secondary errors.
  • You should provide the "buggy" version of the "D1_PriceMarker.mq5", so people will be able to practice themselves following your article.

  • This is clearly a logical error, an 'Y_DISTANCE' is an integer value (pixel position on the screen) and you provided a double 'price'.
  • I barely have seen you active on the forum, either to ask or answer questions.
  • I don't get it. Where is the "collaborative part" ? Did I missed something.

Thank you for your feedback, Alain Verleyen! I genuinely appreciate your insights, particularly as a moderator, and I agree that clarity is essential, especially for beginners.

  1. You're absolutely right about the importance of addressing the first error on the list. 
  2.  That's an excellent suggestion! While I didn't include the source file in the article, readers can find and copy the "buggy" version of the  "D1_PriceMarker.mq5" at this link.
  3.  Thank you for pointing out the logical error regarding Y_DISTANCE
  4. Regarding the collaborative aspect, my intention was to encourage readers to engage with each other in the comments or on the forum to share their own debugging experiences and solutions. I will work on improving my visibility on the forum.

I truly value your constructive criticism and engagement! Discussions like this are vital for our collective growth and improvement. 

From Novice to Expert: Collaborative Debugging in MQL5
From Novice to Expert: Collaborative Debugging in MQL5
  • www.mql5.com
Problem-solving can establish a concise routine for mastering complex skills, such as programming in MQL5. This approach allows you to concentrate on solving problems while simultaneously developing your skills. The more problems you tackle, the more advanced expertise is transferred to your brain. Personally, I believe that debugging is the most effective way to master programming. Today, we will walk through the code-cleaning process and discuss the best techniques for transforming a messy program into a clean, functional one. Read through this article and uncover valuable insights.
 

Good morning

What algo traders may not realize.

This is they will spend very little time coding miracle indicators or prodigiously profitable EAs.

The reality is that they will mainly spend time correcting, improving their codes and therefore debugging.

If they don't have powerful tools, they will quickly spend days, which would already be good, looking for their code errors.

 
Hi all what tool do you think is powerful ?
 
Bazarbay83 Jumaev #:
Hi all what instrument do you consider powerful ?

Drum kit.

 
Bazarbay83 Jumaev # Hello everyone, which tool do you think is powerful?

Hello, welcome to the MQL5 forum! Regarding your question, recommendations of market products are not allowed. You'll have to do your own research. Good luck! 😊