#clarity code

What are the Frameworks?

An introduction to frameworks and their relationship to the front-end and back-end of a website.

In the previous chapters, we discussed both front-end and back-end, as well as the difference between the two. Now, we will look at how development on both ends and their integration can be made easier through web frameworks.

Introduction 

web framework is defined as a package made up of a structure of files and folders of standardized code (HTML, CSS, JS documents, etc.), which can be used to support the development of websites as a basis to start building a site. Essentially, frameworks provide some basic, standard starter code that allows developers to build the meat of their website on.

Most websites share a very similar structure, and the aim of frameworks is to provide this common structure as a starting point so that developers don’t have to redo it from scratch and can reuse the provided code. Frameworks, therefore, serve to simplify the web development process.

MVC architecture 

Before we introduce some of the common types, frameworks, can be categorized in, let’s discuss the underlying architecture of frameworks. Most, if not all, web application frameworks rely on the Model View Controller architecture. The pattern serves to separate the application logic from the user interface, thus forming the three components that the name is comprised of.

Model

The Model stores all information about the content and structure of an application. Upon receiving user input data from the Controller, it communicates any required interface updates to the View component.

View

This refers to the application’s front-end, or what is more commonly known as the user interface. It contains information about the layout and the way users can interact with any of its parts. The View receives user input, communicates it to the Controller for processing, and updates itself according to the instructions it, in turn, receives from the Model.

Controller

The Controller is an intermediary between the Model and the View. It receives user input from the View, processes it, and mediates required changes between the two.

Types of frameworks 

There are both front-end and back-end frameworks that are very popularly used, and you may already have heard of them. Additionally, there are multiple isomorphic frameworks available that work on both the front-end and the back-end and serve as a bridge between the two.

Front-end (client-side) frameworks #

  1. Angular JS
  2. Bootstrap
  3. React.js
  4. Backbone
  5. Semantic-UI

