Messages - megatron [ switch to compact view ]

Pages: [1] 2 3 4 5next
Developer's Corner / use of $('#some_id') in javascript
« on: January 20, 2010, 03:26 PM »
Can anyone provide me some details about the [$(‘3] used in a java script e.g. $('#select_text').XYZ. I saw this in a .js file but when I try to use it in my javascript it gives some error. In the given example the  “select_text” is a id of a text box in the web page which include the .js file containing the $ code.

Can anyone provide me some tutorial about this “advance” javascript.

We all have seen and used many coding standers in different projects based on the programming language e.g. c or java. I have been using coding standards suggested by SUN for java based projects.

I just don’t know why we still follow few coding styles suggested in the standards e.g. 80 character limits for a line, if a line exceeds 80 character, break it to the next line.

As I know the reason for this was explained below:
some terminal are not able to properly display more than 80 characters in a line and we need to scroll the editor to see the full line, so it is suggested to have max 80 character per line.

However, these days you will find most of the monitors are wide screen (most of the commercial companies uses them) and capable of handling more than 80 character per line.

I think this type of coding standards should be picked based on the projects. As an example if entire company has wide screen monitors and uses a common editor e.g. eclipse, then this rule should be reevaluated to maximize the capability of the hardware and software. This makes code much cleaner and makes it more readable.

Developer's Corner / Re: what is __restrict keyword in c?
« on: January 25, 2009, 02:24 PM »
I was surprised to find a rather detailed article demonstrating the use of __restricted here.

Very informative link… I think I got what this keyword does…

Developer's Corner / what is __restrict keyword in c?
« on: January 23, 2009, 12:55 PM »
what is __restrict keyword in c?

cool link  :Thmbsup:

Pages: [1] 2 3 4 5next
Go to full version