473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

JavaScript guidelines published

Hi group,

In agreement with the head of our R&D department, I published my firm's
JavaScript Coding Guidelines. I work for Siemens Building Technologies.
We developed these guidelines for a web application project in 2004,
based on our C# guidelines.

http://www.galasoft-lb.ch/myjavascri...Guidelines.pdf

Please note the following:

* The purpose of publishing this document on the World Wide Web is to
promote and encourage consistent practices in the JavaScript programming
community.

* We publish this document as information only. Siemens will not accept
any responsibility regarding its content.

* The guidelines are recommendations based on our experience, and may or
may not make sense in the context of a different company, or a different
project. Their intent is to be a source of inspiration for other
JavaScript developers, and nothing more.

* The guidelines are dated 20th of April 2004, which is quite some time
ago. I think that most of the recommendations are still valid, but of
course additions can be made.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 5 '07 #1
5 1185
On Feb 5, 8:44 pm, "Laurent Bugnion [MVP]" <galasoft...@bluewin.ch>
wrote:
[snip]
Have you tried prototype.js...??
I personally think that's the most awesome "guideline" a man can
possible get!
Created by a "God" for humans...!!
:)

..t

--
http://ajaxwidgets.com
Free ASP.NET Ajax Widgets NOW!

Feb 5 '07 #2
Hi,

Thomas Hansen wrote:
On Feb 5, 8:44 pm, "Laurent Bugnion [MVP]" <galasoft...@bluewin.ch>
wrote:
[snip]
Have you tried prototype.js...??
You got to be kidding, surely.

Greetings,
Laurent
I personally think that's the most awesome "guideline" a man can
possible get!
Created by a "God" for humans...!!
:)

.t
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 5 '07 #3
Hi,

I guess this needs a slightly more detailed reply.

I took a look at prototype.js when it came out. While the idea is good
(and some of the effects are actually nice), the library grew in an
uncontrolled way. It has not been designed, it uses bad practices and is
very badly documented.

I am also quite active on the newsgroup comp.lang.javascript, where many
JavaScript experts also write, and reading their comments about this
library, added to my own experiences, is making me want to keep my
fingers off prototype.js.

There are other, better libraries out there, like the Yahoo UI library
or other less well known ones, which I would probably use if I didn't
know how to write the code myself (and didn't have fun doing it).

Voila ;-)
Laurent

Laurent Bugnion [MVP] wrote:
Hi,

Thomas Hansen wrote:
>On Feb 5, 8:44 pm, "Laurent Bugnion [MVP]" <galasoft...@bluewin.ch>
wrote:
[snip]
Have you tried prototype.js...??

You got to be kidding, surely.

Greetings,
Laurent
>I personally think that's the most awesome "guideline" a man can
possible get!
Created by a "God" for humans...!!
:)

.t

--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 5 '07 #4
"Laurent Bugnion [MVP]" <ga*********@bluewin.chwrote in message
news:Ou*************@TK2MSFTNGP05.phx.gbl...
>Have you tried prototype.js...??

You got to be kidding, surely.
Unfortunately, I'm pretty sure he isn't...
Feb 5 '07 #5
Thank you Laurent...
I've already learned a lot from the Siemens C# guidelines.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h

"Laurent Bugnion [MVP]" <ga*********@bluewin.chwrote in message
news:ea**************@TK2MSFTNGP02.phx.gbl...
Hi group,

In agreement with the head of our R&D department, I published my firm's
JavaScript Coding Guidelines. I work for Siemens Building Technologies. We
developed these guidelines for a web application project in 2004, based on
our C# guidelines.

http://www.galasoft-lb.ch/myjavascri...Guidelines.pdf

Please note the following:

* The purpose of publishing this document on the World Wide Web is to
promote and encourage consistent practices in the JavaScript programming
community.

* We publish this document as information only. Siemens will not accept
any responsibility regarding its content.

* The guidelines are recommendations based on our experience, and may or
may not make sense in the context of a different company, or a different
project. Their intent is to be a source of inspiration for other
JavaScript developers, and nothing more.

* The guidelines are dated 20th of April 2004, which is quite some time
ago. I think that most of the recommendations are still valid, but of
course additions can be made.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

Feb 6 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

61
by: Pete Vidler | last post by:
Hi Folks, I'm wondering if there is a compilation of C++ guidelines out there anywhere. Here are some of the ones I've picked up so far (as examples): - Functions should fit on one screen,...
5
by: petermichaux | last post by:
>From the FAQ The only book currently endorsed by c.l.j. regulars is: JavaScript: The Definitive Guide, 4th Edition By David Flanagan ISBN:0-596-00048-0 (Also by David Flanagan: JavaScript...
27
by: Tom Cole | last post by:
I'm starting to do more quantity of javascript coding and thought this might be a good time to investigate code styling. I primarily develop in Java and currently use the code styling techniques...
26
by: Laurent Bugnion [MVP] | last post by:
Hi group, In agreement with the head of our R&D department, I published my firm's JavaScript Coding Guidelines. I work for Siemens Building Technologies. We developed these guidelines for a web...
5
by: Martin Rinehart | last post by:
Within this group many use ECMAScript as the name of the language, JavaScript as the name of Mozilla's implementation. I see zero support for this usage outside this group (where JavaScript is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.