Back-end (server-side) frameworks 

  1. Express (JavaScript)
  2. Symfony (PHP)
  3. Django (Python)
  4. Ruby on Rails (Ruby)
  5. ASP .NET (C#)

Isomorphic (client-server) frameworks 

  1. Meteor JS
  2. Lazo.js
  3. Rendr

Now that we know which web development frameworks are the most widely used, in the following lessons, we will be discussing the specific features of each of them so you can make an informed decision about which framework you might want to begin learning for your web application.

Front-end Frameworks

An overview of commonly used front-end frameworks.WE’LL COVER THE FOLLOWING

In the previous lesson, we discussed the different types of frameworks that exist and enumerated a few of each type. Now, we will briefly outline the specifics of each front-end framework to see what options are available to ease the process of developing the interface and client-side of your a

Bootstrap #

Bootstrap, which can easily be categorized as the most used open-source framework in the world, was created by Twitter developers and primarily served to ease up the process of adding CSS to HTML. Bootstrap, like any other front-end framework, includes CSS, HTML, and JavaScript components. It adheres to responsive web design standards, and thus, allows users to develop responsive websites of all complexities and sizes.

React.js #

React is a JavaScript library for building user interfaces. While there are doubts about whether it is an actual framework, it is a highly popular library that is used to build the View layer of an MVC application and warrants discussion in the context of front-end development. React is a component-based library that allows users to build encapsulated components, each of which manages its own state, and then compose them to make complex User Interfaces. The benefit of this is that when data changes, React makes sure that only the concerned components are updated. Given below is an example of what a simple React component looks like:

Backbone 

Backbone.js is an extremely light framework that allows you to structure your JavaScript code in an MVC (Model, View, Controller) form. Backbone makes use of modelsviews, and collections to ensure that your program does not become entangled in a myriad of callbacks and other extraneous pieces of code that make changes complicated. Instead, the models represent the data of the application and Backbone ensures that any changes to these models automatically trigger changes to any views that display these models.

Semantic-UI 

While Semantic-UI is a relatively new framework, it stands out in a number of ways. The primary distinction this particular framework enjoys is its simplicity. Semantic-UI uses natural language, and the code is, therefore, largely self-explanatory, thus making it highly desirable for beginners, particularly those with little or no coding experience. In addition to this, Semantic-UI is also integrated with a myriad of third-party libraries. This means that the development process becomes much easier because, for simpler applications, all the libraries you might require might already be integrated with the framework. Semantic-UI, therefore, is a great starting point for developing the front-end of beginner level websites. However, its package sizes are considerably larger than those of Foundation and Bootstrap, and it may not be a viable option when developing websites with more complex structures.

Popular Front-end Frameworks

What are the Frameworks?
What are the Frameworks? 3 What are the Frameworks?

Now that we know the many front-end frameworks that are available to streamline the front-end development process of your web application and their benefits​, let’s move on to look into the frameworks that exist for the back-end.MARK AS COMPLETED are the Framework back-end Frameworks

Enter your name:

Name :

Hello {{name}}

Enter your name:

Name :

Hello {{name}}

Back-end Frameworks

An overview of back-end frameworks that are commonly used.WE’LL COVER THE FOLLOWING

The back-end, as we have already seen, refers to the server-side of a web application. The back-end spans everything from the initial creation of the server to the handling of user requests on the application. Let us take a look at the various back-end frameworks that exist to make these tasks much easier!

Express (JavaScript) #

Express.js often referred to as the “de facto standard server framework” for Node.js, is a minimal and highly flexible Node.js web application framework that provides a robust set of features for web applications. The idea behind Express is to simplify the back-end development process enough to reduce basic back-end features such as creating an HTTP server from multiple, unintelligible lines of Node.js code, to a single instruction, while simultaneously keeping the core syntactical and logical characteristics of Node.js intact.

const express = require('express')
const app = express()
const port = 3000
const host = '0.0.0.0'

app.get('/', (req, res) => res.send('Welcome to my first Express app!'))
app.get('/name', (req, res) => res.send(process.env.myname || 'No name provided'))
app.listen(port, host, () => console.log(`Example app listening on port ${port}!`))

Symfony (PHP) #

Symfony is a web development framework for PHP. The key idea behind Symfony is that it is essentially a set of reusable components. The benefits of this are obvious; with over 30 standalone components at your disposal, the process of writing an application becomes considerably simplified and, consequently, much easier and more efficient. Symfony, like the previous frameworks we have discussed, allows for more compact, readable, and simple code. This is beneficial because it allows you to focus on the higher-level functionality you want to implement as the more mundane tasks become confined to much smaller pieces of code that do not need to be thought about from scratch.

Django (Python) #

Django is a high-level Python web framework that enables the rapid development of secure and maintainable websites. Django, like Express, takes care of reducing code for basic functionalities to simple instructions, so you can focus on writing your application and implementing more specific functionality without needing to reinvent the wheel and getting caught up in needlessly long bouts of code in doing so!

Ruby on Rails (Ruby) #

Ruby on Rails, also known as Rails, is a server-side web application framework written in Ruby. Rails is built on the Model View Controller architecture that we have previously studied, and it provides default structures for everything that goes into each component, including databases, several common web services as well as web pages themselves. Ruby on Rails, therefore, separates the process of web development into simplified components and provides a basic structure for each element any given component comprises of, thus making it immensely convenient for users to build their own specific functionality on top of these provisional structures without having to worry about starting from the very basics.

ASP .NET (C#) #

ASP.NET is an open-source, server-side web development framework for building modern web applications and services using .NET or any language supported by .NET. ASP .NET was developed by Microsoft to facilitate the process of developing dynamic web pages, and it has, therefore, considerably simplified the process of creating websites based on HTML5, CSS, and JavaScript. As a result, it has made it possible for users to create websites that are not only simple and fast but also have the capacity to scale to millions of users.


That covers the variety of both back-end and front-end frameworks you can choose from to build your first website. However, these aren’t all the frameworks you can consider. In the next lesson, we will discuss the​ third type of framework you can choose from called isomorphic frameworks.MARK AS COMPLETED←    BackFront-end FrameworksNext    →Isomorphic Frameworks

Stuck? Get help on   rview of back-end frameworks that are commonly used.

Asad noul

Very innovative element of life before it free chili, football author who will not bow smile. Maecenas arrows bananas nulla. In order to accu. Tomorrow, Bureau of passengers.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker