The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Mortal coding sin: programming in your mother tongue

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Roy Osherove

Posts: 1807
Nickname: royo
Registered: Sep, 2003

Roy Osherove is a .Net consultant based in Israel
Mortal coding sin: programming in your mother tongue Posted: Feb 5, 2004 4:19 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Roy Osherove.
Original Post: Mortal coding sin: programming in your mother tongue
Feed Title: ISerializable
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/rosherove/Rss.aspx
Feed Description: Roy Osherove's persistent thoughts
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Roy Osherove
Latest Posts From ISerializable

Advertisement
If there's one nasty coding habit that gets me riled up every time it has to be coding with non English words. This probably won't mean much to the English speaking crowd, but here in Israel, and in other non English speaking countries, junior developers often choose to give their parameters, class names, database tables and sprocs names that, although written in English, are words in their mother tongue.
For example, I've come across code that looks like this:
 

Public Class MenahelLakoach

    Public Sub HosafatLachoach(ByVal shem As String, ByVal TeudatZehut As String)

        'Ugly code taken from original

        Dim sql As String = "insert into LAKOACH (shem,TeudatZehut) VALUES ('" + shem + "','" + TeudatZehut + "')"

        'more code here

    End Sub

End Class

 

Obviously, this is totally unreadable to anyone who does not speak Hebrew. Actually, it's hard to read even if you know Hebrew since you're used to read English, not translating it in your head to Hebrew. Ugh. Here's an easier to read translation:

 

 

 

Public Class CustomerManager

    Public Sub AddCustomer(ByVal Name As String, ByVal ID As String)

        'Ugly code taken from original

        Dim sql As String = "insert into CUSTOMERS (Name,ID) VALUES ('" + Name + "','" + ID + "')"

        'more code here

    End Sub

End Class

 

 

Not too hard, is it? Please, for the sake of the developer after you, write in English. Look at it this way:

  • Now you can actually send the code over to someone and they'll understand it no matter what their mother tongue is
  • it's more reusable
  • hey, you had to learn English to program , right? might as well use it.
  • You won't have to think so much about how to spell a particular non english word in english, thank god.

Read: Mortal coding sin: programming in your mother tongue

Topic: The "All New" MSDN Flash Is Here Previous Topic   Next Topic Topic: A Very Good Webcast series on VB.NET

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use