[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 8
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Compactness impairs readability. To be fair, Roman's version isn't exactly good either, even if you ignore the logic.
What's the point of saving lines?
It's all a matter of taste of every single individual and deciding what is more convenient and what is not is empty...
My main thing is to have every line in its usual place and no more... I think the rest of us should do the same, but at our own discretion.
There are no colour and taste, as you know.
but to design like this... A coder's nightmare.
Yeah... Alexey, I can imagine what the 807 line EA I just gave to a customer would look like if it was written in Roman's style ... :))))
but to design like this... A coder's nightmare.
For me - such a design is normal. This is not a custom EA, but the answer to the question, and instead of OrderDelete() - you could have written it in words - you put here to delete an order and call the function for handling possible errors. The person is waiting, I opened my code, removed all "unnecessary", without paying attention to the presence or absence of spaces after the changes and gave him a working version for his further connection to his EA according to his trading conditions. I think everything is within the norm, IMHO.
Here is the same plot - the original - to the question of a bad dream.
There is no such thing as taste or colour.
We are all so different, but we are still together. ))) We're all in the same cosmic pot. )))
We're all so different, but we're still together. ))) We're in the same cosmic pot. )))
Since we're in the mood (I write code the way I want/can), I'm going to cut the last cucumber:
I write all "executive" and "legislative" bodies as separate (tried many times) functions.
Since the functions and their abilities are well known to me, I put them far away somewhere at the end of the code.
In the start() function I only prescribe what should trigger what.
I read only the start(), and everything becomes clear at once.
It's convenient.
Since we're in the mood (I write code the way I want/can), I'm going to cut the last cucumber:
I write all "executive" and "legislative" bodies as separate (tried many times) functions.
Since the functions and their abilities are well known to me, I put them far away somewhere at the end of the code.
In the start() function I only prescribe what should trigger what.
I read only the start(), and everything becomes clear at once.
It's convenient.
Don't you get errors when compiling code, because you first write a function for execution, and then somewhere at the end you write its content, of course I don't use functions, I mostly use comments, but with variables this problem is present
Isn't there an error when compiling code? You write the function to be executed first and then somewhere at the end write the content.
There cannot be any errors in this case.
When compiling, there may only be an indication/reminder that some function is not used.
In that case, I either turn a blind eye to it, or delete the unused function.
Don't you get errors when compiling code, because you first write a function for execution, and then somewhere at the end you write its content, of course I don't use functions, I mostly use comments, but with variables this problem is present
What is it? ))) Is it a joke or what? If so, it's a good one)).