Impressed with Microsoft
-
So I'm working on an Entity Framework model. When you create an entity, it creates an EntitySet with the pluralized name. My object is named ChatterBox. I was certain that the environment was so stupid that I intentionally coded the AddObject method with "ChatterBoxs". Imagine my surprise when it actually named it "ChatterBoxes"! Kudos to MS.
-
"Customers"
Software Zen:
delete this;
-
So I'm working on an Entity Framework model. When you create an entity, it creates an EntitySet with the pluralized name. My object is named ChatterBox. I was certain that the environment was so stupid that I intentionally coded the AddObject method with "ChatterBoxs". Imagine my surprise when it actually named it "ChatterBoxes"! Kudos to MS.
I once wrote a (large) method that parsed a string and broke it into words, specifically to process datagridview headers to make them more readable. Next release of the control MS had included the same functionality in the DGV. No matter how irritating they can be they still do some excellent stuff.
Never underestimate the power of human stupidity RAH
-
So I'm working on an Entity Framework model. When you create an entity, it creates an EntitySet with the pluralized name. My object is named ChatterBox. I was certain that the environment was so stupid that I intentionally coded the AddObject method with "ChatterBoxs". Imagine my surprise when it actually named it "ChatterBoxes"! Kudos to MS.
Too bad that's not a user configurable option: then all the gamers could make everything end in the letter "z." best, Bill
It keeps me humble to think there's more bacteria in my gut than neurons in my brain, and that twenty trillion neutrinos pass through one hand a second, and that the average mattress contains 20 million bedbugs each of whom shits once per hour.
-
So I'm working on an Entity Framework model. When you create an entity, it creates an EntitySet with the pluralized name. My object is named ChatterBox. I was certain that the environment was so stupid that I intentionally coded the AddObject method with "ChatterBoxs". Imagine my surprise when it actually named it "ChatterBoxes"! Kudos to MS.
The EF pluralization service is pretty good these days, but very recently I have come to much prefer Code First, where I switch this off for table names, and whether off or on, I still have to choose my own DbSet names anyway. Zero unhappy incidents.
-
So I'm working on an Entity Framework model. When you create an entity, it creates an EntitySet with the pluralized name. My object is named ChatterBox. I was certain that the environment was so stupid that I intentionally coded the AddObject method with "ChatterBoxs". Imagine my surprise when it actually named it "ChatterBoxes"! Kudos to MS.
Our company has a Dutch database. Dutch has different rules for pluralization. It makes funny stuff. It's annoying. Why is our database Dutch anyway? :sigh:
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
} -
I once wrote a (large) method that parsed a string and broke it into words, specifically to process datagridview headers to make them more readable. Next release of the control MS had included the same functionality in the DGV. No matter how irritating they can be they still do some excellent stuff.
Never underestimate the power of human stupidity RAH
Yeah, and in recent years they've actually took the lead rather than waiting for Java or Apple to do it first ;)
-
Our company has a Dutch database. Dutch has different rules for pluralization. It makes funny stuff. It's annoying. Why is our database Dutch anyway? :sigh:
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
} -
Too bad that's not a user configurable option: then all the gamers could make everything end in the letter "z." best, Bill
It keeps me humble to think there's more bacteria in my gut than neurons in my brain, and that twenty trillion neutrinos pass through one hand a second, and that the average mattress contains 20 million bedbugs each of whom shits once per hour.
-
Our company has a Dutch database. Dutch has different rules for pluralization. It makes funny stuff. It's annoying. Why is our database Dutch anyway? :sigh:
It's an OO world.
public class Naerling : Lazy<Person>{
public void DoWork(){ throw new NotImplementedException(); }
} -
So I'm working on an Entity Framework model. When you create an entity, it creates an EntitySet with the pluralized name. My object is named ChatterBox. I was certain that the environment was so stupid that I intentionally coded the AddObject method with "ChatterBoxs". Imagine my surprise when it actually named it "ChatterBoxes"! Kudos to MS.
So it's modifying names with conventions that are not part of the language? Are all of these modifications clearly documented? Which dialects of which idioms of which languages are used? If I have MagnumOpus, will if create a MagnumOpi set? What rules are followed? I can see it causing problems. I don't want an IDE to think in any language other than the language I'm coding in, and I certainly don't need automatic spelling changes. If I want an 'e' in a set name, it won't take me a day to type it, but it might take a day to track down problems later. Too many bells and whistles just give you earache.
I wanna be a eunuchs developer! Pass me a bread knife!