Скачать презентацию Dot NET A Developer s Perspective One Mike Litzkow Скачать презентацию Dot NET A Developer s Perspective One Mike Litzkow

a6b21e1787935c5e4a8f6da4c1de57a3.ppt

  • Количество слайдов: 17

Dot. NET A Developer’s Perspective One Mike Litzkow University of Wisconsin - Madison Dot. NET A Developer’s Perspective One Mike Litzkow University of Wisconsin - Madison

Microsoft’s Goals l Better software development tools l Better software l Take over the Microsoft’s Goals l Better software development tools l Better software l Take over the world – Desktop – Servers – Small Devices

What Is Dot. NET? l Execution environment above – Common Language Runtime Win 32 What Is Dot. NET? l Execution environment above – Common Language Runtime Win 32 l Major Technology Pieces – Dot. NET Framework – C# – ASP. NET – XML Web Services (passport & friends) – Visual Studio. NET

Common Language Runtime (CLR) l Supports multiple languages C++, C#, VB, Java. Script Cobol, Common Language Runtime (CLR) l Supports multiple languages C++, C#, VB, Java. Script Cobol, Fortran, Perl, Python, Eiffel, Pascal, Small. Talk, … – Languages interoperate freely (including inheritance) l All code is compiled on target machine – Compiler aware of actual CPU to be used – Nothing is interpreted (not even script) – JIT is default, can compile at install time l Type safety – Including array bounds checking l Garbage collection

But, Will the CLR Last? l Enterprise development – language interoperability l Security – But, Will the CLR Last? l Enterprise development – language interoperability l Security – buffer overrun problems eliminated l Software reliability – memory leaks, access errors eliminated – versioning problems addressed (end of DLL Hell) l Transition to 64 -bit architecture – no pointers, target machine compilation Probably Yes

Visual Studio. NET l l l Multi-language development Multi-language debugging l Syntax coloring and Visual Studio. NET l l l Multi-language development Multi-language debugging l Syntax coloring and checkingable avai is K ent opm work SD Intellisense l deve rame e F d lin NET development an Drag ‘n Drop. DGUI omm ) ot C++, C#, VB, Java. Script, HTML, XML, Schema, Bitmaps, … C free d. GUI tools for multiple languages – Same (an – Similar GUI tools for desktop and web

Dot. NET Framework l Example content – Object, String, Int, – – – Float, Dot. NET Framework l Example content – Object, String, Int, – – – Float, … I/O Windows forms Web forms XML processing Reflection l Usage model – Direct use – Use by inheritance – Custom toolbox

C# Extremely similar to Java l Differences l – Enumerations – Properties – Delegates C# Extremely similar to Java l Differences l – Enumerations – Properties – Delegates – No “checked” exceptions – Everything is an object l l Reference types Value types

C# - Syntax Examples l Enumeration public enum Direction {North, South, East, West}; private C# - Syntax Examples l Enumeration public enum Direction {North, South, East, West}; private Direction direction; e her w sho e t to ega l l Property usage l Property ex De mpl o public Direction too c Direction { obj. Direction = get { return direction; } Direction. North; set { direction = value; point. To( direction ); } }

But, Will C# Last? l It’s a good language, but a lot like Java But, Will C# Last? l It’s a good language, but a lot like Java l MS has control – unlike Java l Heavily used inside MS Probably Yes l Is C# a really important part of Dot. NET? Nah

ASP. NET l Server-side code – runs on CLR – uses. NET Framework All ASP. NET l Server-side code – runs on CLR – uses. NET Framework All code is compiled (even Java. Script) l Supports separation of code and HTML l Easy and efficient DB connectivity l Drag ‘n drop web forms development l – Forms work across multiple browsers – Even small devices Xcopy deployment l Debugging, logging, caching, … l

But, Will ASP. NET Last? Probably Yes (CLR on Server, . NET Framework support) But, Will ASP. NET Last? Probably Yes (CLR on Server, . NET Framework support) Not sure about web forms, HTML/Script connection, DB Connectivty …

XML Web Services l RPC implemented with XML (SOAP) l Service description in XML XML Web Services l RPC implemented with XML (SOAP) l Service description in XML (WSDL) l Underlying protocol HTTP – penetrates firewalls l Lots of hype and controversy (Passport) Geneva convention

But, Will XML Web Services Last? l Web services are an industry wide initiative But, Will XML Web Services Last? l Web services are an industry wide initiative l Lots of questions about compatibility remain Will be important for B 2 B commerce Much more slowly than Microsoft hopes

Dot. NET Books Introducing Microsoft. NET – David S. Platt Easy Intro to Whole Dot. NET Books Introducing Microsoft. NET – David S. Platt Easy Intro to Whole Platform l C# Essentials – Ben Albahari Compact reference for C# l Applied Microsoft. NET Framework Programming – Jeffery Richter CLR l Essential. NET: The Common Language Runtime – Don Box CLR l Programming Microsoft Windows With C# – Charles Petzold Windows Forms (desktop apps) l

Further Talks l C# l ASP. NET – Delegates – C# vs C++ performance Further Talks l C# l ASP. NET – Delegates – C# vs C++ performance – Database connectivity – GUI builder l – Web forms – “Business” logic CLR – Types – Metadata – Versioning – Security

Contact Info Mike Litzkow – mlitzkow@facstaff. wisc. edu – mike@cs. wisc. edu – 262 Contact Info Mike Litzkow – mlitzkow@facstaff. wisc. edu – mike@cs. wisc. edu – 262 -6122 e. TEACH Home Page – http: //eteach. engr. wisc. edu