473,408 Members | 2,030 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,408 software developers and data experts.

@param

Daz
Hi everyone.

Sorry for the meaningless subject. I honestly didn't know what to put.
I have noticed a lot of scripts these days seem to have something like
this:
/**
* Function description
* @param {object} p1: first parameter
* @param {object} p2: 2nd parameter
*/

I know the above might not be entirely correct, but I hope you get the
idea.

My IDE seems to support this quite well, and has functionality to help
tell me what functions do when I hover over them with my mouse. My
question is, what is this form of commenting known as? If I know what
its called, I can look into it, and hopefully make good use of it.

Many thanks.

Daz.

Jan 20 '07 #1
7 2354
Daz said the following on 1/20/2007 6:08 PM:
Hi everyone.

Sorry for the meaningless subject. I honestly didn't know what to put.
I have noticed a lot of scripts these days seem to have something like
this:
/**
* Function description
* @param {object} p1: first parameter
* @param {object} p2: 2nd parameter
*/

I know the above might not be entirely correct, but I hope you get the
idea.

My IDE seems to support this quite well, and has functionality to help
tell me what functions do when I hover over them with my mouse. My
question is, what is this form of commenting known as? If I know what
its called, I can look into it, and hopefully make good use of it.
It probably got started with Sun and Java. If not, it got copied from
elsewhere. It seems to, at least, be a form of JAVA documentation used
by Sun and probably copied to other languages - or vice versa:

<URL: http://java.sun.com/j2se/javadoc/writingdoccomments/>
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 21 '07 #2
Daz

Randy Webb wrote:
Daz said the following on 1/20/2007 6:08 PM:
Hi everyone.

Sorry for the meaningless subject. I honestly didn't know what to put.
I have noticed a lot of scripts these days seem to have something like
this:
/**
* Function description
* @param {object} p1: first parameter
* @param {object} p2: 2nd parameter
*/

I know the above might not be entirely correct, but I hope you get the
idea.

My IDE seems to support this quite well, and has functionality to help
tell me what functions do when I hover over them with my mouse. My
question is, what is this form of commenting known as? If I know what
its called, I can look into it, and hopefully make good use of it.

It probably got started with Sun and Java. If not, it got copied from
elsewhere. It seems to, at least, be a form of JAVA documentation used
by Sun and probably copied to other languages - or vice versa:

<URL: http://java.sun.com/j2se/javadoc/writingdoccomments/>
Aha. That makes sense. Now I have somewhere to start my research as
Googling for "@param", seems to strip the "@" symbol.

Thank you for your input, Randy.

Daz.

Jan 21 '07 #3
Daz said the following on 1/20/2007 7:06 PM:
Randy Webb wrote:
>Daz said the following on 1/20/2007 6:08 PM:
>>Hi everyone.

Sorry for the meaningless subject. I honestly didn't know what to put.
I have noticed a lot of scripts these days seem to have something like
this:
/**
* Function description
* @param {object} p1: first parameter
* @param {object} p2: 2nd parameter
*/

I know the above might not be entirely correct, but I hope you get the
idea.

My IDE seems to support this quite well, and has functionality to help
tell me what functions do when I hover over them with my mouse. My
question is, what is this form of commenting known as? If I know what
its called, I can look into it, and hopefully make good use of it.
It probably got started with Sun and Java. If not, it got copied from
elsewhere. It seems to, at least, be a form of JAVA documentation used
by Sun and probably copied to other languages - or vice versa:

<URL: http://java.sun.com/j2se/javadoc/writingdoccomments/>
Aha. That makes sense. Now I have somewhere to start my research as
Googling for "@param", seems to strip the "@" symbol.
A Google search for "@param" is precisely how I found that page though.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 21 '07 #4
Randy Webb wrote:
Daz said the following on 1/20/2007 6:08 PM:
>Sorry for the meaningless subject. I honestly didn't know what to
put. I have noticed a lot of scripts these days seem to have
something like this:
/**
* Function description
* @param {object} p1: first parameter
* @param {object} p2: 2nd parameter
*/
It probably got started with Sun and Java.
Probably for use with jsdoc: http://jsdoc.sourceforge.net/

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Jan 21 '07 #5
Daz

Matt Kruse wrote:
Randy Webb wrote:
Daz said the following on 1/20/2007 6:08 PM:
Sorry for the meaningless subject. I honestly didn't know what to
put. I have noticed a lot of scripts these days seem to have
something like this:
/**
* Function description
* @param {object} p1: first parameter
* @param {object} p2: 2nd parameter
*/
It probably got started with Sun and Java.

