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
C++
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
So You Can’t Get Your Qt Models to Work With QML?
This particular rant was started by my looking to divert my mind by answering a question on StackOverflow. Never ever ever go to StackOverflow. Kids today just don’t know squat and there is nothing you can do to help them. Let’s start with my initial response an a slightly improved image. QML is just a hand polished turd. There is no polite way to put it. Qt made a desperate ploy to attract script kiddies … So You Can’t Get Your Qt Models to Work With QML?Read more
The Bottom for Technical Recruiting Just Keeps Getting Lower
Ordinarily I wouldn’t drag something this specific onto my geek blog, but every time I try to reply to the pimps email it bounces. I had never heard of gandi.net. Given how well their email works I suspect they won’t be around for very long. Why do I need to have an unsubscribe link when I reply to email that came through their system? How does an automatic filter identify “poorly organized content” anyway? At … The Bottom for Technical Recruiting Just Keeps Getting LowerRead more