HO HO HO HO! Were you naughty or nice developers and animators and artists this year?
This year I wrote some snake_case in C#, and the dotnet compiler would give me warnings. Why haf to be so mad?
You can disable those warnings…
I also find it a bit too much when I’m writing C#, but normally I just let the auto-correct do the changes for me (in VS2022).
(the snake_case is more of a python thing).
I just tried some project with C convention thing just to see the difference.
As for example, you can see that the code below can be considered correct and valid based on the MS standard. However you have to put more cognitive effort and also second guess what each item does (it really shows on large projects, since nano seconds of effort accumulates to seconds and then to minute).
class SpaceShip {
// ...
}
class Program {
SpaceShip spaceShip; // field
public SpaceShip SpaceShip => spaceShip; // property
static void Main() {
var spaceship = new SpaceShip(); // object init
}
}
Then if you think in terms of what John Carmack would do in C:
class spaceship_t {
}
class program_t {
spaceship_t _spaceship; // field
public spaceship_t spaceship => _spaceship; // property
static void Main() {
var sp = new spaceship_t(); // object init
}
}
And the experiement was something like this, I am sure though Santa wasn’t happy about it…
I was a nice 3D Artist :3 🩷