Discussing the article: "From Basic to Intermediate: Definitions (I)"

 

Check out the new article: From Basic to Intermediate: Definitions (I).

In this article we will do things that many will find strange and completely out of context, but which, if used correctly, will make your learning much more fun and interesting: we will be able to build quite interesting things based on what is shown here. This will allow you to better understand the syntax of the MQL5 language. The materials provided here are for educational purposes only. It should not be considered in any way as a final application. Its purpose is not to explore the concepts presented.

In the previous article “From Basic to Intermediate: Recursion“ we explained what recursion is and how you can use it as a very useful programming technique in various scenarios. It allows us to create mechanisms and implementations in a simple and easy way. Although, we must take into account the possibility that the code will sometimes run slower, therefore patience should be shown in such cases.

But generally, recursion helps us and makes our lives much easier. Thus, it should be a subject of learning for those who want to become an experienced specialist (or at least have a good level of understanding the programming related things, in general).

This article considers the subject already covered before: the use of definitions, both to build macros and to declare as well as more finely control certain parts that may be implemented by us or by other programmers whose code you're interested in and which you want to amend in a controlled way to achieve certain goals.


Author: CODE X