Pronunciation of programming structures (particularly in c#)

Posted by Andrzej Nosal on Stack Overflow See other posts from Stack Overflow or by Andrzej Nosal
Published on 2010-12-30T19:21:50Z Indexed on 2010/12/30 19:53 UTC
Read the original article Hit count: 330

Filed under:
|

As a non-English speaking person I often have problems pronouncing certain programming structures and abbreviations. I've been watching some video tutorials and listening to podcasts as well, though I couldn't catch them all.

My question is what is the common or correct pronunciation of the following code snippets?

  1. Generics, like

    IEnumerable<int> or in a method void Swap<T>(T lhs, T rhs)

  2. Collections indexing and indexer access e.g.

    garage[i], rectangular arrays myArray[2,1] or jagged[1][2][3]

  3. Lambda operator =>, e.g. in a where extension method

    .Where(animal => animal.Color == Color.Brown)

    or in an anonymous method

    () => { return false;}

  4. Inheritance

    class Derived : Base (extends?)

    class SomeClass : IDisposable (implements?)

  5. Arithemtic operators

    += -= *= /= %= !

    Are += and -= pronounced the same for events?

  6. Collections initializers

    new int[] { 4, 5, 8, 9, 12, 13, 16, 17 };

  7. Casting

    MyEnum foo = (MyEnum)(int)yourFloat; (as?)

  8. Nullables

    DateTime? dt = new DateTime?();

I tagged the question with C# as some of them are specific to C# only.

© Stack Overflow or respective owner

Related posts about c#

Related posts about pronunciation