Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

On WXLive Peter Holemans presented Object Oriented Programming in WX, w ith with a focus on developing a business and database I/O layer.

Peter lives in Belgium, is 41 years old and started in IT in 1996. Mostly He's mostly involved in large ERP contexts as an analyst programmer. He began using WinDev and1999 with version 5.5. , has used WebDev since version 12 and WinDev Mobile since version 17.

Peter asked , whether OOP is OOP the right paradigm in WX? . Back in 5.5 there was little OO support in the language, but there is much better support now. But whether Whether you go in an OO direction depends on the suitability of the application architecture and on your knowledge of the OOP paradigm. It takes time to go from procedural coding to OO coding. 

...

The first hour covered the basics of creating a business object and wiring it into the UI; in the last half hour Peter enhanced the UI's use of the business class, among other things adding an update form and demonstrating the error messages shown when trying to save invalid data

The last half hour also demonstrated more clearly how in gaining OOP advantages you lose some of the RAD capabilities, since you're essentially hand coding the UI

Benefits for multi-platform development

This point came up later in the webinar. While the Wx product line lets you deliver to various platforms, if you are delivering the same business functionality to, say, desktop and mobile apps and you take the traditional approach,  you're going to end up with a whole bunch of duplicated code. Taking an OO approach lets you reuse a lot of code. (And while Peter didn't have time to touch on testing, putting business logic into classes also makes that code much more easily testable.)

Remote databases

Peter wrapped up by talking about using HFSQL in the cloud, which means you have users who are accessing a database that is not on their local network. 

...