Professional Documents
Culture Documents
12/24/2020
1. INTRODUCTION
.NET FRAMEWORK AND COMMON LANGUAGE RUN TIME (CLR)
What RAD?
The RAD (Rapid Application Development) model is based on prototyping and iterative
development with no specific planning involved. The process of writing the software itself
involves the planning required for developing the product.
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 2
12/24/2020
Advantages
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 3
12/24/2020
Disadvantage
Dependency on technically strong team
members for identifying business
requirements.
Only system that can be modularized can
be built using RAD.
Requires highly
skilled
developers/designers.
High dependency on modeling skills.
Inapplicable to cheaper projects as
cost of modeling and automated code
generation is very high.
Management complexity is more.
Suitable for systems that are
component based and scalable.
Requires user involvement
throughout the life cycle.
Suitable for project requiring shorter
development times.
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 4
12/24/2020
If any one of these ingredients is inadequate, development will not be high speed. Development
lifecycles, which weave these ingredients together as effectively as possible, are of the utmost
importance.
.NET Framework
.NET framework is a software framework primarily for Microsoft Windows. It
includes a large library & provides language interoperability across several
programming languages. Programs written for the .NET Framework execute in a
software environment as opposed to a hardware one for most other programs. Common
examples of such programs include Visual Studio, Team Explorer UI, Sharp Develop .
Programmers combine their own source code with the .NET Framework and
other libraries. The .NET Framework is intended to be used by most new
applications created for the Windows platform.is a complete environment that allows
developers to develop, run, and deploy the following applications:
Console applications
Windows Forms applications
Windows Presentation Foundation (WPF) applications
Web applications (ASP.NET applications)
Web services
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 5
12/24/2020
Windows services
Service-oriented applications using Windows Communication Foundation (WCF)
Workflow-enabled applications using Windows Workflow Foundation (WF)
.NET Framework also enables a developer to create sharable components to be used
in distributed computing architecture.
NET Framework supports the object-oriented programming model for
multiple languages, such as Visual Basic, Visual C#, and Visual C++
. NET Framework supports multiple programming languages in a manner that allows
language interoperability. This implies that each language can use the code written
in some other language.
The following are the key components of .NET Framework:
.NET Framework Class Library
Common Language Runtime
Dynamic Language Runtimes (DLR)
Application Domains
Runtime Host
Common Type System
Metadata and Self-Describing Components
Cross-Language Interoperability
.NET Framework Security
Profiling
Side-by-Side Execution
.NET built into Windows; running an
executable invokes the CLR automatically
instead of explicitly invoking the JVM
• .NET added improvements such as native
XML support, new features to CLR; spurred
Java 8
• About 3 million C++ developers, 3-8 million
VB developers, around 1 million C# developers
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 6
12/24/2020
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 7
12/24/2020
• COBOL
• Eiffel
• Fortran
• Mercury
• Pascal
• Python
• Ruby
• SML
Perl
Smalltalk
VB.NET
VC++
F#
Scheme
….
More are under
development
1.3 Common Language Runtime(CLR)
The CLR is the key component of the .NET Framework. It is a common compiler for all
Microsoft programming
language. It compiles all Microsoft languages to one Machine Language.
The CLR Allows programmers to write code in different Microsoft languages of
their choice, and ensure that the
parts can work together In addition it provides programmers with services for memory
management, data types, security etc.The CLR is at the core of the .NET platform - the
execution engine
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 8
12/24/2020
• Code that relies on COM and the Win32 API is “UnManaged Code” (e.g. built with
Visual Studio 6.0, VB6)
1.4 Languages
• Common Type System makes
interoperability seamless between languages
• Class in one language can inherit from a class in
another language
• Exceptions can be thrown across languages
• Makes it easier to learn a new .NET language
since the same tools and classes are in place
• Can debug across languages
A. Microsoft Intermediate Language (MSIL)
The .NET Framework is shipped with compilers of all .NET programming languages to
develop programs. Each .NET compiler produces an intermediate code after compiling
the source code.
2 The intermediate code is common for all languages and is understandable only to .NET
environment. This intermediate code is known as MSIL.
B. IL (Intermediate Language )
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 9
12/24/2020
IL is then converted to machine code at the point where the software is installed, or at
run-time by a Just-In-Time (JIT) compiler.
CLR also provides various services to execute processes, such as memory management
service and security services.
CLR performs various tasks to manage the execution process of .NET applications.
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 10
12/24/2020
Metadata in the load file along with the MSIL enables code to be self-describing - no
need for separate type libraries, IDL, or registry entries. • When code is executed by the
CLR, a JIT compilation step occurs.
– Code is compiled method-by-method to native machine code as
methods are invoked
– Results in performance slowdown when a program is first
executed, but can be efficient for code that is never executed
– Subsequent invocations reuse compiled code, so no slowdown
The JIT compiler is an important element of CLR, which loads MSIL on target machines
for execution. The MSIL is stored in .NET assemblies after the developer has compiled
the code written in any .NET-compliant programming language, such as Visual Basic and
C#.
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 11
12/24/2020
language a/ C#
b/ COBOL
c/ Eiffel
d/ Fortran
e/ F#
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 12
12/24/2020
1. Analyze the problem required to be solved: Design flow chart, algorithm etc.
2. Break the problem into smaller manageable pieces, such as the Rental
Module, Return Module, Customer Information Module etc.
3. Design the UI for each of the pieces using Forms , controls or any structure
supplied by the language to implement the UI
4. Write code to implement each piece using variables, functions & procedures to
implement each of the modular
pieces.
Note that the focus is on solving the problem via the programming code and breaking
the problem into smaller manageable pieces. Dividing a program into
Procedures/functions and modules is one of the cornerstones of structured or
procedural programming. But here as some of the drawbacks: As programs grow larger
and more complex, even the procedural programming approach begins to show signs of
strain. Projects can become too complex, schedules slip, more programmers are added,
cost skyrockets etc. In Procedural programming data or the variables & data structures
that hold or store the data, are usually unprotected and may be accessible to functions &
procedures that have no business changing them, therefore they can be easily corrupted.
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 13
12/24/2020
Procedural programs are difficult to design because their chief components, procedures,
functions and data structures don't model the real world very well.
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 14
12/24/2020
1. Analyze the problem required to be solved: Design flow chart, algorithm etc. In OOP, there
are three phases or steps required for developing an Object-Oriented System:
Analysis and Design are very important steps. This is where all the “brain work” is done
to developing the system and
implementing the algorithm.
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 15
12/24/2020
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 16
12/24/2020
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 17
12/24/2020
I. FORM I – (Default) this is the default method you are accustomed to, program starts
via a FORM: What this means is that when the project executes the Startup Form will
display and control the flow of the program Control or flow of program is done via a
Form. In a standard Windows Application, this is by default automatically assigned to
II. FORM1 I call this method of starting a Windows Application as a Form-Driven
Application For this method of executing the project, the property is named Startup
Form
NOTE! There is a checkbox for a property named Enable application framework in the
property page. This property when checked, displays the startup option as Startup Form. This
property is checked by default, so you don’t need to do anything, but if you uncheck this box,
it will show as Startup Object (More on this below). The figure below shows the default
startup option as Startup Form:
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 18
12/24/2020
contain a method named Sub Main() that can be used as the starting point of the
application. Note this applies to both Console Applications and Windows
Applications.
contain variable declarations, functions & procedures or source code ONLY! No
forms!
are a good place to put program code that may be common to several forms or
other modules
contain variables & Methods.
are like forms but without the visual!
Sample example
Q1. Explain Objects and Modules? What are the types of Modules in VB?
Ans.: Objects : Objects are the real world entities. People, companies, employees,
fan and ledger entries are all types of objects. In object oriented terms, the word
object is used to describe one specific thing like car. Objects have an identity and this
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 19
12/24/2020
identity is defined with properties. A car has its name, model, cost and color.
Objects also do things. E.g. the car accelerates, races etc. The things an
object can do are called its behaviours. Objects can be anything that exists in real
world. They can be conceptual things, such as engineering process or payroll. These
conceptual things are not tangible but are conceptual. The same object-oriented
concepts apply regardless of whether the object is based on the real world, on a
concept, or on the implementation.
Modules: Modules are collection of code and data that function something like
objects in objects oriented programming, but without defining OOP characteristics
like inheritance, polymorphism etc. The concept behind modules is to enclose
procedures and data in a way that hides them from the rest of the program. The two
main types of procedures used in VB :
Event and General : In VB event procedures are invoked in response to
keyboard, mouse or system action. Your code can also explicitly invoke
16 event procedures. The maximum number of events a control can have is
fixed. Event procedures are stored in a form module and are private by
default. A general procedure is not executed unless explicitly invoked.
You can create a general procedure either by choosing the procedure from
the insert menu or by typing the procedure heading Sub followed by the
procedure name on a blank line. Event and general procedures are further classified as
: Sub & Function.
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.
RAPID APPLICATION DEVELOPMENT (RAD)| 20
12/24/2020
ASSIGNMENT TWO(25%)
Q1. What are the Branching Statements in Visual Basic? OR What are the different conditional
constructs in Visual Basic?
Q2. Explain different Looping Constructs in VB? OR What are the different types of Do……
Loop?
Q3. What are Forms in Visual Basic? OR Explain how working of Forms is being implemented?
Q4. What is a Text Box Control? OR What are the most important characteristics of a Text Box
Control?
Q5. What are the File Controls that are used in Visual Basic?
RIFTVALLY UNIVERSITY, JIMMA COMPUS CS 3RD YEARS BOTH REGULR AND EXTENSSION.