Linkers::X - Let's code in C++ , Daytrade & Daydream :)

You're still missing the point. You're stuck in your HFT world, which is fine. You have spent the last X years obsessing about performance, but not about design, so of course you can't understand why I say that I wouldn't have a sortedQueue.

Next to me is my friend who does't know any C++ or any other programming language.
I ask her to read my code snippets and tell me line by line what the code snippet does.
She has got no problem to do that.
I fully agree with you, about my sometimes silly OOP design, since my brain is still in the 80's and __ASM and char* buffer;
 
Last edited:
Next to me is my friend who does't know any C++ or any other programming language.
I ask her to read my code snippets and tell me line by line what the code snippet does.
She has got no problem to do that.
I fully agree with you, about my sometimes silly OOP design, since my brain is still in the 80's and __ASM and char* buffer;

Code:
# this code will compile and execute on MQL4, 5 NinjaScript, cAlgo, ACSIL SierraChart

#include<LinkersX.h>

//# https://stocktwits.com/LinkersX

xStockTwits tweet1; xString text1;
tweet1.username("LinkersX");
tweet1.password("123456789");

text1("X->Hello StockTwits. FOMC replay");
//tweet text1 and replay1 object as replaying HTML5 chart!!!!

tweet1.stockTwits(text1, replay1);
 
Next to me is my friend who does't know any C++ or any other programming language.
I ask her to read my code snippets and tell me line by line what the code snippet does.
She has got no problem to do that.
I fully agree with you, about my sometimes silly OOP design, since my brain is still in the 80's and __ASM and char* buffer;

To be clear, I'm not talking about OOP. OOP is just a way to implement a design, one that I don't really agree with as I prefer a more functional, stateless style.

I'm not sure what the anecdote of your non-technical friend reading code would be. Does she have some special monopoly on reading code that I'm unaware of? Do you want non-technical people to use your system? OK, then yes, I agree that it works for that use case.
 
To be clear, I'm not talking about OOP. OOP is just a way to implement a design, one that I don't really agree with as I prefer a more functional, stateless style.

I'm not sure what the anecdote of your non-technical friend reading code would be. Does she have some special monopoly on reading code that I'm unaware of? Do you want non-technical people to use your system? OK, then yes, I agree that it works for that use case.

Got Iterators and custom Allocator for you to enjoy :)

 
Last edited:
That’s where I think I fail most of the time. I look at good code, most things are wicked short and concise. My code is a mess of loops, ifs and cases. Is that a design failure or coding style failure?

PS. There is a whole template game that true UHF people play to reduce WtW latency, would be interesting to get your take on it

Here's another way to think about it: you know what beautiful math looks like vs gross engineering math. Beautiful code gives you the same feeling. There are a few great books that can help you along these lines:

1. http://shop.oreilly.com/product/9780596517984.do
2. Volumes 1 and 2 of AOSA http://www.aosabook.org/en/index.html - I haven't read the 500 lines book, but I bet it has some good code in it.
 
To be clear, I'm not talking about OOP. OOP is just a way to implement a design, one that I don't really agree with as I prefer a more functional, stateless style.

I'm not sure what the anecdote of your non-technical friend reading code would be. Does she have some special monopoly on reading code that I'm unaware of? Do you want non-technical people to use your system? OK, then yes, I agree that it works for that use case.
I remember when I was learning to code hearing that if I ever ran into someone who insisted OOP is bad that we should instead be doing fancy smancy stuff only to run far and fast. BTW, how long has it taken you to get a strategy to the market? Sounds like another week? I can use my commercial stuff and get an idea to the market within a day.
 
I remember when I was learning to code hearing that if I ever ran into someone who insisted OOP is bad that we should instead be doing fancy smancy stuff only to run far and fast. BTW, how long has it taken you to get a strategy to the market? Sounds like another week? I can use my commercial stuff and get an idea to the market within a day.

I didn't say OOP is bad, I just don't agree with it as practised colloquially. As with everything, too much of anything is not good. Taking functional programming to the extreme is not useful generally, but the concepts, when intermixed with OOP and other paradigms can be very powerful, hence why C++ is such a great/terrible language.

My strategy is paper trading right now, not sure what your point is... It just disconnects occasionally so I have to watch it.
 
I didn't say OOP is bad, I just don't agree with it as practised colloquially. As with everything, too much of anything is not good. Taking functional programming to the extreme is not useful generally, but the concepts, when intermixed with OOP and other paradigms can be very powerful, hence why C++ is such a great/terrible language.

My strategy is paper trading right now, not sure what your point is... It just disconnects occasionally so I have to watch it.

did you get the bigger picture here?
 
Back
Top