Macros, macros, macros...
I finished up a bunch of stuff and then decided to go find all the reasons why it's "bad". I already knew what I was doing was not optimal but, I didn't know why... didn't really care. It took some searching cause this shit is so poorly documented but, I finally found some Google group talking about it. In short, using reflection is bad because of dynamic vs static targets. In order to make one code harmonious for both target types involves doing a bunch of bloated background stuff and, as the use of reflection becomes more frequent it can actually cause performance issues (hooray to me for making it as easy as possible to have terrible performance :pats self on back: )
The solution is macros. What is a macro, you may ask... Well, mostly, I have little to no real idea. I could show you one but, I haven't had a chance to really pick it apart yet. Some in the HaXe community refer to it as "dark magic" so, it's safe to assume I will be spinning my wheels and playing with lots of hornets while I master it. The good news is, this is the final frontier for me. I went over the HaXe docs (skim style) last night and macros are the only thing left that I couldn't write an essay on.
This means I am just a short time away from taking this education I have given myself and using it to properly make useful things. As always, I have no regrets regarding any time I have wasted working on things that aren't optimal. I didn't teach myself 20 some-odd languages by worrying about best practices and optimizations right out of the starting gates. I learned these languages by writing tons of terrible code and then realizing why it is terrible...
Need to make an order... Be back in a bit to finish my thoughts.
I finished up a bunch of stuff and then decided to go find all the reasons why it's "bad". I already knew what I was doing was not optimal but, I didn't know why... didn't really care. It took some searching cause this shit is so poorly documented but, I finally found some Google group talking about it. In short, using reflection is bad because of dynamic vs static targets. In order to make one code harmonious for both target types involves doing a bunch of bloated background stuff and, as the use of reflection becomes more frequent it can actually cause performance issues (hooray to me for making it as easy as possible to have terrible performance :pats self on back: )
The solution is macros. What is a macro, you may ask... Well, mostly, I have little to no real idea. I could show you one but, I haven't had a chance to really pick it apart yet. Some in the HaXe community refer to it as "dark magic" so, it's safe to assume I will be spinning my wheels and playing with lots of hornets while I master it. The good news is, this is the final frontier for me. I went over the HaXe docs (skim style) last night and macros are the only thing left that I couldn't write an essay on.
This means I am just a short time away from taking this education I have given myself and using it to properly make useful things. As always, I have no regrets regarding any time I have wasted working on things that aren't optimal. I didn't teach myself 20 some-odd languages by worrying about best practices and optimizations right out of the starting gates. I learned these languages by writing tons of terrible code and then realizing why it is terrible...
Need to make an order... Be back in a bit to finish my thoughts.
Comment