Client side element naming

December 3, 2012

Sometimes, I wonder if someone is playing a joke:

@using (Html.BeginForm("Update",
                            new { id = "MoreInfoText" }))

By which coding convention can it ever make sense to give a form an ID ending with “Text”? Javascript has no type safety either, so bad naming like this makes things even worse.