Friday, February 15, 2019

Introduction to the frameworks






Declarative programming is a programming paradigm that express the logic of computation without describing its control flow. Its a program
on a higher level of abstraction than imperative programming. Declarative programming is necessary would be in web development when you
are working with framework. Imperative programming is programming paradigm that uses statements that change a program's state. Imperative programming
is necessary would be in the engineering of algorithms and other low level necessities.


Both function and procedures are subroutines that are reused prebuilt block of code. The distinction between them is function return a value
,and procedures don’t. More specially, function are built for having lower side effect and always produce same output when give same input.
In addition function are usually concerned with higher level ideas and concepts. Procedures on other hand don’t have any return value, their
main goal is to complete a given task and cause a desired side impact. A great example is procedure is a loop. The loop main goal is to cause side effect
and doesn’t return a value in of itself.


Lambda calculus is a framework and was developed to study computations with functions. Lambda calculus is a formal system in mathematical
logic for expressing computation based on function abstraction and application using variable combining and substitution .
Lambda expression can be passed around as if it was an object and executed on demand. Enable to treated functionality as method argument, or
code as data. A function can be created without belonging to any class. Lambda expressions provide that functionalities.



A functional side effect is when a function changes two way parameter or a nonlocal variable. It occurs  when the function changes. Either one of
is parameters or a global variable. The lack of side effect makes it. Easier to do formal verification of a program. Functional language as Standard ML,
Scheme and Scale don’t restrict side effects, but it customary for programmers to avoid them


Referential Transparency is a property of a part of program or programming language . This mean that the program's behaviour isn’t changed weather
the input used is reference or an actual value that the reference is pointing to








Features of OOP:
               1.OBJECT :-
                              Object is a collection of wide variety of entities. Object takes space in the memory. Objects are blueprint of classes. When
                              program is executed, object communicates by sending messages to one another. Each object contain data and code to
                              manipulate the data. Object can interact without having realize information of every other data or code.

               2.CLASS :-
                              Class is collection of objects of similar type. Once class is defined, we can create any number of objects belonging
                              that class.
              
               3.ENCAPSULATION :-
                              It is the process of grouping related attributes and methods together, giving a name to the unit and providing an interface
                              for outsider to communicate with the unit.

               4.INFORMATION HIDIND :-
                              hide certain information or implementation decision that are internal to the encapsulation structure

               5.ABSTRACTION :-
                              It is the process of removing characteristics from something in order to reduce it to a set if essential characteristics that is
                              needed for the particular system.
              
               6.POLYMORPHISM :-
                              Poly refer many. So polymorphism as the name suggest is certain item appearing in different forms of way. That making
                              a function or operator to act different forms depending on the place. They are represent as polymorphism.



Event driven programming is programming paradigm in which the flow of the program is determined by events such as user action ,sensor outputs
or messages from other programs or threads. Event-driven programming is the dominant paradigm used in graphical user interfaces and other
applications that are cantered on performing certain actions in response to user inputs. This is also true of programming for device drivers.



Markup language is used to control the presentation of data like "represent the username as bullet list or data table".Markup language don’t executed or
used to perform actions but they are used to structure data, identify data or present data.
Scripting language that aren't compiled , more like interpreted at a runtime. Its like file containing instruction for a computer to follow
to carry out task
A compiled language is the proper and formal language that has been designed to allow programmers to communicate instructions to a computer.
It is used to create programs



A virtual machine (guest) is a program that acts as a virtual computer. It runs on your current
operating system (host) and provides virtual hardware to guest OS. The guest OS runs in a window
on your host OS, just like any other program on your computer. From the guest operating system's perspective, the virtual machine is real, physical computer.



1.Reproduce the bug
                              Finding a series of actions that consistently reproduces a bug  is always the first step to debugging
2.Get familiar with the source panel UI
                              DevTools provides lot of different tools for different task , such as changing css ,profiling page load performance , and
               monitoring network request. The source panel is where you debug JavaScript
3.Pause the code with breakpoints
                              A common method for debugging a problem like this is insert a lot of console.log() statements into the code, in  order to
inspect values as the script executes
4.Step through the code
               One common cause of bugs is when a script executes in the wrong order. Stepping through your code enables you to walk through your code
               extension, one line at a time, and figure out exactly where its executing in a different order than you expected
5.Set a line of code breakpoint
               Line-of-code breakpoints are the most common type of breakpoint. When you have got a specific line of code that you want to pause on,
use line-of-code breakpoint
6.Check variable value :
               The value attend1,attend 2, and sum look suspicious. They are wrapped quotes, which means that there are string. This is good hypothesis
for the explaining the cause of the bug.Now its time to gather more information. DevTool provides  a lot of tools for information. DevTools
provides a lot of tools for examining variable values.
6.Apply a fix
               You have found a fix for the bug. All that’s left is to try out fix by editing the code and re-running the demo. You don’t need to leave
DevTools to apply the fix. You can edit JavaScript code directly within the DeveTools UI


Real case Tool can be separated into 3 types, depending on where in the development process they are most involved in:
               upper-support analysis and design phases.
               Lower-support coding phase
               integrated-also known as I-CASE support analysis, design and coding phases
workbenches:
               collection of tools that together support
               process workflows
               one or two activities where an activity is a related collection of tasks
                commercial ex:
                              PowerBuilder
                              Software Through Pictures
                              Software Architecture
Environments
               Support the complete software process or, at least , large portion of the software process.
               Normally include several different workbenches which are integrated in some way.

Framework -
A framework is a real or conceptual structure intended to serve as a support or guide for the building of something that expands the structure into something useful. Frameworks enable development of a project or solution to a specific problem. Frameworks are ready-to-use packages.
Library –
Library is a collection of precompiled routines that a program can use. Sometimes called modules. You can link that a many programs do not need to explicitly. The Library code that has already been written by other developers. A library performs specific, well-defined operations.

Plug-in-
A plug-in is an element of a software program that can be added to provide support for specific features. For example if you wanted to watch a video on a website, you may need plugin to play it because your browser doesn’t have the tools it needs.

When you call a method from a library, you are in control. But with a framework. In a framework, all the control flow is already there and there are many predefined white spots that we should fill out with our code. A framework is normally more complex. A framework can contain libraries. A framework will usually include many libraries to make your work easier.
The main difference between plugin and library is that a plugin is an extension that improves the capabilities of an application while a library is a collection of classes and functions that helps to develop a software.


                             

No comments:

Post a Comment