What's in a name
# help-with-other
d
The case for making template names inclusive - a thread
In 2020, GitHub announced that it would be dropping the use of the term “master” for the default branch name on its platform, opting for “main” instead. Their motivation, the term “master” has historical associations with slavery and oppression, which some people found uncomfortable.
Fast forward to 2024 and Umbraco release Version 14 as a new beginning. Yet we are still using the term Master for templates: https://cdn.discordapp.com/attachments/1248557138201280522/1248558341014163487/image.png?ex=66641a11&is=6662c891&hm=062cde0e5411b3047763c8d631f7e9e89d5e1eb9f29c85ce5d4d81ca2911e028&
But what can we use instead? In this article Chris Stovall makes some good suggestions: https://giant.is/industry-insights/what-can-i-use-instead-of-master-when-naming-a-template-file-in-2024-and-why-does-it-matter/
s
Layout
it's what it is already named
I didn't get a PR for this in place on time for v14.0.0 unfortunately
d
I am currently sending you a big hug @Sebastiaan
s
So if you want to give it a go, please be my guest! The display name should be easy to update but the underlying .NET code is all named wrong as well, which would probably be a breaking change 😅
But at the VERY least we can name the label nicely 🙂
I've also asked the Cloud team is we can make
main
the default branch for new projects. They did investigate a few years ago but it wasn't possible at the time. It's on their list to try again in the next few months!
d
I have been using _Layout and then variants such as _Layouts_Features (I'm still stuck on using underscores with partials anyway) https://cdn.discordapp.com/attachments/1248557138201280522/1248559701554102324/image.png?ex=66641b55&is=6662c9d5&hm=2ef1ce6e0ef70f78fef4224ea79255c46cd2efd024fcabeaeeecc23735770645&
s
For default MVC projects, the main layout in all the MS examples is
_Layout.cshtml
so that makes 100% sense to follow.
d
If the change is coming anyway I will stand down from my soapbox
s
As I said, if you have some time to help out then I'd love it, saves me some work! 😅 Otherwise we can look at it at the hackathon Friday 👀
a
I personally think removing the word master is a negative thing on itself, the reason shouldn't be because some people find it uncomfortable, it should be that a better name exists. Everyone can get uncomfortable with many things.. that's why people need to learn to look at the context, and learn to be stronger against such words.. I mean damn.. people are even boycotting Mettalica because they have a song "Master of puppets' 😦
But yes, MS already uses _Layout, which is a great name for it 🙂
s
A better name DOES exist!! It's always been called Layout since we left Webforms behind.
So not only is it getting rid of an uncomfortable word, it's also aligning with the terminology already used, indedd.
s
_Layout of Puppets
d
As I am not leaving until Saturday I should have time on Friday for sure.
h
well, exactly since the term master predates modern slavery and is the term used to denote the captain of a ship since the roman times. One of my ancestors was master at arms on a ship during the battle of trafalgar
a
But the age old term doesnt even matter.. words and meanings evolve
for my reference, its a skill level
2 Views