Should metatrader incorporate functional programming?

To add comments, please log in or register
Mrluck07
426
Mrluck07  
First we got imperative, later we get OOP, but the new thing today is functional programming, some say you avoid lots of bugs, and it's very good with large projects, so my question: in this trading field, functional programming can be useful? thanks
Marco vd Heijden
Moderator
8445
Marco vd Heijden  

What difference does it make how you code it?

It needs to be profitable and that is the only requirement.

I don't care if it's oop or spaghetti, or anything else, as long as it does what it was designed for.  

Focus on what matters.

Indanguang Samrow Panmei
343
Indanguang Samrow Panmei  
from a traders perspective,its very true.whethr its c or b or d language,a trader just needs a profitable indicator or EAs
Mrluck07
426
Mrluck07  
Marco vd Heijden:

What difference does it make how you code it?

It needs to be profitable and that is the only requirement.

I don't care if it's oop or spaghetti, or anything else, as long as it does what it was designed for.  

Focus on what matters.

There is a lot of hate going on about OO today, if you use more than 3 layers inside an object, it starts to become exponentially more complicated, you have several multiple states, and the glue between objects become hard to code, in functional programming you can have a more reusable and modular code, even java now is adopting this model. I saw in a page:  "OOP is when you can reuse the bullet after shooting yourself into the knee". In a functional programming language the states are not shared, so each function is independent, and that makes easier to debug. In my opinion the hardest part of coding is debugging

Marco vd Heijden
Moderator
8445
Marco vd Heijden  
Indanguang Samrow Panmei:
from a traders perspective,its very true.whethr its c or b or d language,a trader just needs a profitable indicator or EAs

I am not sure if we should view this from a traders perspective.

Maybe Mr.Luck just want's to become a good programmer, and maybe he does not have the intention to make profits what so ever.

To add comments, please log in or register