Skip to main content

Library v/s Framework

 

 

 

 


Library

A library is a functionality grouped and packaged together. A library performs specific, well-defined operations. A library is just a collection of class definitions. The reason is it simply code reuse, in other words, gets the code that has already been written by other developers.
 

Framework

A framework on the other hand more complex. It defines a skeleton where the application defines its own features to fill out the skeleton.


Springboot/Rails are popular framework that deals with complexity of handling http request response cycle. 

Springboot - makes it easy to create stand-alone, production-grade Spring based Applications. 

It is an opinionated framework.

Most Spring Boot applications need minimal Spring configuration.

Rails - is a web application development framework written in the Ruby programming language. 

It is designed to make programming web applications easier by making assumptions about what every developer needs to get started. 

It allows you to write less code while accomplishing more than many other languages and frameworks.



React on the other hand is a popular UI library not a framework.

 
 
When you call a method from a library, you are in control. But with a framework, the control is inverted: the framework calls you.

A framework can contain libraries. A framework will usually include many libraries to make your work easier.

Thank you folks.


Most viewed

Understanding ASCII / Unicode character encoding format

Computer stores everything in binary format. The process of converting a value into binary is called Encoding and the the process of converting value from binary is called Decoding. value --> binary  ::     Encoding  binary --> value   ::    Decoding for example: A number 12 is stored in its binary format as below.               12 ---> 00001100 but how are the characters are stored? If we want to store a character 'a' what formatting should be used ? It easiest way is to map the characters to number and store the binary format of that number. So, the character 'a' is represented as number 97 is stored as 1100001.  ASCII: In ASCII encoding format, 128 unique characters are identified and mapped with numbers (mostly English). One byte is used to represent all the characters. It uses 7 bits to represent numeric value 0 to 127 (total 128 characters).  The most significant bit is a...