Advertisement · 728 × 90

Posts by Craig Scott

I'm curious whether anyone has a rigorous legal opinion on whether copyright notices in source files that will never be distributed outside of a private company has any legal value at all? Simply stating something like "Copyright 20XX Company YYY" seems of dubious value.

3 days ago 0 0 0 0

I recommend opening a bug report in CMake's issue tracker with a clear description and ideally a simple reproducer. That's usually going to be the first step to getting it fixed. If you can see the problem and submit a merge request to fix it, the maintainers (likely me) will review the change.

2 weeks ago 1 0 1 0

But to balance that, there are also folks who do care about CMake presets, some of whom have been willing to improve them since they were added. Unfortunately, some of the more inconvenient issues are big tasks to address. But I agree, it's mostly a volunteer time constraint limiting improvements.

2 weeks ago 1 0 0 0

There are few stronger signals to a reviewer that the author isn't meeting the bar for due diligence.

1 month ago 0 0 0 0

I'm curious why authors feel the need to state that at all. It's used almost like an "I don't take responsibility for this change" escape hatch, as though that somehow absolves them from having to put the time in to make sure the change is correct.

1 month ago 0 0 1 0

Hot take: Pull requests that state "I vibe-coded this..." or "I put this together with AI tool XYZ..." seem to align with "I don't understand this change as well as I should", and especially with "I didn't check this change as carefully as if I wrote it myself." 🤔

1 month ago 0 0 1 0
Preview
Professional CMake: A Practical Guide The handbook for every CMake user, providing structured learning, the latest best practices, and real-world advice from a CMake co-maintainer.

The 22nd Edition of Professional CMake: A Practical Guide is now available. It has been updated for CMake 4.1 and 4.2 (two releases combined because changes for both were pretty small).

Get it from the usual place: crascit.com/professional...

2 months ago 1 0 0 0
Advertisement
Preview
The Last Line Effect I have studied numbers of errors caused by using the Copy-Paste method and can assure you that programmers most often tend to make mistakes…

The last line effect is real:

"The probability of making a mistake in the last pasted block of code is 4 times higher than in any other block."

Quoted from the following article, if you want more background: medium.com/@Code_Analys...

2 months ago 0 0 0 0

Given the growing concerns non-US folks may have about conditions entering the US, attending conferences in the US is nearing "non-starter" status. As much as I love CppCon, what would y'all consider the premier C++ conference these days outside the US? @lefticus.bsky.social @hanicka.net

4 months ago 0 0 1 0

The 4.1 release was so minor (to me) that I didn't release an update for Professional CMake, which is the first time I've done that since the book's release.

4 months ago 1 0 0 0

The main focus of 4.0 was the removal of long-deprecated things. The 4.1 and 4.2 releases have been smaller in terms of new features. Projects have been slow to update their CMake policies, so dependencies are the biggest problem with moving to 4.x.

4 months ago 1 0 2 0

(use the branch names without the back-ticks)

4 months ago 0 0 0 0

Want some git fun? Create a branch in your repository called `prototype` or `constructor`. See if your git GUI tool treats it the same as your other branches. At least one popular tool pretty much won't let you do anything with it, not even check out that branch. 🤨

4 months ago 1 0 1 0
C++20 Modules, CMake, And Shared Libraries See how to install and consume shared libraries with C++20 modules using CMake. This article starts where most basic tutorials stop!

Since you asked about it in the talk, this post discusses in detail how symbol visibility and modules interact:

crascit.com/2024/04/04/c...

It's not a pretty story. Most folks will be disappointed with the consequences, especially if you are producing a SDK for others to consume.

6 months ago 0 0 0 0

This is an awesome talk! Highly recommended viewing, especially if you haven't played much with LTO or symbol visibility. I learned things, even though I've gone over most of those topics in detail before.

6 months ago 1 0 0 0