| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
6 Articles match "Article","Methods"
| Related DevelopMentor Courses | MORE | | Screening C# Candidates: Let’s Play 20 Questions! What keyword allows a method to be overridden? What keyword requires a method to be overridden? What keyword brings an extension method into scope? What method do you call on a delegate to run it on a background thread? If a person has ever bothered to read a book or technical article or taken a training course, their answers will set them apart from the crowd of folks who don’t make time for ongoing professional development. What keyword allows a method to be overridden? What keyword requires a method to be overridden? > reference 2. DevelopMentor Courses - Tuesday, February 28, 2012 Building Scalable and Secure WCF Services Michele Leroux Bustamante has written an excellent article showing precisely how to do this. Essentially the custom binding element has a GetProperty method which returns an implementation of ISecurityCapabilities asserting that a protection level of EncryptAndSign is supported. The key to building scalable WCF services is to eliminate binding configurations that could result in server affinity. For this reason you should avoid bindings that establish a session with the service, such as NetTcpBinding or WsHttpBinding with secure conversation enabled. allowCookies = " false ". DevelopMentor Courses - Monday, June 18, 2012 Use Common Instance Factory to Abstract Away the Dependency Injection Container In his article, Inversion of Control Containers and the Dependency Injection Pattern , Martin Fowler describes some of the weaknesses of the service locator anti-pattern. While it is possible to use the Common Service Locator without falling into this trap, the base interface, IServiceLocator, is a non-generic interface with a generic method that allows you to create an infinite number of types, making it easier for classes to use it directly. Another weakness of Common Service Locator is that it does not provide a ReleaseInstance method. Ah, but there’s a problem. DevelopMentor Courses - Wednesday, May 23, 2012 |
48 Articles match "Article","Methods"
| The Latest from DevelopMentor | MORE | | Optimistic concurrency in MongoDB using.NET and C# 'This article demonstrates a technique and supporting library for adding optimistic concurrency control to NoSQL databases and MongoDB in particular. At the end of this article is a simple C# class (data context) which has save and delete methods which internally are safe via optimistic concurrency control. Quickly, what is optimistic concurrency control? Ideally, all databases that allow concurrent access or disconnected access need to implement some form of concurrency control. This usually comes in two flavors: Pessimistic concurrency control. Edit in memory. Michael C. Kennedy's Weblog - Monday, April 8, 2013 People or the system? ve been known to say, and still believe: “The true test of any software development method (e.g. It also explains why some people in the Agile moment emphasis: trust, communication and other inter-personal issues while others emphasis a method, technical practices, etc. An article in the MIT Sloan Management Review a few years back suggested that when “star players” move to a new team they don’t necessarily, or even normally, keep their “star player” performance. “the two view-points are always tenable. Scrum, XP, Prince2, DSDM, etc.) Kanban, Scrum, etc. Fall 2008 issue. Allan Kelly's Blog - Tuesday, March 26, 2013 Dependency Injection vs. Dependency Injection Framework So let's take a step back, and start to unpack the meaning behind 'dependency injection' In the article, DHH uses the ruby example of time, saying that Time.stub(:now) { Time.new(2012, 12, 24) } article.publish! Off the top of my head, I can think of quite a few methods for Dependency Injection: parameters inheritance mocks byte code manipulation Global Variables Factory Pattern Callbacks Inversion of control (IoC) Monkey Patching Dependency Injection Frameworks Reflection There are many more and as programming evolves many more will be created. It may not apply to your framework. DevelopMentor Courses - Monday, January 7, 2013 | -
| The Best from DevelopMentor | MORE | - Article: Azure Storage
I recently wrote an article for DevelopMentor's Developments newsletter entitled Azure Storage. Listen to this article as a podcast: Azure-Storage-Article-Kennedy.mp3 ]. But if we simply use the tried and true methods of data storage such as the file system or a (single) database server our data is not all that scalable or reliable. In this article, we will cover just the basics of the three storage services of Windows Azure. Azure Table Storage can be accessed via ADO.NET Data Services (client-side) and this is the method we will use. Enjoy! Listing 3. Michael C. Kennedy's Weblog - Wednesday, April 8, 2009 - Article: 10 Features in.NET 4.0 that made Me Smile
I recently wrote another article for DevelopMentor 's Developments newsletter (not subscribed yet? Speaking of that XAML stuff, if you write WPF or Silverlight code and don’t know MVVM, stop reading this article and tp://msdn.microsoft.com/en-us/magazine/dd419663.aspx" target="_blank">learn about it here. WF 4 has a class which has a BeginExecute / EndExecute pair of methods which much more closely models the regular.NET async design patterns. Also have a look at my article from last month Six Things That’ll Surprise You About.NET 4.0. that made Me Smile. ll wait. Michael C. Kennedy's Weblog - Wednesday, December 16, 2009 - Article: Avoiding 5 Common Pitfalls in Unit Testing
Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter entitled Avoiding 5 Common Pitfalls in Unit Testing. We would spend time carefully choosing method names, refactoring our code to keep our classes and methods small, and so on. We carefully consider method names. We keep our methods short. In general long methods have the disadvantage of obscuring intent. Unfortunately the 'follow a script' aspect of testing lends itself to writing long methods. There is the introduction of helper methods in the unit test. Michael C. Kennedy's Weblog - Thursday, August 6, 2009 - Building ASP.NET MVC Forms with Razor (ASP.NET MVC Foundations Series)
In this ASP.NET MVC Foundations article, we’re going to look at building an ASP.NET MVC page which allows users to create and edit objects in our domain. Currently, they don’t do much: First we’ll need to add action methods. Here’s the create code: And similarly, the edit code: Now that we have action methods for edit and create, we’ll need the corresponding views. We’ll use the HTML Helper methods to convert our product into forms ready for the editing. We will define a second method for each action (create & edit) which accept the post. Edit is similar. Michael C. Kennedy's Weblog - Friday, January 20, 2012 - Preventing JavaScript Files from Loading Multiple Times
and a simple method which embraces JavaScript’s dynamic nature, we can pull this off easily. With namespaces in place, we can add methods to them and get intellisense to boot! Here’s an example of adding a method to the blog.comments namespace. Well, if we use one namespace per file and recall that namespaces are just objects we can write that method to check for a double load like this: We take a namespace and see if it has a firstLoad property. Filed under: Uncategorized Tagged: Articles , Cloud , jQuery , Opinion , Tools , Visual Studio , web. Michael C. Kennedy's Weblog - Thursday, October 11, 2012 - Tips for optional parameters to ASP.NET MVC action methods
We will see how to leverage C# 4′s optional and default parameters in our action methods for greatly simplifying our code while keeping it fully functional and error free. Let’s take a basic method which shows some census data, potentially filtered and sorted if that information is passed along, otherwise we’ll just show everything with a default sort. Filed under: Articles Tagged: NET , ASP.NET , MVC , tips. Here’s a quick ASP.NET MVC tip to help you be more productive and write cleaner code. In fact, this tip even works for input forms. like this. Michael C. Kennedy's Weblog - Friday, December 21, 2012 - Improve perceived performance of ASP.NET MVC websites with asynchronous partial views
This article will cover a technique using ASP.NET MVC partial views, along with just a sprinkle of jQuery, JavaScript, and HTML5 to make your site feel nice and responsive even if you cannot increase the speed of certain operations. This article assumes you have either tried or ruled out things like increasing the DB performance by adding the proper indexes, caching data where feasible, optimizing queries, etc. Here is the underlying controller action method. This is a perfectly reasonable action method. First a disclaimer / warning. click to enlarge). That’s it! Michael C. Kennedy's Weblog - Tuesday, November 13, 2012 %>
| | |