• Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
Les liens de StyMaar
toggle menu
Add link
Search
10200 links
  • #Defining Variables in JavaScript « Running with Code

    «This is a principle discussed in Steve McConnell’s Code Complete; the reasoning behind maximization of locality is that the human brain can only comprehend so much at once. (This is, of course, another argument in favor of many, simple, and small subroutines). By delaying the declaration of a variable until it needs to be used, we are able to better-comprehend the meaning of the variable and how its use affects and relates to the rest of the program. As such, I believe that one of the premises for moving these declarations into a combined var statement – specifically, to reflect the hoisting – is a poor rationale.»

    Fri 16 Jan 2015 04:07:57 PM CET - permalink - http://robpaveza.net/defining-variables-in-javascript
    bonnes_pratiques JavaScript
page 1 / 1 Links per page: 20 50 100
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation