I have railed against the incredibly poor design of QML for years. Even wrote about The Death of Commercial Application Frameworks because just like the RAD (Rapid Application Development) tools of the 1990s, they have run their course. If you want to read more about the RAD tool era read this book. Only in a shop using Agile could such a horrible design ever get considered. In a real Software Engineering shop that uses Waterfall … The Myth of QMLRead more
C++
The Myth of Smart Pointers
On page 206 of Beginning C++17 ISBN: 9781484233665 published in 2018 you will find the following about smart pointers. Always use either the std::vector<> container (to replace dynamic arrays) or a smart pointer (to dynamically allocate objects and manage their lifetimes). These high-level alternatives are much, much safer than the low-level memory management primitives and will help you tremendously . . . Quote from the book While using std::vector<> is usually good, the opinion expressed … The Myth of Smart PointersRead more
C++ Arrays and Pointers Example
C++ arrays and pointers really originate with the C programming language. There have been massive improvements since the 1980s. Back then declaring arrays of structures was a bit iffy. Much of that had to do with the Stack vs. Near Heap vs. Far Heap issues of memory segmentation and “bytes allocated for alignment.” Refer to the std::vector post for further information on that. The Code We have a lot to talk about with this short … C++ Arrays and Pointers ExampleRead more
A std::vector Example and Explanation
If you want a really good method of identifying a legacy C++ library/framework, see if it provides a vector class. For C this would be a set of vector functions. Arrays in C and C++ are hard coded at compile time. This dates back to the beginning of the languages. During the early 1980s VAX BASIC was the only widely used programming language supporting dynamic arrays. You may not be familiar with BASIC but the … A std::vector Example and ExplanationRead more
The Danger of Tuples
No matter how much academics and the industry tries to shit on BASIC, C++ and every other newer language tries to move closer to it. Tuples are the re-introduction of a very bad thing. Well, not so much bad as highly abused. To understand my viewpoint you probably need to read page 4-100 (page 278 in the PDF) of this manual. FIELD The FIELD statement originated in BASIC/PLUS on the PDP-11. Might have started with … The Danger of TuplesRead more