NopCommerce ID-Less URL Structure Demystified π
The link for my NopLite - nopCommerce Responsive Theme is β¨ :
You don't see ANY integer in the URL, but nopCommerce somehow knows how to map from the URL to the appropriate ID. β
On the other hand, the nopCommerce 2.65 URL for my NopLite theme would have been ππ» :
Note the '7' somewhere in between the URL, that's the Integer Product ID. π
So the question is, how does nopCommerce 2.70 and 2.80 know the ID without looking the IDβ
https://t.me/pgimg/105
[ Article ] : http://bit.do/nopu
γ°γ°γ°γ°γ°γ°
#AspMvc #Routing #NopCommerce
@ProgrammingTip
The link for my NopLite - nopCommerce Responsive Theme is β¨ :
http://www.pronopcommerce.com/noplite-nopcommerce-responsive-theme
You don't see ANY integer in the URL, but nopCommerce somehow knows how to map from the URL to the appropriate ID. β
On the other hand, the nopCommerce 2.65 URL for my NopLite theme would have been ππ» :
http://www.pronopcommerce.com/p/7/noplite-nopcommerce-responsive-theme
Note the '7' somewhere in between the URL, that's the Integer Product ID. π
So the question is, how does nopCommerce 2.70 and 2.80 know the ID without looking the IDβ
https://t.me/pgimg/105
[ Article ] : http://bit.do/nopu
γ°γ°γ°γ°γ°γ°
#AspMvc #Routing #NopCommerce
@ProgrammingTip
Telegram
Programming Tips Resources
Pretty Checkbox π
A pure CSS library to beautify checkbox and radio buttons. β¨
Framework Compatability π₯ :
β’ Angular
β’ Bootstrap
β’ React
β’ Vue
https://t.me/pgimg/106
[ Website ] : http://bit.do/csspr
γ°γ°γ°γ°γ°γ°
#CSS #Library
@ProgrammingTip
A pure CSS library to beautify checkbox and radio buttons. β¨
Framework Compatability π₯ :
β’ Angular
β’ Bootstrap
β’ React
β’ Vue
https://t.me/pgimg/106
[ Website ] : http://bit.do/csspr
γ°γ°γ°γ°γ°γ°
#CSS #Library
@ProgrammingTip
Telegram
Programming Tips Resources
HTTP codes as Valentineβs Day comics π
With Valentineβs Day around the corner, it is a time for romantic hopefuls to ask out the object of their affection, and await an answer. π€
It could be a simple βyes,β a sad βno,β or a cryptic βI donβt think about you that way, but maybe we can grab a coffee tomorrowββ
Which brings us to HTTP (Hypertext Transfer Protocol) codes. π
When a URL is typed in a browser, a request is sent out to the server and the browser awaits an answer, just like in our scenario. β»οΈ
These answers come in the form of an HTTP code, which is a three-digit number that maps to an answer. 2οΈβ£0οΈβ£0οΈβ£
With the image of Valentineβs Day in mind, here are a few likely scenarios. πβ€οΈ
https://t.me/pgimg/107
[ Article ] : http://bit.do/httpval
γ°γ°γ°γ°γ°γ°
#HTTP #Valentine #Fun
@ProgrammingTip
With Valentineβs Day around the corner, it is a time for romantic hopefuls to ask out the object of their affection, and await an answer. π€
It could be a simple βyes,β a sad βno,β or a cryptic βI donβt think about you that way, but maybe we can grab a coffee tomorrowββ
Which brings us to HTTP (Hypertext Transfer Protocol) codes. π
When a URL is typed in a browser, a request is sent out to the server and the browser awaits an answer, just like in our scenario. β»οΈ
These answers come in the form of an HTTP code, which is a three-digit number that maps to an answer. 2οΈβ£0οΈβ£0οΈβ£
With the image of Valentineβs Day in mind, here are a few likely scenarios. πβ€οΈ
https://t.me/pgimg/107
[ Article ] : http://bit.do/httpval
γ°γ°γ°γ°γ°γ°
#HTTP #Valentine #Fun
@ProgrammingTip
Telegram
Programming Tips Resources
Pug πΆ
Pug is a high-performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and browsers. β
Pug is a clean, whitespace sensitive syntax for writing html. π
Here is a simple example π :
Becomes :
πΈπΉπΈπΉ
β Implementations in other languages πΎ
Ports with very close syntax, adapted to other languages :
β’ PHP
β’ Java
β’ Python
β’ Ruby
β’ C# (ASP.NET Core)
https://t.me/pgimg/108
[ Github ] : http://bit.do/pugv
γ°γ°γ°γ°γ°γ°
#ViewEngine #TemplateEngine
@ProgrammingTip
Pug is a high-performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and browsers. β
Pug is a clean, whitespace sensitive syntax for writing html. π
Here is a simple example π :
doctype html
html(lang="en")
head
title= pageTitle
script(type='text/javascript').
if (foo) bar(1 + 5)
body
h1 Pug - node template engine
#container.col
if youAreUsingPug
p You are amazing
else
p Get on it!
p.
Pug is a terse and simple templating language with a
strong focus on performance and powerful features.
Becomes :
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pug</title>
<script type="text/javascript">
if (foo) bar(1 + 5)
</script>
</head>
<body>
<h1>Pug - node template engine</h1>
<div id="container" class="col">
<p>You are amazing</p>
<p>Pug is a terse and simple templating language with a strong focus on performance and powerful features.</p>
</div>
</body>
</html>
πΈπΉπΈπΉ
β Implementations in other languages πΎ
Ports with very close syntax, adapted to other languages :
β’ PHP
β’ Java
β’ Python
β’ Ruby
β’ C# (ASP.NET Core)
https://t.me/pgimg/108
[ Github ] : http://bit.do/pugv
γ°γ°γ°γ°γ°γ°
#ViewEngine #TemplateEngine
@ProgrammingTip
Telegram
Programming Tips Resources
Using Google reCAPTCHA in ASP.NET MVC πΎ
reCAPTCHA is a free service that protects your website from spam and abuse. β
reCAPTCHA uses an advanced risk analysis engine and adaptive Captchas to keep automated software from engaging in abusive activities on your site. π«
It does this while letting your valid users pass through with ease. π
This article shows how to integrate reCAPTCHA version 2.0 into an ASP.NET MVC website in clean way. β‘οΈ
Article Author : @MoienTJ
https://t.me/pgimg/109
[ Article ] : bit.do/recaptcha
γ°γ°γ°γ°γ°γ°
#reCaptcha #AspMvc
@ProgrammingTip
reCAPTCHA is a free service that protects your website from spam and abuse. β
reCAPTCHA uses an advanced risk analysis engine and adaptive Captchas to keep automated software from engaging in abusive activities on your site. π«
It does this while letting your valid users pass through with ease. π
This article shows how to integrate reCAPTCHA version 2.0 into an ASP.NET MVC website in clean way. β‘οΈ
Article Author : @MoienTJ
https://t.me/pgimg/109
[ Article ] : bit.do/recaptcha
γ°γ°γ°γ°γ°γ°
#reCaptcha #AspMvc
@ProgrammingTip
Telegram
Programming Tips Resources
Securing ASP.NET Core 2.0 Applications with JWTs + Auth0 π
JSON Web Tokens, often shortened with JWTs, are gathering more and more popularity in the Web environment. π
It is an open standard that allows transmitting data between parties as a JSON object in a compact and secure way. π
They are usually used in authentication and information exchange scenarios, since the data transmitted between a source and a target are digitally signed so that they can be easily verified and trusted. β
Let's take a look at how to set up a ASP.NET Core 2 application with JWT support by creating a Web API application. β¨
https://t.me/pgimg/110
[ Article ] : http://bit.do/auth0
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #JWT
@ProgrammingTip
JSON Web Tokens, often shortened with JWTs, are gathering more and more popularity in the Web environment. π
It is an open standard that allows transmitting data between parties as a JSON object in a compact and secure way. π
They are usually used in authentication and information exchange scenarios, since the data transmitted between a source and a target are digitally signed so that they can be easily verified and trusted. β
Let's take a look at how to set up a ASP.NET Core 2 application with JWT support by creating a Web API application. β¨
https://t.me/pgimg/110
[ Article ] : http://bit.do/auth0
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #JWT
@ProgrammingTip
Telegram
Programming Tips Resources
A Pattern is a solution to a problem in a context. β
We're going to step throught each of these parts, context, problem and solution β¨ :
The context is the situation in which the pattern applies. This should be a recurring situation. π¨π»βπ§
The problem refers to the goal you are trying acheive in this context, but it also refers to any constraints that occur in the context. π
The solution is what you're after : a general design that anyone can apply which resolves the goal and set of constraints. π
β Example
Problem: How do I get to work on timeβ
Context: I've locked my keys in the car. π
Solution: Break the window, get in the car, start the engine and drive to work. π
γ°γ°γ°γ°γ°γ°
#DesignPatterns #Tips
@ProgrammingTip
We're going to step throught each of these parts, context, problem and solution β¨ :
The context is the situation in which the pattern applies. This should be a recurring situation. π¨π»βπ§
The problem refers to the goal you are trying acheive in this context, but it also refers to any constraints that occur in the context. π
The solution is what you're after : a general design that anyone can apply which resolves the goal and set of constraints. π
β Example
Problem: How do I get to work on timeβ
Context: I've locked my keys in the car. π
Solution: Break the window, get in the car, start the engine and drive to work. π
"If you find yourself in a context with a problem that has a goal that is affected by a set of constraints, then you can apply a design that resolves the goal and constraints and leads to a solution."
γ°γ°γ°γ°γ°γ°
#DesignPatterns #Tips
@ProgrammingTip
If you don't need it now, don't do it nowβοΈ
Design Patterns are powerful, and it's easy to see all kinds of ways they can be used in your current designs.β‘οΈ
Developers naturally love to create beautiful architectures that are ready to take on change from any direction.π
If you have a practical need to support change in a design today, go ahead and employ a pattern it handle that change. β
However, if the reason is only hypothetical, don't add the pattern, it is only going to add complexity to your system, and you might never need it. β
γ°γ°γ°γ°γ°γ°
#DesignPatterns #Tips
@ProgrammingTip
Design Patterns are powerful, and it's easy to see all kinds of ways they can be used in your current designs.β‘οΈ
Developers naturally love to create beautiful architectures that are ready to take on change from any direction.π
If you have a practical need to support change in a design today, go ahead and employ a pattern it handle that change. β
However, if the reason is only hypothetical, don't add the pattern, it is only going to add complexity to your system, and you might never need it. β
γ°γ°γ°γ°γ°γ°
#DesignPatterns #Tips
@ProgrammingTip
14 Latest and Best 404 Error Page Designs for Webs/Mobile Apps β¨
A 404 error page, which often serves to alert web/app visitors that the page they are trying to reach does not exist, is often regarded as one of the most possible elements to lose users/visitors with boring and dull logging-in/out/loading/leading pages in a web/app. π
However, that does not mean such error pages will be a nightmare in all cases. β
Actually, a creative, cool, interesting or informative 404 error page can not only lead customers to other parts of your websites/apps smoothly, but also reduce customer frustration and let them stay on the site/app much longer. π
Letβs keep reading this article and enjoy 14 latest and best 404 error page designs to get inspiration and learn how to make a beautiful, interesting and attractive 404 error not found page design. β‘οΈ
https://t.me/pgimg/111
[ Article ] : https://goo.gl/A5mJjx
γ°γ°γ°γ°γ°γ°
#Design #UI #UX
@ProgrammingTip
A 404 error page, which often serves to alert web/app visitors that the page they are trying to reach does not exist, is often regarded as one of the most possible elements to lose users/visitors with boring and dull logging-in/out/loading/leading pages in a web/app. π
However, that does not mean such error pages will be a nightmare in all cases. β
Actually, a creative, cool, interesting or informative 404 error page can not only lead customers to other parts of your websites/apps smoothly, but also reduce customer frustration and let them stay on the site/app much longer. π
Letβs keep reading this article and enjoy 14 latest and best 404 error page designs to get inspiration and learn how to make a beautiful, interesting and attractive 404 error not found page design. β‘οΈ
https://t.me/pgimg/111
[ Article ] : https://goo.gl/A5mJjx
γ°γ°γ°γ°γ°γ°
#Design #UI #UX
@ProgrammingTip
Telegram
Programming Tips Resources
ASP.NET Core 2 β Global Model Validation β οΈ
We use a lot of repetitive code in our actions. β»οΈ
Inside of our controller actions we usually check if the model is valid by using ModelState property available on MVCβs base controller class :
The bad thing about is that we repeat this piece of code throughout a lot of our actions. β
How we can make it betterβ
This article shows you how to validate ModelState with a global filter. π
https://t.me/pgimg/112
[ Article ] : bit.do/mval
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #Validation
@ProgrammingTip
We use a lot of repetitive code in our actions. β»οΈ
Inside of our controller actions we usually check if the model is valid by using ModelState property available on MVCβs base controller class :
if (!ModelState.IsValid)
return BadRequest(ModelState);
The bad thing about is that we repeat this piece of code throughout a lot of our actions. β
How we can make it betterβ
This article shows you how to validate ModelState with a global filter. π
https://t.me/pgimg/112
[ Article ] : bit.do/mval
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #Validation
@ProgrammingTip
Telegram
Programming Tips Resources
Controller Lookup & Default Controller Factory π
As the name, the Controller factory is the component responsible for searching and creating controllers.π·
Like many other components, ASP.NET MVC has a built-in factory named DefaultControllerFactory that's pretty much sufficient in most cases. π
Searching a controller is a perform intensive job and the DefaultControllerFactory does some efficient caching mechanism to avoid looking for controllers every time when there is a need. β
In this article we are going to explore how the DefaultControllerFactory searches for a controller and what kind of strategies it uses to do the process efficiently. β‘οΈ
https://t.me/pgimg/113
[ Article ] : bit.do/cfac
γ°γ°γ°γ°γ°γ°
#AspMvc #Controller #Depth
@ProgrammingTip
As the name, the Controller factory is the component responsible for searching and creating controllers.π·
Like many other components, ASP.NET MVC has a built-in factory named DefaultControllerFactory that's pretty much sufficient in most cases. π
Searching a controller is a perform intensive job and the DefaultControllerFactory does some efficient caching mechanism to avoid looking for controllers every time when there is a need. β
In this article we are going to explore how the DefaultControllerFactory searches for a controller and what kind of strategies it uses to do the process efficiently. β‘οΈ
https://t.me/pgimg/113
[ Article ] : bit.do/cfac
γ°γ°γ°γ°γ°γ°
#AspMvc #Controller #Depth
@ProgrammingTip
Telegram
Programming Tips Resources
Render Action & Render Partial.png
1 MB
Nancy wants to display the logged-in users in a partial view. π€
She got confused whether to use RenderAction or RenderPartial.π§
Mark clarifies her when to use what. β
γ°γ°γ°γ°γ°
#AspMvc
@ProgrammingTip
She got confused whether to use RenderAction or RenderPartial.π§
Mark clarifies her when to use what. β
γ°γ°γ°γ°γ°
#AspMvc
@ProgrammingTip
Principle of Least Surprise π³
Principle Statement :
In interface design, always do the least surprising thing. π¨
Description :
Never surprise the user. β
An interface should behave exactly as the user thinks it behaves. β
What surprises the user depends on the kind of interface and the type of user. π₯
The central idea of PLS is to think about how the user would want to use the interface. π€³π»
Principle of least astonishment is when you, as an API designer, prevent your users from saying WAT. π±
πΈπΉπΈπΉ
Examples :
1οΈβ£ Consider an elevator with a button next to it that says "call". βοΈ
When you press the button, the payphone phone rings (rather than calling the elevator to that floor). β
The correct design would be to put the call button next to the phone rather than the elevator. β
2οΈβ£ Think of a web page that has popup window that shows a windows style error with an 'ok' button on it. π
People click the 'ok' button thinking it is for the operating system and instead go to another web page. π
This astonishes the user. π¦
3οΈβ£ The name of a function should reflect what it does. Otherwise, a user of the function will be unpleasantly surprisedβοΈ
Bad :
Better :
πΉπΈπΉπΈ
When it comes to an API ... πΎ
β’ Think about a toString() method that instead of printing out the fields returns back "to be implemented". π€₯
β’ An equals() method that works on hidden information. π
β’ Sometimes people try to implement a sorted list class by changing the add method to call sort() on the array afterwards. π
This astonishing because the add method is supposed to append to the list. π³
This is especially astonishing when one gets back a List object with no knowledge that somewhere deep inside, someone violated the interface contract. π€
Having a method that does one distinct thing contributes to reduction of astonishment. β
https://t.me/pgimg/115
γ°γ°γ°γ°γ°γ°
#Principle #PLS
@ProgrammingTip
Principle Statement :
In interface design, always do the least surprising thing. π¨
Description :
Never surprise the user. β
An interface should behave exactly as the user thinks it behaves. β
What surprises the user depends on the kind of interface and the type of user. π₯
The central idea of PLS is to think about how the user would want to use the interface. π€³π»
Principle of least astonishment is when you, as an API designer, prevent your users from saying WAT. π±
πΈπΉπΈπΉ
Examples :
1οΈβ£ Consider an elevator with a button next to it that says "call". βοΈ
When you press the button, the payphone phone rings (rather than calling the elevator to that floor). β
The correct design would be to put the call button next to the phone rather than the elevator. β
2οΈβ£ Think of a web page that has popup window that shows a windows style error with an 'ok' button on it. π
People click the 'ok' button thinking it is for the operating system and instead go to another web page. π
This astonishes the user. π¦
3οΈβ£ The name of a function should reflect what it does. Otherwise, a user of the function will be unpleasantly surprisedβοΈ
Bad :
int multiply(int a, int b)
{
return a + b;
}
Better :
int multiply(int a, int b)
{
return a * b;
}
πΉπΈπΉπΈ
When it comes to an API ... πΎ
β’ Think about a toString() method that instead of printing out the fields returns back "to be implemented". π€₯
β’ An equals() method that works on hidden information. π
β’ Sometimes people try to implement a sorted list class by changing the add method to call sort() on the array afterwards. π
This astonishing because the add method is supposed to append to the list. π³
This is especially astonishing when one gets back a List object with no knowledge that somewhere deep inside, someone violated the interface contract. π€
Having a method that does one distinct thing contributes to reduction of astonishment. β
https://t.me/pgimg/115
γ°γ°γ°γ°γ°γ°
#Principle #PLS
@ProgrammingTip
Telegram
Programming Tips Resources
Nivo β¨
Provides supercharged React components to easily build dataviz apps, it's built on top of d3. βοΈ
Several libraries already exist for React d3 integration, but just a few provide server side rendering ability and fully declarative charts. π
Features :
πΈ Highly customizable
πΉ Motion/transitions
πΈ Component playground
πΉ Exhaustive documentation
πΈ Isomorphic rendering
πΉ SVG charts
πΈ HTML charts
πΉ Canvas charts
πΈ Server side rendering API
πΉ Gradients
πΈ Responsive charts
https://t.me/pgimg/116
[ Source ] : github.com/plouc/nivo
[ Document & Website ] : nivo.rocks
γ°γ°γ°γ°γ°γ°
#React #Chart #Calendar
#Treemap #JavaScript
@ProgrammingTip
Provides supercharged React components to easily build dataviz apps, it's built on top of d3. βοΈ
Several libraries already exist for React d3 integration, but just a few provide server side rendering ability and fully declarative charts. π
Features :
πΈ Highly customizable
πΉ Motion/transitions
πΈ Component playground
πΉ Exhaustive documentation
πΈ Isomorphic rendering
πΉ SVG charts
πΈ HTML charts
πΉ Canvas charts
πΈ Server side rendering API
πΉ Gradients
πΈ Responsive charts
https://t.me/pgimg/116
[ Source ] : github.com/plouc/nivo
[ Document & Website ] : nivo.rocks
γ°γ°γ°γ°γ°γ°
#React #Chart #Calendar
#Treemap #JavaScript
@ProgrammingTip
Telegram
Programming Tips Resources
Use DbContextPooling to Improve the Performance : .NET Core 2.1 Feature π
If you are familiar with .NET Core, then you might be knowing AddDbContext method. π§
This method is used to inject dependency of DbContext into your controller and it should be written in the Startup.cs class. π
So in case of AddDbContext, a new instance will be created for each request and would get disposed once the work is done. β»οΈ
New contexts are getting created for each request. β³
That is still fine but if there are more than 1k requests β 1k times object will be created and disposed, unless you have made it a Singleton. βπ»
Creating and disposing of so many objects may impact the performance. β
How DbContextPooling can helpβ
https://t.me/pgimg/117
[ Article ] : http://bit.do/dbpol
γ°γ°γ°γ°γ°γ°
#AspMvc #Core
@ProgrammingTip
If you are familiar with .NET Core, then you might be knowing AddDbContext method. π§
This method is used to inject dependency of DbContext into your controller and it should be written in the Startup.cs class. π
So in case of AddDbContext, a new instance will be created for each request and would get disposed once the work is done. β»οΈ
New contexts are getting created for each request. β³
That is still fine but if there are more than 1k requests β 1k times object will be created and disposed, unless you have made it a Singleton. βπ»
Creating and disposing of so many objects may impact the performance. β
How DbContextPooling can helpβ
https://t.me/pgimg/117
[ Article ] : http://bit.do/dbpol
γ°γ°γ°γ°γ°γ°
#AspMvc #Core
@ProgrammingTip
Telegram
Programming Tips Resources
Using MariaDB with ASP.NET Core 2.0 π
What is MariaDBβ
MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. π§
Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation. π
Basically it is a fork of MySQL which is guaranteed to stay open source, and as noted it is supposed to be a drop-in replacement for MySQL. β¨
So letβs put this to the test with a simple ASP.NET Core application. π₯
https://t.me/pgimg/118
[ Article ] : bit.do/mariad
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #MariaDB #MySql
@ProgrammingTip
What is MariaDBβ
MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. π§
Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation. π
Basically it is a fork of MySQL which is guaranteed to stay open source, and as noted it is supposed to be a drop-in replacement for MySQL. β¨
So letβs put this to the test with a simple ASP.NET Core application. π₯
https://t.me/pgimg/118
[ Article ] : bit.do/mariad
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #MariaDB #MySql
@ProgrammingTip
Telegram
Programming Tips Resources
18 Interesting Things from jQuery β¨
jQuery is one of the most popular JavaScript libraries in use today. π
It is the library that is beloved by most of the web developers for scripting. πΎ
In this article I'm going to share you some of the interesting things from that library. π₯
https://t.me/pgimg/119
[ Article ] : bit.do/jqint
γ°γ°γ°γ°γ°γ°
#JavaScript #jQuery
@ProgrammingTip
jQuery is one of the most popular JavaScript libraries in use today. π
It is the library that is beloved by most of the web developers for scripting. πΎ
In this article I'm going to share you some of the interesting things from that library. π₯
https://t.me/pgimg/119
[ Article ] : bit.do/jqint
γ°γ°γ°γ°γ°γ°
#JavaScript #jQuery
@ProgrammingTip
Telegram
Programming Tips Resources
Blazor π₯
An experimental .NET web framework using C#/Razor and HTML that runs in the browser via WebAssembly that is supported by Microsoft. π
Blazor is a .NET web framework that runs in any browser. π
Blazor uses only the latest web standards. No plugins or transpilation needed. β
It runs in the browser on a real .NET runtime (Mono) implemented in WebAssembly that executes normal .NET assemblies. β‘οΈ
It works in older browsers too by falling back to an asm.js based .NET runtime. π΄πΏ
Blazor will have all the features of a modern web framework, including β¨ :
β’ Components
β’ Routing
β’ Layouts
β’ Forms and validation
β’ Dependency injection
β’ JavaScript interop
β’ Live reloading
β’ Server-side rendering
β’ Full .NET debugging
https://t.me/pgimg/120
[ Github ] : bit.do/blazor
[ Learn ] : learn-blazor.com
[ Flight Finder ] : bit.do/ffinder
[ Sample CRUD ] : bit.do/bzcrud
γ°γ°γ°γ°γ°γ°
#Blazor #AspMvc #Core
@ProgammingTip
An experimental .NET web framework using C#/Razor and HTML that runs in the browser via WebAssembly that is supported by Microsoft. π
Blazor is a .NET web framework that runs in any browser. π
Blazor uses only the latest web standards. No plugins or transpilation needed. β
It runs in the browser on a real .NET runtime (Mono) implemented in WebAssembly that executes normal .NET assemblies. β‘οΈ
It works in older browsers too by falling back to an asm.js based .NET runtime. π΄πΏ
Blazor will have all the features of a modern web framework, including β¨ :
β’ Components
β’ Routing
β’ Layouts
β’ Forms and validation
β’ Dependency injection
β’ JavaScript interop
β’ Live reloading
β’ Server-side rendering
β’ Full .NET debugging
https://t.me/pgimg/120
[ Github ] : bit.do/blazor
[ Learn ] : learn-blazor.com
[ Flight Finder ] : bit.do/ffinder
[ Sample CRUD ] : bit.do/bzcrud
γ°γ°γ°γ°γ°γ°
#Blazor #AspMvc #Core
@ProgammingTip
Telegram
Programming Tips Resources
Avoid Lazy Loading Entities in ASP.NET Applications π
π»ββοΈ
Lazy Loading is an Entity Framework feature that lets you worry less about the specific amount of data you need to fetch with a given query. π
Instead, you write simple queries, and Entity Framework will load the minimal amount of data (which is a good thing), and then will only fetch additional data on an as-needed basis. β
That is, rather than eager loading all of the related data a given entity might have, lazy loading is a technique that has EF perform the minimal amount of work needed up front, and then only performs additional work if it turns out to be necessary. β οΈ
This sounds like a great feature, but you should turn it off in your ASP.NET web apps. π«
This article explains why you should do this. π§
https://t.me/pgimg/121
[ Article ] : bit.do/lazyy
γ°γ°γ°γ°γ°γ°
#AspMvc #LazyLoading
@ProgrammingTip
Lazy Loading is an Entity Framework feature that lets you worry less about the specific amount of data you need to fetch with a given query. π
Instead, you write simple queries, and Entity Framework will load the minimal amount of data (which is a good thing), and then will only fetch additional data on an as-needed basis. β
That is, rather than eager loading all of the related data a given entity might have, lazy loading is a technique that has EF perform the minimal amount of work needed up front, and then only performs additional work if it turns out to be necessary. β οΈ
This sounds like a great feature, but you should turn it off in your ASP.NET web apps. π«
This article explains why you should do this. π§
https://t.me/pgimg/121
[ Article ] : bit.do/lazyy
γ°γ°γ°γ°γ°γ°
#AspMvc #LazyLoading
@ProgrammingTip
Telegram
Programming Tips Resources
Ngrok π₯
Ngrok allows you to expose a web server running on your local machine to the internet. π
Just tell ngrok what port your web server is listening on :ππ»
Result β :
You can now access your website from β¨ :
http://92832de0.ngrok.io
When you start ngrok, it will display a UI in your terminal with the public URL of your tunnel and other status and metrics information about connections made over your tunnel π .
Inspecting Your Traffic π
Ngrok provides a real-time web UI where you can introspect all of the HTTP traffic running over your tunnels. π
After you've started ngrok, just open http://localhost:4040 in a web browser to inspect request details. π
https://t.me/pgimg/122
[ Docs ] : ngrok.com/docs
γ°γ°γ°γ°γ°γ°
#Ngrok #Testing
@ProgrammingTip
Ngrok allows you to expose a web server running on your local machine to the internet. π
Just tell ngrok what port your web server is listening on :ππ»
ngrok http [port] -host-header="localhost:[port]"
Result β :
Tunnel Status : online
Version : 2.0/2.0
Web Interface : 127.0.0.1:4040
Forwarding : http://92832de0.ngrok.io
Forwarding : https://92832de0.ngrok.io
You can now access your website from β¨ :
http://92832de0.ngrok.io
When you start ngrok, it will display a UI in your terminal with the public URL of your tunnel and other status and metrics information about connections made over your tunnel π .
Inspecting Your Traffic π
Ngrok provides a real-time web UI where you can introspect all of the HTTP traffic running over your tunnels. π
After you've started ngrok, just open http://localhost:4040 in a web browser to inspect request details. π
https://t.me/pgimg/122
[ Docs ] : ngrok.com/docs
γ°γ°γ°γ°γ°γ°
#Ngrok #Testing
@ProgrammingTip
Telegram
Programming Tips Resources