HTML is short for HyperText Markup Language, and is the language of the World Wide Web. It is the standard text formatting language used for creating and displaying pages on the Web.
Web workers at long last bring multi-threading to JavaScript.
A web worker is a script that runs in the background (i.e., in another thread) without the page needing to wait for it to complete. The user can continue to interact with the page while the web worker runs in the background. Workers utilize thread-like message passing to achieve parallelism.
With HTML5, web pages can store data locally within the user’s browser.
Earlier, this was done with cookies. However, Web Storage is more secure and faster. The data is not included with every server request, but used ONLY when asked for.
The data is stored in name/value pairs, and a web page can only access data stored by itself. Unlike cookies, the storage limit is far larger (at least 5MB) and information is never transferred to the server.
The difference between localStorage and sessionStorage involves the lifetime and scope of the storage.
Data stored through localStorage is permanent: it does not expire and remains stored on the user’s computer until a web app deletes it or the user asks the browser to delete it. SessionStorage has the same lifetime as the top-level window or browser tab in which the script that stored it is running. When the window or tab is permanently closed, any data stored through sessionStorage is deleted.
Both forms of storage are scoped to the document origin so that documents with different origins will never share the stored objects. But sessionStorage is also scoped on a per-window basis. If a user has two browser tabs displaying documents from the same origin, those two tabs have separate sessionStorage data: the scripts running in one tab cannot read or overwrite the data written by scripts in the other tab, even if both tabs are visiting exactly the same page and are running exactly the same scripts.
The full form of CSS is Cascading Style Sheets. It is a styling language which is simple enough for HTML elements. It is popular in web designing, and its application is common in XHTML also.
Pseudo classes are similar to classes, but are not explicitly defined in the markup, and are used to add additional effects to selected HTML elements such as link colors, hover actions, etc.
Pseudo classes are defined by first listing the selector, followed by a colon and then pseudo-class element. E.g., a:link{ color: blue }, or a:visited { color: red }
- Inline - although this method goes against best practices, it is easily done adding the style tag to an element
- Internal - Done by defining the head of an HTML document by wrapping characteristics in a style tag.
- External - Done by referencing an external style sheet in the head of an HTML document
Child selectors are another way to group and style a set of elements that descend from a parent element. A child selector is matched by calling two or more elements, separated by a ‘>’ sign to indicate inheritance.
CSS box model is made up of margins, borders, padding, and content.
Box model provides a structured way to space elements in relationship to each other.
The z-index helps specify the stack order of positioned elements that may overlap one another. The z-index default value is zero, and can take on either a positive or negative number.
An element with a higher z-index is always stacked above one with a lower index.
The 3 equal signs mean "equality without type coercion". Using the triple equals, the values must be equal in type as well.
== is equal to
=== is exactly equal to (value and type)
0==false // true
0===false // false, because they are of a different type
In JavaScript, 'this' normally refers to the object which 'owns' the method, but it depends on how a function is called.
- Routing - Basically it is a pattern matching system that matches the request’s URL against the registered URL patterns in the Route Table
- MVC Handler - responsible for initiating the real processing inside ASP.NET MVC
- Controller - is intantiated or retreived from memory
- Action Executed - Controller's ActionInvoker determines which specific action to invoke on the controller. Action to be execute is chosen based on attributes
- View Result - The action method receives user input, prepares the appropriate response data, and then executes the result by returning a result type
- View Engine - retrieves the setup view engine in the application start (typically Razor)
- View - Action method may returns a text string,a binary file or a Json formatted data. The most important Action Result is the ViewResult, which renders and returns an HTML page to the browser by using the current view engine
- View state
- Control state
- Hidden fields
- Cookies
- Query strings
- Application state
- Session state
- Profile Properties
View state, control state, hidden fields, cookies, and query strings all involve storing data on the client in various ways. However, application state, session state, and profile properties all store data in memory on the server. Each option has distinct advantages and disadvantages, depending on the scenario.
- PreInit
- Init
- InitComplete
- LoadViewState
- LoadPostData
- PreLoad
- Load
- LoadComplete
- PreRender
- PreRenderComplete
- SaveStateComplete
- Unload
It stands for Plain old C (or C#) object. It is typically a class that contains multiple properties and has 0 functionality.
An abstract class can have shared state or functionality. An interface is only a promise to provide the state or functionality. A good abstract class will reduce the amount of code that has to be rewritten because it's functionality or state can be shared. The interface has no defined information to be shared just a contract of what the class will include.
Overriding means that a method shares the same name and signature of a base or abstract calss, but is overriden in the inhertted class
(combination of these two) will be visible only to classes that derive from the class that declares that member *and* are declared in a file in the same assembly.
If you apply static keyword with any method, it is known as static method. A static method belongs to the class rather than object of a class. A static method invoked without the need for creating an instance of a class.
Extension methods are a special kind of static method, but they are called as if they were instance methods on the extended type
LINQ, ToString, Split...
The Stack is more or less responsible for keeping track of what's executing in our code (or what's been "called"). The Heap is more or less responsible for keeping track of our objects.
It depends on your needs. One of the most important differences is that a DataReader will retain an open connection to your database until you're done with it while a DataSet will be an in-memory object. If you bind a control to a DataReader then it's still open. In addition, a DataReader is a forward only approach to reading data that can't be manipulated. With a DataSet you can move back and forth and manipulate the data as you see fit.
Outer is an optional keyword in sql server. That being said this would be a LEFT JOIN. A LEFT JOIN gets all data from the left (or first table) and joins it to the right (or second table) matching null where they do not line up. Customers LEFT JOIN Orders (will show all customers but they might not have any orders which will return null)
- Testability outisde of the application
- Security
- Speed / Optimization
- Errors are typically found in runtime
- Stored procedure code is not as robust as application code, particularly in the area of looping (not to mention that iterative constructs, like cursors, are slow and processor intensive)
- Lot of overhead for simple stored procedures