Please anchor your regexes & stop driving me to distraction

What you meant — your code-head-canon, if you will — doesn’t matter if you don’t implement it.

Accessing the Program ID and Campaign ID from Velocity, the new way (post-June 2019)

Yet another way to get at these important values in Velocity. It’s weird-looking, but makes total sense in retrospect.

Masking (mildly) sensitive data values using Velocity

A one-liner to mask parts of sensitive fields, like ABCD0123 to ****0123.

Emulating ##MKT_TOK## in Velocity

If you know what ##MKT_TOK## is good for, you may have checked for it in Velocity and been disappointed. But it’s there too, just with a different name.

The *only* time you should use the + sign in Velocity instead of $math.add()

A single interesting exception… that *does not change* the rule that you should use $math.sub and $math.add instead of - and +.

Base64-ing a String in Velocity without using Reflection (i.e. after June 2019)

Somebody challenged me to implement the Base64 encoding algorithm in pure Velocity and Java. It can be done, but… yuck.

Even when Velocity isn’t doing anything, it’s doing something good

Velocity doesn’t HTML-encode values unless you tell it to, and that’s a good thing for user control/delegation.

Branding Marketo’s “View As Web Page" domain

Another thought-it-already-worked moment. But nope – to serve View as Web Page from a Domain Alias, you need help from JavaScript.