His advice has the desirable attributes of being explicit, complete, and (relatively) simple to implement. Especially - as when using the Raspberry Pi operating systems - many of the constants and values needed are the same as the ones pre-calculated by him in his article - at least when running Buster. (Though you should calculate them yourself once just to see if they match.)
While you’re messing with TRIM, you might want to check/update the filesystem consistency checking parameters using tune2fs - then you have “the full monty” of protections and efficiency updates to ensure your system doesn’t suddenly go all pear shaped.