Doors Next Generation Extensions: Preparing a Javascript Environment

Currently I’m working with a Doors Next Generation (DNG) Extension. As you might know DNG 4.06 will include a Javascript Extension. Before we start with some posts about

DNG Extensions let me give some hints about a Javascript Environment.

Necessary Tools:

  • Notepad++
  • Chrome Developer Tools
  • A working DNG 4.0.6 Environment with Tomcat

Useful Links:

Debugging with Chrome

Debugging RTC Value Provider

Java Script Client Extensions

Data visualisation with D3  and a good D3 learning source is here

Let me just recall (for myself)  the Javascript Style Guide:

  • Indents has 4 spaces and line length are 80 characters
  • Semicolons are mandatory
  • Variables are CamelCase like “myCounter”
  • Variables are Nouns  and Javascript Functions start with a verb like “getLastname”
  • Constants only consist with uppercase letters and underscores like “MAX_COUNT”
  • “undefined” is for variables that are not initialised.
  • “null” should only be used in the context of objects.
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: