Primitive JavaScript (BYOSP Part 7)

Posted by: K. Scott Allen, on 28 Feb 2012 | View original | Bookmarked: 0 time(s)

When starting into the animations I decided it was time to refactor. One problem was the little "updateState" calls floating around inside conditional logic always a bad sign. A second problem was the sheer number of strings and CSS selectors in the code. I've become more sensitive to primitive obsession in JavaScript. Some code I see is nothing but strings and numbers. I think the obsession hurts readability and maintainability. The selectors scattered in the slide presenter code do one of three...

Category: Refactor | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 780 | Hits: 18

Similar Posts

  • GiveCamps Get a new Sponsor more
  • Scenarios for WS-Passive and OpenID more
  • More On The CodePlex Foundation more
  • A Lightweight Event Framework in JavaScript more
  • Visual Studio 2010 Performance Part 2: Text Editor more
  • ASP.NET MVC and the templated partial view (death to ASCX) more
  • Win a Govie Award Submit an Innovative Gov 2.0 Application more
  • The web vs. the fallacies of distributed computing more
  • VideoWiki - Step 0 more
  • Trip Report from Gov 2.0 Camp 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