Using Ruby Naming Conventions in C# code? Is that madness?
During my journey in learning Ruby / IronRuby, I have caught myself often naming things in C# with a Ruby convention or BDD test naming regime. To be extreme here’s an example:
var customer_to_make_preferred = Get_Customer_By_Id<ICustomerMakePrefered>(); //OR METHODS LIKE THIS public void Group_By_Orders_And_Print_To_Console_Window() { //…..etc }
I really find a benefit in greater understanding when reading code when I take this approach. Now it’s true I have been programming in C# for some 10 years and I don’t know if this kind of behaviour will see me excommunicated from the circle of brethren or not but I would like to know what others think.
Opinions please! And yes I know this is gonna be like waving a red flag in front of a raging bull :). And for the Ruby people, I am only proposing the extended underscored naming convention and nothing else – it’s all about naming and that’s it – ya basta!
6 comments