Probably for use with jsdoc: http://jsdoc.sourceforge.net/

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Thanks for that Matt. Ironically enough, I managed to find the jsdoc
site about an hour before your post. I spent 3AM-5AM this morning
reading the documentation and playing with jsdoc. It's really quite
good, and it's surprisingly fast. :)

Jan 21 '07 #6
Daz

Matt Kruse wrote:
Randy Webb wrote:
Daz said the following on 1/20/2007 6:08 PM:
Sorry for the meaningless subject. I honestly didn't know what to
put. I have noticed a lot of scripts these days seem to have
something like this:
/**
* Function description
* @param {object} p1: first parameter
* @param {object} p2: 2nd parameter
*/
It probably got started with Sun and Java.

Probably for use with jsdoc: http://jsdoc.sourceforge.net/

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
I see you use jsdoc on http://www.AjaxToolbox.com. Very nice
XMLHttpRequest Library. I am reading the docs now, and will most likely
use it. I have seen lots of libraries around such as dojo, prototype,
scriptaculous and the likes, but I have never seen a standalone
XMLHttpRequest object, which is what I have been looking for, for some
time. Would you be able to recommend a good,compact, and easy to use
JavaScript library such as one that I have named above? I can't decide
on which to use, if any.

Thanks.

Jan 21 '07 #7
Daz wrote:
I see you use jsdoc on http://www.AjaxToolbox.com.
My own customized version of jsdoc, yes. :)
I have seen lots of libraries around such as dojo,
prototype, scriptaculous and the likes, but I have never seen a
standalone XMLHttpRequest object, which is what I have been looking
for, for some time. Would you be able to recommend a good,compact,
and easy to use JavaScript library such as one that I have named
above? I can't decide on which to use, if any.
Which js lib to use, if any, is a religious war!

I have my own stand-alone libraries that perform specific tasks at
http://www.JavascriptToolbox.com/
Of the general libs out there, I prefer jQuery and MooTools.
I'm currently working on my own general-purpose library that will have
similar functionality to the popular libs out there, but in a better syntax,
without any attempt to make OO in js work like some other language, and with
some cool features and behavior that I think is missing in current libs.
Hopefully a test version will be out in a few weeks at
http://www.JavascriptElements.com/ (which currently just redirects to my
site above).

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Jan 21 '07 #8

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

Similar topics

5
by: Keeko | last post by:
Actionscriptor needs help! I have a working javascript function (getVar()) that extracts a variable from a link and returns it. (tested with alert() works fine). But I am unsure of how to right...
12
by: Keith Chadwick | last post by:
I have a fairly hefty XSLT file that for the sake of debugging and clarity I wish to split into some separate sub-templates contained within the same file. The master template calls an...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
2
by: VB Programmer | last post by:
I created a VB6 user control with a ActiveX Knob on it. Here's the simple code: Public Property Get Value() As Integer Value = CWKnob.Value End Property Public Property Let Value(Value As...
2
by: Michael.Suarez | last post by:
The code in my DLL: /// <summary> /// db_task..file_master_list /// </summary> /// <param name="panConnection"> /// Pass the PanApp.Connection object by reference /// </param> /// <param...
8
by: Michael.Suarez | last post by:
So I wrote a DLL in 2.0. An example of one of the funtions is: /// <summary> /// db_task..file_master_list /// </summary> /// <param name="panConnection"> /// Pass the PanApp.Connection object...
7
by: Imre | last post by:
Hi Is it somehow possible to memorize / store a macro parameter so that we can reuse it in later macro expansions? For example, let's suppose we have a MACRO_A(param). I'd like to store...
1
by: Rich | last post by:
Hello, I can update a dataset from my client app using a dataAdapter.Updatecommand when I add parameter values outside of the param declaration. But If I add the param values inline with the...
7
by: kforski | last post by:
Hello I wonder how can I find out if the param given to the xsl is defined without error during compilation. Actually I have such code (a part of it) <xsl:if test="$showWarnings='true']">...
2
by: QTR | last post by:
Hello, I discovered a strange XSLT behaviour on Weblo 8.1. Let me explain it (see at the end my example XSLT): I call a template (1) with one parameter (A) which calls another template (2) with...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.