I only seem to know two modes...
Posted: Fri Feb 01, 2013 8:47 pm
Spaghetti and over-engineered
I ran into a problem with my Excel -> VBA -> Python extractor, which are simply unsolvable, due to the wonky nature of VBA. It seems that using mixed type variant arrays as a poor man's struct and then trying to pass these things as parameters to functions; well, that does not work so well. Other parts of the VBA are rock solid and I see no reason to change them, but the exporter needs logic that is simply too complex for VBA to handle.
So I'm dumping the 1500 line exporter module and replacing it with c#. I've never written anything c# before, beyond building a ribbon in VSTO and triggering macros on click events; so this is an adventure.
1 - I really, really like c#! It is a nice language. I always thought that it was just a clone of java, but for .Net. Yeah, it's a lot like java, but with some of java's annoying bits removed. Its a lot less verbose and strings are native types and not wonky, immutable classes.
It does not displace Python as my favorite language, but sure beats java, objective c and a lot of others. I guess that developing for unity is not so bad, language-wise.
2 - I'm totally going from the mixed type variant array spaghetti monster to... how many classes? with how many special methods and abstractions? Oh boy... hold on to your butts!
I ran into a problem with my Excel -> VBA -> Python extractor, which are simply unsolvable, due to the wonky nature of VBA. It seems that using mixed type variant arrays as a poor man's struct and then trying to pass these things as parameters to functions; well, that does not work so well. Other parts of the VBA are rock solid and I see no reason to change them, but the exporter needs logic that is simply too complex for VBA to handle.
So I'm dumping the 1500 line exporter module and replacing it with c#. I've never written anything c# before, beyond building a ribbon in VSTO and triggering macros on click events; so this is an adventure.
1 - I really, really like c#! It is a nice language. I always thought that it was just a clone of java, but for .Net. Yeah, it's a lot like java, but with some of java's annoying bits removed. Its a lot less verbose and strings are native types and not wonky, immutable classes.
2 - I'm totally going from the mixed type variant array spaghetti monster to... how many classes? with how many special methods and abstractions? Oh boy... hold on to your butts!