- .@ulfroettger Bei Tom Morello fällt mir immer Ghost of Tom Joad ein – http://t.co/AGUGMv0 ein. Ab 4:12 und 6:50 geht's ab. in reply to ulfroettger #
Monthly Archives: May 2011
17
May 11
Twitter Updates for 2011-05-17
16
May 11
Twitter Updates for 2011-05-16
- Enjoying the weekly @FridayBruceFix on a late sunday evening after an intense family related weekend – #springsteen http://t.co/HofDpsv #
09
May 11
Twitter Updates for 2011-05-09
- @ulfroettger Da fehlte das yam hashtag um die Kollegen in Karlsruhe herauszufordern… 🙂 in reply to ulfroettger #
- @markusrill Voll auf dem Radar, den Termin. Sogar schon meine Frau um Erlaubnis gefragt. in reply to markusrill #
07
May 11
Twitter Updates for 2011-05-07
- @Devteros "Optimiertes Weihnachten: Anleitung zur Besinnlichkeitsmaximierung" – das isses. in reply to Devteros #
06
May 11
Twitter Updates for 2011-05-06
- RT @FridayBruceFix She looks so pretty every time she walks by #springsteen #Detroit Medley today at http://www.fridaybrucefix.com #
04
May 11
Twitter Updates for 2011-05-04
- If you're looking for a (in the very best sense) "old-fashioned" SW-Dev magazine, look no further than @pragpub – http://t.co/1kTdL6w #
- Here's why @pragpub is "Old fashioned" in the very best sense: It's in-depth, has great layout, and is a pleasure to read. #
03
May 11
Twitter Updates for 2011-05-03
- Fond memories of a trip years ago – have to get back soon http://t.co/Zfg9MPo #
- Why not? Great question by @tottinge at http://t.co/ksGb3Yh Sad but true: Most don't feel the urge to even get to the planning stage. #
- Whining isn't a scalable solution – http://t.co/mvvLnEk (via @ThisIsSethsBlog) #fb #
02
May 11
Developing a Vectorworks 2011 Plug-in, TDD-style – Epilogue
The code
[Update: I have posted an Xcode 4.6 / Visual Studio 2010 project for Vectorworks 2013 here.]
Please download the Xcode 3.2.3 project including all the sources here – SimpleCabinet.zip. The folder SimpleCabinet should be dropped into Vectorworks 2011 SDK’s Sources folder, like this:
The project features two targets, a testing target named “CppUnitLite2” and the plug-in module shared library target, which outputs to /Applications/Vectorworks2011/Plug-ins. You will notice that all classes plus tests are contained in ExtObject.cpp. I’m doing this for small spikes – in real life, I would put each class in a separate file, no code in the header file etc.
The code features additional tests, refactorings and more usage of VWFC in SimpleCabinetCreator.
I haven’t gotten around to preparing & cleaning up the Visual Studio project of the Simple Cabinet project. Make sure to bug me so I feel obliged to release it, too.
Summary
It’s possible to create VectorWorks plug-in objects via TDD. In fact, it’s desirable: Developing the code test-first gave us a very nice separation between the testable model and a very thin layer creating the actual Vectorworks geometry. The SDK stubs (which exist, at this point, for the sole purpose of satisfying the linker) allow us to have a separate testing target and to mix testing code and non-testing code freely.
I found that it’s also possible to develop Vectorworks Layoutmanager-based dialogs (either straight ISDK or VWUI-based) in a strict TDD fashion, but that’s another series of posts waiting to be written and code / project files waiting to be cleaned up.
Wether it’s possible to develop Vectorworks tools in a test-driven fashion remains to be seen (although I’m pretty optimistic that it can be done quite nicely). I do have some thoughts on this matter but they aren’t coherent yet.
If you have any feedback regarding this series, please do not hesitate to post comments on the episodes, or contact me at hm dot kern at extragroup dot de, on Twitter or Facebook. I look forward to hearing from you.
Episodes
- Episode 0 – Introduction
- Episode 1 – How to start?
- Episode 2 – Spicing up our class
- Episode 3 – Not doing the same sketch twice
- Episode 4 – Creating Vectorworks geometry
- Episode 5 – A third class
- Episode 6 – Rolled-up newspaper
- Episode 7 – A few more additions
- Epilogue & Code
- Updated Epilogue & Code for Vectorworks 2013
02
May 11
Twitter Updates for 2011-05-02
- Developing a @Vectorworks 2011 Plug-in, TDD-style – Epilogue & Code – http://t.co/6yrAuB3 #fn #in #