Visar inlägg med etikett Development. Visa alla inlägg
Visar inlägg med etikett Development. Visa alla inlägg

onsdag 1 oktober 2008

Moving interface from Enterprise Architect to C include file

After writing this, i realized the output after this is almost 100% the same as I got from exporting the original class as a C header from Enterprise Architect, still putting this out there as it's a nice regex. Cut n paste each function line from EA to the header file. format will be a bit screwed up, for example:

functionname(varname: vartype, varname2: vartype2): void

Begin with moving trailing return type to beginning:

:%s/^\(.*)\): \(\w\+\)$/\2 \1;/g

Get all varnames and vartypes into correct positions:

:%s/\(\w\+\): \(\w\+\)/\2 \1/g

All function declarations should now be fixed.

tisdag 23 september 2008

In windows, noone hears you scream

As you've all noticed, I've been working overtime with Windows as of late. I'm working in the embedded development industry, and wherever I turn, there is windows. To be honest, I don't get this industry and why the hell they keep running in this environment. Most of the people I've met in the trade are brilliant minds and know what they are doing, but the business in general are very backwards refusing to let go of things.

Also, another reason for the entire trade being stuck in such a fashion is all the tools produced. You have a market catering to the same market with software and tools, developing for a single common development platform -- Windows. And you have product lifetime to take into consideration.... There are still a bountiful of products out there that was developed before windows 3 was created.

All of this is creating a rather stagnant trade where it's hard to get a move on, test new things, do something differently. Just take my last few weeks of working with subversion/trac/cruisecontrol on windows. Had I known just how much work I would be forced into just because someone else decided that we run it on Windows XP, I would have protested loudly.

I can't simply get rid of this horrible abomination of an operating system in this trade, thats the sad but simple fact as of today. Sure, I've managed to get trac and cruisecontrol into the project, and we use subversion since before. But, I still need Windows for proprietary development environments, proprietary fileformats from customers, proprietary software from proprietary software companies, and so forth and so forth. And before you say anything, unfortunately I'm really stuck this time, proprietary IDE and compilers for weird hardware. Every time I touch an embedded project, it's the same thing "oops, we gotta use this processor or that dohicky which requires software Y which requires Microsoft Windows".

What's just taken me 3 weeks in Windows -- Basically, setting up subversion/svnsync/trac/cruisecontrol and some small work around that -- was accomplished in that time, even though I did the same in less than 2 days just before in Linux. As we're building for target via cruisecontrol, we where stuck with using Windows as the compilers where proprietary...

I'm a Unix person by soul, I love it, it's natural to me, it's my home. It's where I come from! I feel like I'm screaming at this insanity asylum that is Windows, but nobody is listening to me. The entire Operating system is befuddled with incompetence, idiocy and bad design choices.