JavaScript books and blogs

L

Laser Lips

Hi All. I really want to change my programming habits and adopt
professional coding practices and knowledge.

Where do people go to keep up-to-date with best practices?

Graham
 
R

Richard Cornford

Hi All.  I really want to change my programming habits and adopt
professional coding practices and knowledge.

Where do people go to keep up-to-date with best practices?

Doesn't that imply that "best practices" change over time?

Richard.
 
D

Dr J R Stockton

In comp.lang.javascript message <66762248-e21c-4c77-a887-439a33d2e03c@i2
5g2000yqm.googlegroups.com>, Fri, 5 Mar 2010 05:12:47, Richard Cornford
Doesn't that imply that "best practices" change over time?

Of course they do. Languages change, and sometimes ideas improve.

Example : In early JavaScript, the best full-range way to determine the
Year of a Date Object was to use (granted that it may not have been
written then)

function getFY(D) { var YE
YE = 1970 + Math.round(D.getTime() / 31556952000) // s per Greg yr
return YE + (D.getYear()-YE)%100 }

Nowadays, one can safely use getFullYear.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top