5
I read an article about Razor. That article says it’s a engine view, but what comes to be a 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 readable code.
5
I read an article about Razor. That article says it’s a engine view, but what comes to be a 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 readable code.
6
Engine in this context can be a framework, a library, a set of tools, an SDK, i.e., software that is available to perform a specific task and that has probably been developed by experts.
The developing will probably treat it as SDK or something similar when it is developing. But when it is running you will not have the complete set, but only the executable that will do the job it needs, so it is only the library that will do the job.
The term is widely used in games and other forms of rendering, but can be used for various qualifications. Google is a engine search.
The engine which is usually translated as engine, but I prefer mechanism. He is what makes something work, is the main part of something bigger and without it the biggest would be useless 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 the engine takes HTML and other components and draws on the screen whatever it takes, while Razor takes a code, which can have standard HTML, HTML that only he understands, and even programming (in general C#), and creates the pure HTML code that will be delivered to the HTTP server.
It can be used in any application that needs to generate HTML. Its first use is to render the view ASP.NET MVC. It is still widely used in ASP.NET Core. But there are people using it alone, or their own Engines MVC or other way to handle HTML interaction.
Razor allows you to mix code from different languages (HTML/C#), and for parts of these codes to be executed at the time of rendering. Early versions of it only 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# elsewhere. So he’s so powerful that you can create your own tags HTML (which browsers will not understand, so the transformation is made to a standard W3C code.
In this case all the control code of the view, the controller, the model, the treatment of routes, all those things of the MVC not the other "car parts". The MVC does not cease to be a engine. You can have engines inside engines, or auxiliary engines working in conjunction with the main.
The . NET is still a engine, although it is not common to use this term.
A computer is the device (device), but this term is rarely used. Engine is a fairly general term that has taken more shape in some areas of computing.
4
Engine is like an engine with support for various specific functions for each type of use in the case of Razor as cited is a View engine that works with HTML and CSS graphical mode, the Engines are made to facilitate the life in general of a programmer bringing with it pre-functionsprogrammed to facilitate their use in daily life.
There are several types of engines like Game Engine : One very well known is Nvidia, Unity among others.
The Engines are nothing less than libraries that facilitate their compilation, and uncomplicates large syntaxes, Imagine if you needed to create a function to display a table of products ? It could be a bit of a hassle in the case of Razor you can use Datagrid just by passing the required parameters, and letting Razor do the work for you of searching and organizing 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 shooter. 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 shooter games starting in 1987. Prices of game engines vary widely, from gratuitousness and low values, such as $99.00, to exorbitant values such as $31,200.00 or more. The game development process is often streamlined when the same game engine is used to create different games
Source
In Razor’s case, why say it’s an "engine"? When you said a library, I can imagine several classes with their functions, etc. But an engine...
yes, necesse case is a class with several functions, which grouped generate this engine; let’s imagine a motor of a car with its various parts together making it work, in the case of Razor I believe that it is in c#, it does not let itself be a library, but it gains this engine title because it has many functionality that makes it easier to savethe time and writing In the lines of code the concept of engine may seem a little complex but keeping in mind that it is a junction of functionalities that could be written by you but q by convenience are already ready
Razor is the engine, because he makes things work. He can give me examples of what the other parts of "car"?
Browser other questions tagged terminology razor engine
You are not signed in. Login or sign up in order to post.
So Enginecode would be a set of codes? for example a code that does several functions?
– Maria Clara
@Mariaclara do not know the term.
– Maniero