What is a Engine?

5

I read an article about Razor. This article says it's an engine view , but what's an engine ? According to the article, Razor is a new syntax that works with CSS and HTML to make life easier for programmers with cleaner and more readable code.

    
asked by anonymous 19.03.2018 / 10:44

2 answers

3

Engine is like an engine with support for several functions specific to each type of use in the case of Razor as cited is a View engine that works with graphic mode HTML and CSS, engines are made to make life easier in general of a programmer bringing with it preprogrammed functions making it easier to use on a daily basis.

There are several types of Engines like Game Engine: A well-known one is Nvidia, Unity among others.

Engines are nothing more than libraries that make it easy to compile, and it unpacks large syntaxes, just imagine if you needed to create a function to display a table of products? It could be a little painful in the case of Razor you can use the DataGrid just by passing the necessary parameters, and letting Razor do the work for you to fetch and organize the data in the table.

  

Good to know

The term "game engine" originated in the mid-1990s, especially in connection with 3D games such as first-person shooters. The first 3D engine to be used to create computer games was the Freescape Engine, developed by Incentive Software in 1986, used to create first person shooters from 1987 onwards. Game engine prices vary widely, from gratuity and lows like $ 99.00 to exorbitant amounts like $ 31,200 or more. The game development process is often streamlined, when the same game engine is used to create different games

Font

WikiPedia

    
19.03.2018 / 12:44
6

The engine in this context might be a framework , a library, a toolkit, an SDK , ie software that is available to perform a specific task and was probably developed by specialists.

The develop will likely treat like SDK or something similar when developing. But when running it will not have the full set, but only the executable that will do the job it needs, so it's just the library that will do the work.

The term is widely used in games and other forms of rendering, but can be used for a variety of qualifications. Google is a search engine .

The engine that is usually translated as engine, but I prefer mechanism. It is what makes something work, it is the main part of something bigger and without it the biggest would not serve anything or it would be very difficult to create it.

Razor is an HTML page renderer just as the browser has a renderer, but in the browser engine takes the HTML and other components and draws on the screen whatever it takes, Razor takes a code, which can have standard HTML, HTML that only it understands, and even programming (usually C #), and creates the standard pure HTML code that will be delivered to the HTTP server.

It can be used in any application that needs to generate HTML. The first use of it is rendering the view of ASP.NET MVC. It is still widely used in ASP.NET Core. But there are people using it alone, or their own MVC engines , or otherwise dealing with HTML interaction.

Razor allows you to mix different language (HTML / C #) codes, and parts of these codes are executed at the time of rendering. The first versions of it just C # could do this, but now it's even possible to use custom HTML that it understands and transforms into the default, as long as it has a component that teaches it to do the transformation properly, and this component will be written in C # in another location. So it's so powerful that you can create your own tags HTML (which browsers will not understand, so the transformation is done to a standard W3C code.

In this case all the view control controls, the model , the handling of routes, all those MVC things do not the other "parts of the car". The MVC is still an engine . You can either have motors inside motors, or auxiliary motors working in conjunction with the main.

.NET does not stop being an engine , although it is not common to use this term.

A computer is the device, but this term is rarely used. Engine is a fairly general term that has taken shape in some areas of computing.

    
21.03.2018 / 17:03