Contents-
- Introduction
- Project & Environment setup
- Miscellaneous
Typescript=JavaScript + something-more
It is superset of java script.
Transpilers convert the TS to latest ECMAScript/JS version
JavaScript vs typescript
TS- statically typed language, you have to define the type before using it. So it detects the unavailable methods types before runtime moreover since typescript is a superset of JS, you can also use the dynamic nature of JS where you don’t have to define the type(by letting know ts to ignore Type), sine it has defined type it’s easy to understand.
JS- Dynamically typed language, prone to error but versatile in context of web-development being used in web-browser because sometimes we expect the type to be unknown.
Brief on JS-
Initially in 1996 Netscape navigator started using JS same time others too were using but of different version .so in 1997 ECMA standardized the JS hence JS is interchangeably called ES or ECMAScript
The latest version being used is ES6.
JS code
function func_name(value){ return a1+a2; }
var a1=10;
var a2=11;
var combine_value=a1+a2;
func_name(combine_value); //function call
Note:
TS code :
function func_name(value: String){
return a1+a2;
}
var a1=10;
var a2=11;
var combine_value=a1+a2;
func_name(combine_value); //function call
Note:
Topic Contents
Following rules are described-
Introduction
JAVA – Object SERIALIZATION,
It is Java’s framework for encoding objects as byte streams (serialising) and reconstructing objects from their encoding (serialising). This mechanism is used to persist the object. This chapter focuses on the dangers of serialization and how to minimize them.
Concurrency canot be avoided it is inherent in platform(multicore) and requirement if you want to achieve better performance from multicore processors.
Motivation:
Concurrent programming is harder than single-threaded programming, because more things can go
wrong, and failures can be hard to reproduce.
Following rules are described
Following rules are desscribed
Memory Map
Objective
Following rules are described
Generic are introduced to programming language from v5, also it maintains support to Raw type.
Generic type is a class or interface followed by Parameter. the parameter is given in angular Bracket.
Generiic allow us to pass the type(Integer ,String ..user defined type) to method ,class or interface.
Parameter can be Formal or actual .
Formal Paramter is used when we declare the Generic type the actual parameter is used when we pass the values.
Why ?
It is better to detect the bug at earlist . the GENERICS provides the type safety so compiler complains when you to enter values other than one specified in generic parameter.
thus ensuring destructibility at compile time (rather than leaving it for run time error .)
MemoryMap
Introduction
Objective-