1 / 10

Something about C#

Something about C#. Mandy Lu 1130829037. Origin of C# language name. http://stackoverflow.com/questions/1991345/origin-of-the-c-sharp-language-name. COOL(C like Object Oriented Language) Inherent reference to C Word play - just like C++++ Musical notation - a half step higher in pitch.

amara
Download Presentation

Something about C#

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Something about C# • Mandy Lu • 1130829037

  2. Origin of C# language name http://stackoverflow.com/questions/1991345/origin-of-the-c-sharp-language-name • COOL(C like Object Oriented Language) • Inherent reference to C • Word play - just like C++++ • Musical notation - a half step higher in pitch

  3. C# Mascot - Andy Named after Anders Hejlsberg and retired on Jan 29, 2004.

  4. Family Tree of C# • C:beginning of modern programming • Creation of OOP & C++ • Appearance of Internet & Java • Creation of C# • Development of C# • .NET Framework

  5. Evolution of Visual Studio • Visual Studio 2002:短命的铺路石 • Visual Studio 2003:划时代的全能战士 • Visual Studio 2005的那些事儿 • Visual Studio 2008因LINQ成功登顶企业级开发 • Visual Studio 2010 架构师最怕程序员知道的新工具

  6. Father of C# • Designer & lead architect - Anders Hejlsberg • Turbo Pascal (1981), Delphi (1999), C#(~2000) • Hejlsberg had already made his mark on the developer world before joining Microsoft in 1996. His achievements in PolyPascal, Turbo Pascal, and Borland Delphi were all groundbreaking; Turbo Pascal in particular set a productivity standard for its day, and served as the "first IDE" (Integrated Development Environment) for a generation of developers. • After joining Microsoft, Hejlsberg led the company’s efforts in Visual J++ and Windows Foundation Classes (WFC). By pairing a highly productive Java development environment with a Windows class library without the least common denominator problem of other Java frameworks, Hejlsberg helped make Visual J++ the most popular and most productive Java IDE in the late ‘90s. • In 2000,Anders Hejlsberg got Dr. Dobb's Excellence in Programming Award for his contribution in Turbo Pascal, Delphi, C#, Microsoft .NET Framework.

  7. 8 Things You Probably Didn’t Know http://damieng.com/blog/2012/10/29/8-things-you-probably-didnt-know-about-csharp • Indexers can use params • Strings defined multiple times in your code are folded into one instance • Exposing types as a less capable type doesn’t prevent use as their real type • Variables in methods can be scoped with just braces • Enums can have extension methods • Order of static variable declaration in your source code matters • Private instance variables of a class can be accessed by other instances • The C# Language specification is already on your computer

  8. 8 Most Common Mistakes http://blog.goyello.com/2013/01/07/8-most-common-mistakes-c-developers-make/ • String concatenation instead of StringBuilder • LINQ – ‘Where’ with ‘First’ instead of FirstOrDefault • Casting by means of ‘(T)’ instead of ‘as (T)’ when possibly not castable • Not using mapping for rewriting properties • Incorrect exceptions re-throwing • Not using ‘using’ for objects disposal • Using ‘foreach’ instead of ‘for’ for anything else than collections • Retrieving or saving data to DB in more than 1 call

  9. Funny Code in C# • http://blog.ralch.com/?p=139 • http://www.arungudelli.com/csharp/3-funny-things-you-can-do-with-csharp-console/ -C# console • http://www.gamekiller.net/distribution/38491-c-source-idog-funny-program.html - iDOG

  10. “With a lot of programs today, you’re not only saying what you want the program to do, you are saying in painful detail how you want it done. The way we get to take advantage of all of the progress in CPUs and memory is offloading some of that ‘how to’ to the infrastructure” –Anders Hejlsberg

More Related