Click here to load reader

01 intro to programming in .net

Embed Size (px)

DESCRIPTION

 

Citation preview

  • 1. Course OverviewUnit 42: Programming in .NET

2. AimLecturer: Jareed Eve;2 To provide learners with an understanding of theprinciples of programming using a .NETframework as an underpinning technologicalconcept in the fields of programming and systemsdevelopment. 3. Learning OutcomesLecturer: Jareed Eve;31. Understand the principles of programming usinga .NET framework.2. Be able to design .NET solutions3. Be able to implement .NET solutions4. Be able to test and document .NET solutions. 4. ResourcesLecturer: Jareed Eve;4 Books Esposito D Programming Microsoft ASP.NETMVC (Microsoft, 2010) ISBN-10: 0735627142 Libert J, Horovitz A Programming .NET 3.5(OReilly, 2008) ISBN-10: 059652756X Lowy J Programming .NET Components:Design and Build .NET Applications UsingComponent- Oriented Programming (OReilly,2005) ISBN-10: 0596102070 Websites http://msdn.microsoft.com/en-gb/library/zw4w595w.aspx www.dotnet-guide.com/ www.programmingtutorials.com/vbnet.aspx 5. Introduction toProgramming in .NET 6. Learning Objectives OverviewLecturer: Jareed Eve;6 What is .NET Version History Design Features .NET Languages 7. What is .NETLecturer: Jareed Eve;7 The .NET Framework is a software frameworkdeveloped by Microsoft Programs written for the .NET Frameworkexecute in a software environment, known as theCommon Language Runtime (CLR) CRL - An application virtual machine that providesservices such as security, memory management,and exception handling. The class library and the CLR together constitutethe .NET Framework. 8. The .NET Framework is an environment forbuilding, deploying, and running Mobile, Desktop,Web Applications and Web Services. Microsofts first server technology ASP (ActiveServer Pages), was a powerful and flexible"programming language". But it was too codeoriented. It was not an application framework andnot an enterprise development tool. The Microsoft .NET Framework was developed tosolve this problem.MS .NET Framework 9. .NET Frameworks Advantages: Easier and quicker programming Reduced amount of code Declarative programming model Richer server control hierarchy with events Larger class library Better support for development toolsMS .NET Framework 10. Version History 1Lecturer: Jareed Eve;10 Microsoft started development of the .NETFramework in the late 1990s (Next GenerationWindows Services (NGWS)). The first beta versions of .NET 1.0 were releasedin 2000. Version 3.0 of the .NET Framework is includedwith Windows Server 2008 and Windows Vista. Version 3.5 is included with Windows 7 andWindows Server 2008 R2, and can also beinstalled on Windows XP and Windows Server2003.[2] On 12 April 2010, .NET Framework 4 wasreleased alongside Visual Studio 2010. 11. Version History 2Lecturer: Jareed Eve;11 12. Design Features 1Lecturer: Jareed Eve;12 Interoperability Common Language Runtime engine Language independence Base Class Library Security Simplified Deployment Portability 13. Design Features: InteroperabilityLecturer: Jareed Eve;13 Ability of a system to work with or use the parts ofanother system Because computer systems commonly requireinteraction between newer and older applications,the .NET Framework provides means to accessfunctionality implemented in newer and olderprograms that execute outside the .NETenvironment. 14. Design Features: CLR EngineLecturer: Jareed Eve;14 It provides many services such as Automatic garbage collection Code access security Simplified versioning Simple and reliable deployment Deep cross-language interoperability Debugging across different languages Performance Scalability 15. Design Features: LanguageIndependenceLecturer: Jareed Eve;15 It is possible to use .NET from manyprogramming languages because they have allagreed on some standards. The Common Type System or CTS is aspecification that defines the different data typesand programming constructs. Regardless of where languages come from orwhy people choose them, the .NET framework isa feature rich library that helps with the rapiddevelopment of computer systems. 16. Design Features: Base Class LibraryLecturer: Jareed Eve;16 A library of functionality available to all languagesusing the .NET Framework. The BCL provides classes for common functions File reading and writing, Graphic rendering, Database interaction, XML document manipulation, etc. It consists of classes, interfaces of reusable typesthat integrates with CLR(CommonLanguage Runtime). 17. Design Features: SimplifiedDeploymentLecturer: Jareed Eve;17 The .NET Framework includes design featuresand tools which help manage the installation ofcomputer software It ensures that it does not interfere with previouslyinstalled software It conforms to security requirements. 18. Design Features: SecurityLecturer: Jareed Eve;18 The design addresses some of the vulnerabilities Example: buffer overflows, which have beenexploited by malicious software. .NET provides a common security model for allapplications 19. Design Features: PortabilityLecturer: Jareed Eve;19 The framework was designed to be platform-agnostic, and cross-platform implementations areavailable for other operating systems. Microsoft submitted the specifications for theCommon Language Infrastructure, the C#language, and the C++/CLI language to bothECMA and the ISO, making them available asofficial standards. This makes it possible for third partiesto create compatible implementations ofthe framework and its languages on otherplatforms. 20. .NET LanguagesCLI Implementations CLI ImplementationsLecturer: Jareed Eve;20 A# C# F# J# L# P# C++ Boo Cobra PowerShell PowerBuilder JScript .NET IronPython IronRuby Visual Basic IronLISP