Posts

Showing posts from May, 2020

DBMS-Data Models

Image
Data Models   A data model is a picture or description which shows how the data is to be arranged to achieve a given task. It is a clear model which specifies how the data items are arranged in a given model. Some data models which gives a clear picture which shows the manner in which the data records are connected or related within a file structure. These are called structural data models. DBMS organize and structure data so that it can be retrieved and manipulated by different users and application programs The data structures and access techniques provided by a particular DBMS are called its data model.     Types Of Data Models:   1)Hierarchical databases model 2)Network databases model 3)Relational databases model 4) Object oriented databases model   Hierarchical databases model:   Hierarchical Databases is most commonly used with mainframe systems. It is one of the oldest methods of organizing and storing data and ...

Angular -Lazy Loading

Lazy Loading   What Is Lazy Loading..? Lazy loading is a process were angular loads the modules only when it is needed without loading all at once. It is also called as on-demand loading.   Why Lazy Loading..?   Lazy loading modules helps us decrease the start-up time. Angular app can become bigger in size if we add more and more modules for improving features of the app. As the app grows bigger the slower it loads.   By Loading only a part of the app (i.e. lazy loading), the app appears to run faster to the user. The faster loading app gives you a performance boost and results in good user experience.   Lazy loading reduce the bundle size of the app which help to boot fast.   How Lazy loading Work…? In angular lazy loading works on module level. Single Components cannot be loaded lazily. Angular Router Module is the place where we implement lazy Loading. The loadChildren method of the Angular Router is responsible to load the ...

OOPS Concepts-JAVA

Image
Java OOPs (Object-Oriented Programming) Concepts(oo) Note: This blog is just to share our Knowledge if there are any mistakes please let us know. What is oo programming..? OO has strong historical roots in other paradigms and practices. It came about to address problems commonly grouped together as the “software crisis.” It does not solve any questions its just a piece of solution for problems.   Object Oriented programming gives solution to a problem by using these concepts. OOPs Concept in Java ·         Polymorphism ·         Inheritance ·         Encapsulation ·         Abstraction ·         Class ·         Object ·         Method ·         Message Passing   Note: We are...

Angular 2+ :@view Child

Image
ANGULAR2 @view Child Viewchild offers one way interaction fro . m parent to child. There is no return mes . sage or output from child when ViewChild is used. ViewChild is used for component to template communication. It is used to ref . erence a directive or element or component.  Example  let element = document.getElementById('elementId'); @ViewChild('elementV . ariable') elementRef; // template reference variable @ViewChild(NgModel) filterInput: NgModel; // a ngular directive - on template would look like: <input [(ngModel)]='listfilter'> @ViewChild(Pare . ntComponent) Parent: (ParentComponent) // child com . ponent - on template would look like: <child-component[input1]='some.input'> Detailed Example We ha . ve a DataListC . omponent that shows som . e information. DataListComponent has PagerComponent as it's child. When user . makes a search on DataListComponent, it gets a data from a servic . e and ask Pag...

DATA Structures :Binary Search Trees

Image
Bnary Search Trees Binary tree is a tree that each node in it has maximum of two children. Binary search tree (BST) is a binary tree which its elements positioned in special order. In each BST all values(i.e key) in left sub tree are less than values in right sub tree. This is a simple implementation of Binary Search Tree Insertion using Python. class Node:   def __init__(self, val):  self.l_child = None  self.r_child = None  self.data = val def insert(root, node):        if root is None:             root = node        else :             if  root.data > node.data:                  if root.l_child is None:                       root.l...