d418f64ae866a6bc1a73b698f63fd16a.ppt
- Количество слайдов: 30
C# is arising „Imagine all the people living 4 today!“ Jens Zimmermann RWG Gmb. H, Stuttgart Dept. SE 12 E-Mail: Jens. Zimmermann@RWG. de Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising
Preface (German Version) § „Imagine all the people living 4 today - so lautet das provaktive Inhaltsverzeichnis des Vortrags. Unter diesem Focus wird das Sprachkonzept von Microsoft's C# mit dem zugrundeliegenden. NET Framework vorgestellt. § Erste Erfahrungen des Referenden und daraus ableitbare Potentiale der sog. Beta 1 -Version des dot. Net's sind jeweils aus einem JAVA-gefärbten Blickwinkel heraus motiviert. § Themen wie: Lebt (=living) C# schon wirklich? Was sagen Kritiker in Veröffentlichungen (= the people) und Aussagen seitens Microsoft werden Zuhörer anregen über "C# is arising" nachzudenken (->C# 4 today!). “ Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 2
Please don‘t. . . Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 3
C# is arising: To. C § § § Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 4 Imagine All The People Living 4 today
I. Imagine § Cross platform § Cross languageinheritance! § On a high (common) abstraction level: . NET § „tight binding“ through libraries § Support Componentmodel § Features: GC, ~STL, versioning, . . . § Suitable workplace (IDE): browse-editbuild, deploying, . . . § Leitmotif/principle: „KISS me“ (see combination C/Unix) § Orchestration vs. Implementation §. . . Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 5
II. All? § Yes all ! (. . . , you need is VS. NET) § Except: cross platform • Common Language Runtime (CLR) loading Microsoft Intermediate Language (MSIL) • Abstract architecture instead of WIN 32 -API: Why not porting to UNIX !, . . . § Imagine: Cobol, Basic, Perl, ASP. . . speaks. NET as well Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 6
The. NET Framework System. Win. Forms System. Web Services Description Discovery Protocols UI Html. Controls Web. Controls Caching Configuration Security Session. State Design System. Drawing 2 D Imaging System. Data ADO Design Component. Model SQLTypes Printing Text System. Xml XSLT XPath Serialization System Collections Configuration Diagnostics Globalization IO Net Reflection Resources Security Service. Process Text Threading Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 7 Runtime Interop. Services Remoting Serialization
The. NET Framework (cont‘d) Namespace Description Example classes System Contains all the basic types used by every application Object, Buffer, Byte, Char, Array, Int 32, Exception, GC, String System. Collections Contains types for managing collections of Objects Array. List, Bit. Array, Dictionary, Hashtable, Queue, Sorted. List, Stack System. Data Contains basic database management types Data. Binding, Data. Relation, Data. Row, Data. Set, Data. Table, Data. Source System. Globalization Contains types for NLS support, String compares, and Calendars Calendar, Culture. Info, Julian. Calendar, Number. Format. Info, Number. Styles, Region. Info System. IO Contains types that allow synchronous and asynchronous reading and writing to data streams Contains types that allow for network communications Byte. Stream, File. Stream, Memory. Stream, Path, Stream. Reader, Stream. Writer System. Reflection Contains types that allow the inspection of metadata System. Runtime. Remoting Contains types that allow for managed remote objects Assembly, Constructor. Info, Field. Info, Member. Info, Method. Info, Module, Parameter. Info Channel. Services, Remoting. Services, IMessage, Imessage. Sink System. Security Contains types that enable security features Contains types that enable rich userinterface controls for web-based applications Contains types that enable rich userinterface controls for desktop applications System. Net System. Web. UI. Web. Controls System. Win. Forms Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 8 Web. Request, Web. Response, Tcp. Client, Tcp. Listener, Udp. Client, Sockets Permissions, Policy, Principal, Util, Cryptography Ad. Rotator, Border. Style, Data. Grid, Hyper. Link, List. Box, Panel, Radio. Button, Table Button, Check. Box, Data. Grid, File. Dialog, Form, List. Box, Main. Menu, Month. Calendar, New. Font. Dialog, Rich. Edit, Tool. Bar. Tree. View
Microsoft. NET §. NET Framework includes core services. § Common Language Runtime that makes languages interoperable. Reflection Mechanisms included. § SOAP for communication (incl. SCL, DISCO). § ASP+ for making components accessible as web services. §. NET tries to present a uniform platform for component-based software development. § Win. Forms and Web. Forms for user experience. § ADO+ for data access using XML. Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 9
Framework Provides (1) § Support for many programming languages • From Microsoft and others § A new, simpler component technology • The CLR defines common data types and more across languages § Interoperability among classes built using the CLR • Including cross-language inheritance § Code security • Allowing downloaded code to have limited access to a machine’s resources Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 10
Framework Provides (2) § Debugging and tracing across an entire application • Including ASP+ applications § Simple installation and removal of applications • No required registry entries § Simultaneous support of multiple DLL versions • The end of DLL hell Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 11
C# as 1: 1. NET Language § A new language designed expressly for the. NET Framework • Fully object-oriented • Syntax based on C/C++ § Includes: • • Built-in support for interfaces, properties, and events Support for attributes Garbage collection More Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 12
C# through JAVA-eyes § Common: „Pure OO“ • Similar Language-Concept - Single-Inheritance, Interfaces, without parametric polymorphy (templates) Common base class: object, Libraries: System. Xxx, . . . ( see SUN versus Microsoft) • Some syntax drifts: - using-import, sealed-final, - Default: inclusion polymorphy - self-this, base-super, . . . Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 13
C# through JAVA-eyes (cont‘d 1) § Differences: Halftone higher then Java!? Language includes: • • { get; set; } methods Delegates (see function pointer in C++) calling parameters (. , ref , out ) access qualifier: - public, private, family && || assembly • conditional compiling ( precompiler ) • structs [ (un)boxing ] Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 14
What we speak? OO-Horizont C# Java Visual Basic Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 15 C++
What we speak? OO-Horizont C# Java Visual Basic Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 16 C++
Jump to. NET (migration path? ) § Interoperability support. - Tools that enable applications built with Visual J++ to be easily and mechanically modified § Programming tools support. - Visual Studio. NET integrated development environment to use the Java language syntax to directly target the. NET platform § Automated conversion from Java source code to C#. - A tool (!? -> C# Compiler ) automatically converts existing Java source code into C#. Any code that cannot be converted is flagged within the Visual Studio. NET Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 17
III. The people § Newsgroups • news: //microsoft. public. dotnet. languages. csharp § Third party • LIB‘S (e. g stream. Compress, . . ), Web. Services, Tools • http: //www. csharp-station. com, http: //www. xceedsoft. com/dotnet/, . . . § Gamma‘s n. Unit 1. 7 • http: //www. extremeprogramming. org/ § Books/Articles • Introduction. NET, Inside C#, A Programmer‘s Introduction to C#, . . . • Since i. X, Java. Magazin, . . . (see M. Stal, . . . ) Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 18
IV. Living § Proof: 1/3 Go. F-Pattern‘s • template-method, singleton, factory-method, facade, strategy, . . . § Proof: Cross Language Inheritance • C#Strategy. Context with VBconcrete. Startegyobject and an VBClient § Gamma‘s n. Unit 1. 7 § IBuy. Spy • Opensource Portal witten in ASP+ Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 19
IV. Living (cont‘d) § EAI • Microsoft‘s server farm: example: Biz. Talk-Server § Visual Studio. NET • Handling, Experience, assistence, degree of. NET integration § indication, signs! Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 20
Babylon good bye! Visual Basic Client: Main(){ Context my. Context = new Context( new VBStrategy() ) my. Context. do() C o n t e x t } Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 21 Abstract. Strategy C#Strategy VBStrategy
IBuy. Spy § Solution Kit demonstrates how to build a portal site using ASP. NET § Out of the Box: • Portal-Framework • Modules: Announcement, Documents, Contacts, Events, Discussions. . . • Admin Tool: User. Control, Admin. Pages § Open. Source: http: //www. IBuy. Spy. com Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 22
EAI with Biz. Talk-Server § Biztalk Server is a solution for B 2 B integration. • Each business process is represented by a workflow. • A workflow is a sequence of activities triggered by rules and/or events, each activity being a sink and a source. • If the business process is driven by IT solutions, we must !? ) these workflows implement ( § It helps to link business processes of different companies. § Orchestration Engine for Workflow automation. Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 23
V. 4 today (!? ) § Fancy/big talks: „any time - any place - any device“, „dot. NET is revolution !evolution“ § Vocabulary: user-Experience/UI, orchestration/implementation § Too late? (JAVA) § Generate An (Open. Source) Hype § Keep In Mind! § Enjoy/Experience Bazaar Mentality Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 24
. NET Roadmap 2000 2001 2002+ User Experiance Tech Preview Windows. Net 1. 0 Full. NET UE Infrastructure and Tools XML in servers Biz. Talk Server Visual Studio 7 Windoes. NET Server Building Blocks Passport 3 or 4 key services Ull Offer, Corporate Federation User servieces Service experiance b. Central, MSN, Personal Sub Office. NET, Visual Studion. NET Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 25
Questions. . ? ? ? ? ? Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 26
Links. . . (1/4) § Microsoft. NET "home": • http: //www. microsoft. com/net/ § Visual. Studio. NET Beta 1 order || download: • http: //msdn. microsoft. com/vstudio/nextgen/beta. asp § Newsgroups (http-based): • http: //communities. microsoft. com/newsgroups/d efault. asp? icp=msdn&slcid=us Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 27
Links. . . (2/4) § Resources: • • • http: //www. c-sharpcorner. com/ http: //www. csharpfree. com/ http: //www. hitmill. com/programming/dot. NET/cs harp. html • http: //www. devx. com/dotnet/resources/ § Open. Source Portal (written in C#) • http: //www. ibuyspy. com/ Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 28
Links. . . (3/4) § ASP. NET 30 MB free webspace to develop, learn, and grow! no local installation required to experience C# • http: //www. brinkster. com/ § C# Language Spec: • http: //msdn. microsoft. com/net/languages/defaul t. asp Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 29
Links. . . (4/4) § Book's • http: //mspress. microsoft. com/net/sample/5027. htm • see http: //www. amazon. de „Csharp“ § Conferences, talks 2 download: • http: //www. ms-adc. de § thesis@RWG: • Porting a Java-Framework to C# Jens Zimmermann, RWG Gmb. H Stuttgart - C# is arising 30


