As I pointed out many times in my Qt and databases book, most of the database examples you find online and even in official Qt documentation are shit. This is not my ego talking. They all do everything in the main event loop. Almost all of the cheat by using only a handful of rows so everything “seems” to work. Then you try to use it on real data and wonder why the application seems … How Far We’ve Come – Pt. 16Read more
Qt
How Far We’ve Come – Pt. 15
I need to continue yesterday’s discussion about good architectural design a bit. Particularly the part about not shoving everything into RAM. I see two different kinds of C++ developers on Qt projects. Those who want to be one with the OOP. Every piece of data, including an integer, should be an object derived from the most holy object to end world hunger and bring world peace. To them you should be pushing the envelop going … How Far We’ve Come – Pt. 15Read more
How Far We’ve Come – Pt. 14
If this were one of my geek books, we would spend an inordinate amount of time with me dissecting code in order to teach you something. But, you didn’t pay for this, so I’m only going to speak about one source file. (You really shouldn’t just thieve things on the Internet, you should pay for them. Christ! There’s an ebook which sells for a buck. Are you trying to turn into a universally hated arch … How Far We’ve Come – Pt. 14Read more
How Far We’ve Come – Pt. 13
Before we jump straight into the code, we need to talk a bit about the design of this application. When I first started coding up a new version using Qt and SQLite I originally started with the old design. sqlite> select strftime( ‘%Y%m%d’, draw_dt) as ‘drawing date’, no_1, no_2, no_3, no_4, no_5, no_6 from drawings order by draw_dt asc limit 15; drawing date no_1 no_2 no_3 no_4 no_5 no_6 19990102 9 12 18 32 34 … How Far We’ve Come – Pt. 13Read more
How Far We’ve Come – Pt. 12
We need a third app. While I thought it would be nice to use the other two by themselves, I got looking into the soon to be extinct Android platform and, we need something simpler to verify cross compilation works before jumping into either of those. Why? PostgreSQL only runs under this command line utility, going to jump through hoops trying to access it from a GUI app. The 2-in-1 doesn’t provide a serial port … How Far We’ve Come – Pt. 12Read more