Академический Документы
Профессиональный Документы
Культура Документы
NET
6/23/2013
Contents
.NET History
What is .NET?
.NET goals Basic elements
Five services
.NET versus J2EE Conclusion
References
6/23/2013
.NET History
COM
1993
DCOM
1997
COM +
MTS
1999
3
.NET
6/23/2013
What is .NET?
Idea:
Web as a collaborative environment. More automated, voice-activated, anywhere,
6/23/2013 1/3
What Is .NET?
A set of services and technologies (an
product line.
6/23/2013 2/3
What Is .NET?
software integration through the use of XML
Web services.
6/23/2013 3/3
.NET goals
Cross-platform interoperability 2. Multi-language support 3. Code reuse 4. Automatic resource management 5. Type safety 7. Debugging 8. Error handling 9. Elimination of DLL hell 10. Security
1.
8 6/23/2013
Interoperability
Examples A routine written in a language L1 may call another routine written in a different language L2. A module in L1 may declare a variable whose type is a class declared in L2, and then call the corresponding L2 routines on that variable. If both languages are object oriented, a class in L1 can inherit from a class in L2. Exceptions triggered by a routine written in L1 and not handled on the L1 side will be passed to the caller, whichif written in L2will process it using L2's own exception-handling mechanism.
6/23/2013
Multi-language support
The .NET platform supports many
10
6/23/2013
Code Reuse
Apps do not need to be rewritten in a
code with some porting effort, could become useable within the .NET environment.
11
6/23/2013
layout and manages references to objects, releasing them when they are no longer being used. This automatic memory management resolves the two most common application errors, memory leaks and invalid memory references.
12 6/23/2013
Type safety
Every data structure in all .NET supported
13
6/23/2013
Debugging
During a debugging session, you may move freely and seamlessly across modules written in L1 and L2.
14
6/23/2013
Error handling
.NET provides structured exception handling,
15
6/23/2013
DLL hell
Maintaining a Windows PC is a chore, because
applications are quite complex. They consist of many files, registry entries, shortcuts, and so on.
Different applications can share certain DLLs, and
installing a new application can overwrite a DLL an existing application depends on, possibly breaking an old application (DLL hell).
Removing an application is complex and is often
imperfectly done.
16 6/23/2013
DLL
Stands for Dynamic Link Library.
Pieces of code that apps could take runtime.
17
6/23/2013
Security
Managed components are awarded varying
degrees of trust, depending on a number of factors that include their origin (such as the Internet, enterprise network, or local computer). This means that a managed component might or might not be able to perform file-access operations, registry-access operations, or other sensitive functions.
18
6/23/2013
1/2
Security
The runtime enforces code security.
executable embedded in a Web page can play an animation on screen or sing a song, but cannot access their personal data, file system, or network. The security features of the runtime thus enable legitimate Internet-deployed software to be exceptionally feature rich.
6/23/2013 2/2
19
20
6/23/2013
Smart Clients
"Smart" client application software and operating systems enable PCs and other smart computing devices to act on XML Web services, allowing anywhere, anytime access to information
21
6/23/2013
23
6/23/2013
Servers
2000 server family .NET Enterprise Servers For deploying, managing, and orchestrating XML Web services
25 6/23/2013
Developer Tools
Microsoft Visual Studio .NET is the solution proposed for developers to build and deploy XML Web services.
27
6/23/2013
Transition
32
6/23/2013
The 5 Services
Framework .Net ASP .Net Web Services Windows Form ADO .Net
33
6/23/2013
Framework .Net
The .NET Framework is the programming model
developers to focus on writing the business logic code for their applications.
34
1/8 6/23/2013
Framework .Net
The .NET Framework includes:
1. 2.
35
2/8 6/23/2013
36
3/8 6/23/2013
3.
4. 5.
6.
37
4/8 6/23/2013
C++
C# Object model
Eiffel
Compilers
More
Platform
38 6/23/2013 5/8
implementing a strict type- and codeverification infrastructure called the Common Type System (CTS). The CTS ensures that all managed code is self-describing. The various Microsoft and third-party language compilers generate managed code that conforms to the CTS.
6/23/2013 6/8
42
what version.
every DLL version needed by apps is host in the
system
43
7/8 6/23/2013
Asp .Net
The new version of ASP
A set of technologies for building Web applications
programming model that enables the separation of application logic and user interface.
45
More 6/23/2013
.NET vs J2EE
The shared vision between both J2EE and
.NET is that there is an incredible amount of 'plumbing' that goes into building web services, such as XML interoperability, loadbalancing, and transactions. Rather than writing all that plumbing yourself, you can write an application that runs within a container that provides those tricky services for you.
51
6/23/2013
.NET vs J2EE
ANALOGIES
52
6/23/2013
53
6/23/2013
Terminology "ABC"
CLR: Common Language Runtime One runtime for many programming languages Intermediate Language (IL) One intermediate, high-level assembly-style language that is emitted by language compilers Assembly Container for code, metadata and resources your new term for what you used to call "D-L-L" Metadata Information that describes the shape of data and the runtime behavior of a program
54
6/23/2013
References
The Introduction to .NET and its components
David S. Platt Introducing Microsoft .NET Microsoft Press 2001
55
6/23/2013
1/2
References
1.
J2EE vs .NET
java.oreilly.com/news/farley_0800.html
2.
About Interoperability
www.sdmagazine.com/documents/s=7134/sdm0205j/0205j.htm
56
6/23/2013
2/2