object oriented progring in javascript

October 16, 2014

object oriented progring in javascript :

if there is no reusability then there is no need to keep the function name in memory .so go for anonymous or lamba functions

self invoking in javascript.

variables cannot be forward referenced
funcations can be forward referenced

too many arguments will be ifnoted
too less will be undefined

can be called in four ways:
1.as a function
2.as a method of another function
3.call and apply
4.as a constructor
5. inner function
6. inner function can acces the variables of outside functions

call method
Apply methods in javascript

in javsript scope is defnined by function and not by block

javascript closure.

undefined vs null
null : compiler is telling able to identify u but u have not given any value
undefined means : compiler is telling not able to identify u

———

to achieve inheritance, and obj oriented features in javscript “prototype based progring” was introduced.

namespace: grouping of all classes

in javscript namespace will be treated as another object

“this” keyword

extension methods using prototype keyword

there is no class,namespace concepts in javascript but only functions r ther

how to achieve inheritance in javscript
Object.Create

there is no interface concept to achieve inheritance like in c#

———————-

object oriented progring in javascript :

Prototype based programing.
Namespace –it is nothing but another object
contructor– a function itself constructor here.
properties-variables of function
methods
extension methods using prototype keyword
private variables
inheritence
abstruct
object method calling
function method calling
apply, call keywords
scope of variables in function
closure **
-> javascript garbage collector eg: if you declared and called a function named “fun” inside of “circus” function that “fun function ” wo’t went off from memory untill “circus ” function memory sruf off by garbage collector
->anomysys function
-> javascript arrays are not type specific
-> calling a function as constructor

——————————————————

if there is no reusability then there is no need to keep the function name in memory .so go for anonymous or lamba functions

self invoking in javascript.

variables cannot be forward referenced
funcations can be forward referenced

too many arguments will be ifnoted
too less will be undefined

can be called in four ways:
1.as a function
2.as a method of another function
3.call and apply
4.as a constructor
5. inner function
6. inner function can acces the variables of outside functions

call method
Apply methods in javascript

in javsript scope is defnined by function and not by block

javascript closure.

undefined vs null
null : compiler is telling able to identify u but u have not given any value
undefined means : compiler is telling not able to identify u

Data Access throw entity framework and Fluent API:-

? Micorsoft ORM Tool-entity Framework
? What is agile
? Data annotations / comments
? DTO(Data transfer Object) –it means pulling entire layer and objects and using it
? Is it database version dependent? Ans) same conditions need to take as per general DB migration
? Isolation from other layers entity framework
? Development approache:- DB First,Model First,Code First
? Architectural Concers:-
1) Persistence Ignorence(POCO)
2) Application patterns(Repository & unit work)
3) N-tire application
? Default mapper class will crated by frame work.
? What id Doamin Driven design ?
? Bulid with patterns of entity entity framework
? POCO?
? Sql Helper?
? 1)Entity Object(DTO),2)mapper class for DTO, data context & add mappings
? Lazy loading
? Attributes & annotations
? Indexing & performance in production deployment need to do as in separate concern
? What is n-Hybernate.

Building APP:
? Two kind of apps:-
1) Native( it’s like windows application in mobile)
2) Hybrid ( its like web application in mobile)

? Requirements :- 1) simulator
2) Phone gap not know what it is
3) IDE eg: eclipse
4) Plugins eg: ADT plugin
5) Java
? PhoneGAP.com go to this link for more info

———
JavaScript OOD :-

to achieve inheritance, and obj oriented features in javscript “prototype based progring” was introduced.

namespace: grouping of all classes

in javscript namespace will be treated as another object

“this” keyword

extension methods using prototype keyword

there is no class,namespace concepts in javascript but only functions r ther

how to achieve inheritance in javscript
Object.Create

there is no interface concept to achieve inheritance like in c#
———————————