Libraries, Frameworks and Patterns - Yash-777/LearnJava GitHub Wiki

Frameworks are concerned with specific application domain

A design pattern is a type of pattern and is more like a concept, whereas a framework is something already coded to be used repetitively.


Library wiki

A library is also a collection of implementations of behavior, written in terms of a language, that has a well-defined interface by which the behavior is invoked. For instance, people who want to write a higher level program can use a library to make system calls instead of implementing those system calls over and over again.

User will call the library funciton and make use of it. Where as if you are using framework then you use JdbcTemplate class which is provide. But that JdbcTemplate function calls library funcitons and completes the work.

Java - DataBase

SQL with params - RowMapper - Map rocords with pojo class.

jt.update(emp); - pojo class (sql with params taking from pojo calss and mapp records with pojo class)


Software Framework wiki

Design patterns are the architectural building blocks of frameworks. They help make frameworks extendable and reusable. Frameworks usually contain implementations of many cooperating design patterns. Stack Post

inversion of control: In a framework, unlike in libraries or in standard user applications, the overall program's flow of control is not dictated by the caller, but by the framework.

Applciation Design and Development Framework:

Spring, Hybernate, Swings, Collections ...

Applciation Testing Framework:

JUnit, TestNG, Selenium


Software Design Patterns wiki

Factory Design Pattern

SingleTon Design Pattern: Providing single instance of a klass.

Bean Factory Design Pattern: Providing new instance form that klass funciton.

Architectural Design Pattern wiki

MVC Patternwiki stands for Model-View-Controller Pattern. This pattern is used to separate application's concerns inorder to make code reuse and parallel development.

  • Model - The model is the central component of the pattern with the pure application data. Model represents an object or JAVA POJO carrying data.
  • A view can be any output representation of information. The View presents the model’s data to the user. View represents the visualization of the data that model contains.
  • Controller - Controller acts on both model and view. It controls the data flow into model object and updates the view whenever data changes. It keeps view and model separate.

Architectures

⚠️ **GitHub.com Fallback** ⚠️