160 likes | 631 Views
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.
E N D
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
C# Mascot - Andy Named after Anders Hejlsberg and retired on Jan 29, 2004.
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
Evolution of Visual Studio • Visual Studio 2002:短命的铺路石 • Visual Studio 2003:划时代的全能战士 • Visual Studio 2005的那些事儿 • Visual Studio 2008因LINQ成功登顶企业级开发 • Visual Studio 2010 架构师最怕程序员知道的新工具
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.
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 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
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
“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