Crockfords 2014 object creation pattern

Posted by: More Whidbey stuff, on 19 Nov 2014 | View original | Bookmarked: 0 time(s)

Douglas Crockford has long advocated for relatively unusual object creation patterns that do away with the new, and now the this keywords altogether. While watching a recent talk that he gave about the better parts of EcmaScript 6, I spotted the evolution of his pattern for the new version of the language. I havent found it explained anywhere else so far, so I thought Id try to deconstruct it in a postHeres the new pattern as it appears in the slides:function constructor(spec) { let {member} = spec,...

Similar Posts

  • Introducing Recurring Appointments for Web.UI Scheduler ASP.NET AJAX more
  • Dont Repeat Yourself more
  • Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 25: ViewModel more
  • The "Error creating window handle" exception and the Desktop Heap more
  • Using the ObjectContainer in disconnected scenarios Part 2 more
  • The usual result of Poor Mans Dependency Injection more
  • The Technology Post for June 26th, 2009 more
  • Exposing Custom WCF Headers through WCF Behaviors - Part 2 more
  • Talking Points: ASP.NET Model-View-Controller (MVC) more
  • Testing Silverlight Applications more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD