Jeremy Davis
Jeremy Davis
Sitecore, C# and web development
Page printed from: https://blog.jermdavis.dev/

A blog about technology that catches my attention

It's a bit like a swap-file for my brain...

11 years, 364 posts and counting

Text adventures: Starting with a world

Lets pretend it's the late 80s and type words to play games!

As you might guess from someone who's been writing a blog for a decade, text adventures were something I really liked back in the day. I spent a lot of time on classic Infocom games like The Hitchiker's Guide to the Galaxy. But what if you wanted to build your own as a .Net developer? This blog series has some suggestions...

Text Games C# ~4 min. read

Four things to remember about Sitecore Search

There's a lot of change if you're used to ContentSearch

Anyone who's been doing Sitecore DXP for a while will be fairly comfortable with Solr and how search works under the Content Search APIs. But if you're moving to the newer SaaS products then you're not working with that any more. And getting started with Sitecore's SaaS Search product does involve learning a few changed concepts.

Here are four quick things they tell you that you might not have thought too much about, but you need to remember to help avoid project surprises...

Sitecore Search ~2 min. read

C# is fixing a thing that irritated me!

The v14 release has some interesting new extension features

For a long time a small thing in writing Razor code for Sitecore (and in some other places) has irritated me. It's not really very important, but with the new version of C# there is finally a way to round off this rough edge that's been getting to me...

C# ~1 min. read

When is a placeholder name not a placeholder name?

A fun issue you might see if you're copying from instructions...

I got asked for help with an issue in some QA test the other day, and it struck me as a fun one that others might encounter. A nice little side effect of how literal computers can be...

Messing up your page layout with a fun Razor mistake

If you use C# code in your Razor, think about how views work

Sometimes it's the simplest things that can trip up development work. A case in point is a bug ticket I got handed recently, which I think shows the need to understand your tools when writing code. Read on to avoid an interesting mistake with code flow in Razor views...

MVC Razor C# .Net ~2 min. read

Fun with Radio Buttons in Sitecore's SaaS forms

A work-around for an unexpected bug with how forms are rendered

I was doing some investigation into moving some Experience Forms UI over to the new SaaS Forms in XM Cloud recently, and bumped into an interesting issue. If you're looking to make use of this new tool you may find this an interesting read:

Disk permissions with cloud AD

When the UI is missing, go back to the old school...

A while back, work moved from having a traditional domain-joined laptops and an on-site Domain Controller for our Active Directory to the more modern SaaS model of cloud domain. Mostly this doesn't matter at all to employees as they work. But I bumped into one place where I do need to do something different because of this: setting explict disk permissions. So as a reminder to myself for next time, here's how to achieve this.

Windows Azure ~1 min. read

A mistake to avoid with Statiq's pipelines

How not to implement a 'do nothing' path in a module...

I've been tinkering with some pipeline modules for the Statiq generation engine that I use to render this blog, and I bumped into a fun mistake in my code which confused me for a while. To help me next time I'm doing this sort of modification, this seemed worth documenting - even if it is a bit of a silly mistake...

C# Statiq ~2 min. read

Order and Sitecore Content Serialisation

A fun mistake that you might not notice until after your PR...

A common but not-fun issue for working developers is when you do some work, test it locally, submit a PR and then find that it blows up on someone else's computer. I'm not too proud to admit that I had an issue with this recently, which highlights a thing you have to remember when working with Sitecore Content Serialisation.

A quirk of explicit interfaces

I didn't realise you could do this...

One of the fun things about defining objects and their APIs in C# is thinking about which bits you want your consumers to see, and which bits need to be there just for you, and consumers should avoid using. Most developers are aware of keywords like public / private and internal for achieving this, but Explicit Interfaces are another approach to this...

C# .Net ~4 min. read