Posted inInformation Technology

C++ std::string_view Example

If you work in IT long enough you will learn that academics have overrun standards committees. std::string_view is an example of why an elephant is a mouse designed by academic committee. For certain there were good intentions behind this. Too many of you kids unwilling to go to college and take all of those hard classes to learn how to do things right were living via the “just throw code at it” mantra. To get … C++ std::string_view ExampleRead more

Posted inExperience / Information Technology

The Myth of QML

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

Posted inExperience / Information Technology

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

Posted inInformation Technology

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

Posted inUncategorized

std::list – Example and Explanation

Our discussion of std::list, like our discussion of std::vector will start with a bit of history. It wasn’t until the IT industry was inundated with tiny x86 minds that people “tried to do it all in RAM.” Before the PC we had real computers with real operating systems. Other than Assembler, our languages were robust. Every platform supported indexed files and so did the compiler for every language. When we needed a multiply linked list … std::list – Example and ExplanationRead more