References and Using Do: Take care when defining references References must be one way (or circular dependency error) Take advantage of the using directive Avoid: Excessive use of the using static directive Object vs. Class Object: Represents one spe…
html, body {overflow-x: initial !important;}html { font-size: 14px; } body { margin: 0px; padding: 0px; height: auto; bottom: 0px; top: 0px; left: 0px; right: 0px; font-family: 'Helvetica Neue', helvetica, arial, sans-serif; font-size: 1rem; line-hei…
Introduction Creating a generic repository pattern in an mvc application with entity framework is the first topic that we are about to cover in our journey of learning my mvc template. this article will focus on repository pattern and shows how to de…
Building a Class The last four refer as members Signature Accessiblity modifier (Default:internal) class keyword Class Name XML documents comments Fields A variable in the class Hold the data Properties Getter and Setter functions Guard access to the…
Application Architecture Define the components appropriately for the application and create project for each one. What is Class? 3 Things: Visual Things, Business Things (Domain Entities), Application Things (like Logging & Email Generation) 3 Types:…
Before starting with best practices tobe followed, it is good to have clear understanding of how memory is managed (allocation, de-allocation). So, let us start with memory management first. Managed Heap and Garbage Collection Overview Memory Allocat…
List Never swallow the exception in catch block Declare the specific checked exceptions that your method can throw Do not catch the Exception class rather catch specific sub classes Never catch Throwable class Always correctly wrap the exceptions in…
转载自https://www.baeldung.com/java-8-lambda-expressions-tips 1. Overview   Now that Java 8 has reached wide usage, patterns, and best practices have begun to emerge for some of its headlining features. In this tutorial, we will take a closer look to fu…
5.1. Classes, Superclasses, and SubclassesLet's return to the Employee class that we discussed in the previous chapter. Suppose (alas) you work for a company at which managers are treated differently from other employees. Managers are, of course, jus…
The Exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 35 best practices divided into 7 categories. Looking to optimize your mobile app experience? Check out Flurry Analytics. Filter by…