background preloader

Tech

Facebook Twitter

.Net Programmer, ASP.Net Consultant, C# Developer, .Net Architect, SQL Server, .Net Programmers, VB.Net, Massachusetts, Boston, MA, New Hampshire, NH, SEO. Computers. Inversion of Control Containers and the Dependency Injection pattern. In the Java community there's been a rush of lightweight containers that help to assemble components from different projects into a cohesive application.

Inversion of Control Containers and the Dependency Injection pattern

Underlying these containers is a common pattern to how they perform the wiring, a concept they refer under the very generic name of "Inversion of Control". In this article I dig into how this pattern works, under the more specific name of "Dependency Injection", and contrast it with the Service Locator alternative. The choice between them is less important than the principle of separating configuration from use. One of the entertaining things about the enterprise Java world is the huge amount of activity in building alternatives to the mainstream J2EE technologies, much of it happening in open source. A lot of this is a reaction to the heavyweight complexity in the mainstream J2EE world, but much of it is also exploring alternatives and coming up with creative ideas.

Components and Services A Naive Example class MovieLister... ASP.NET MVC 5 - A .NET Developer Primer for Single-Page Applications. A majority of Microsoft .NET Framework developers have spent most of their professional lives on the server side, coding with C# or Visual Basic .NET when building Web applications.

ASP.NET MVC 5 - A .NET Developer Primer for Single-Page Applications

Of course, JavaScript has been used for simple things such as modal windows, validation, AJAX calls and so on. However, JavaScript (client-side code for the most part) has been leveraged as a utility language, and applications were largely driven from the server side. Lately there’s been a huge trend of Web application code migrating from the server side to the client side (browser) to meet users’ expectations for fluid and responsive UX. With this being the case, a lot of .NET developers (especially in the enterprise) are dealing with an extreme amount of anxiety about JavaScript best practices, architecture, unit testing, maintainability and the recent explosion of different kinds of JavaScript libraries.

Creating an SPA in Seven Key Steps Figure 1 ASP.NET MVC Project Structure Figure 14 The Utility Module. 10 common traps and mistakes in C# 1) Using the wrong type of collection .Net has a lot of collection classes and they are all specialized on specific tasks.

10 common traps and mistakes in C#

Make sure to select the right one with care. Making the wrong choice can make your code inefficient, have unexpected consequences as well as making your code's intent unclear. Read more here: 2) Not using yield return When enumerating over objects for another caller you should use yield return instead of creating a return collection. 3) Parsing ambiguous dates Be sure to specify a format provider when you parse ambiguous dates. Var date = DateTime.ParseExact("01/12/2000", "MM/dd/yyyy", null) 4) Rethrowing Exceptions with an exception instance. Best way to approach learning .NET.

Web tech

Share what you make on Instructables! Product category - Vimperator. Processors. Robots. Computer Architectures. Javascript.