Advertise Here

Author Topic: Im new to java i made this code is it a good code?  (Read 7202 times)

0 Members and 1 Guest are viewing this topic.

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Im new to java i made this code is it a good code?
« on: March 10, 2008, 06:30:37 pm »
This displays the date and time here right now for me Mon Mar 10 19:29:28 EDT 2008

Code: [Select]
<SCRIPT TYPE="text/javascript">
<!--
document.write("<P>right now: " + new Date() + "<P>");
//-->
</SCRIPT>
« Last Edit: March 10, 2008, 06:47:45 pm by blahs »

Offline Ravage™

  • SMF For Free Hero
  • *
  • Posts: 557
  • Ravage Beast!
    • View Profile
    • Ravage World

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Im new to html i made this code is it a good code?
« Reply #1 on: March 10, 2008, 06:38:25 pm »
thats not html thats javascript
« Last Edit: March 10, 2008, 06:53:39 pm by Ravage™ »

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Im new to java i made this code is it a good code?
« Reply #2 on: March 10, 2008, 06:47:25 pm »
opps my bad i was studing both so i messed up plz move to java rofl...

Offline Celebrus

  • SMF For Free Hero
  • *
  • Posts: 941
    • View Profile
    • Vikhyat Korrapati

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Im new to java i made this code is it a good code?
« Reply #3 on: March 11, 2008, 01:38:36 am »
That is not java. It is javascript. There is a huge difference between java and javascript. As Douglas Crockford puts it,
Quote
The Java- prefix suggests that JavaScript is somehow related to Java, that it is a subset or less capable version of Java. It seems that the name was intentionally selected to create confusion, and from confusion comes misunderstanding. JavaScript is not interpreted Java. Java is interpreted Java. JavaScript is a different language.

JavaScript has a syntactic similarity to Java, much as Java has to C. But it is no more a subset of Java than Java is a subset of C. It is better than Java in the applications that Java (fka Oak) was originally intended for.

JavaScript was not developed at Sun Microsystems, the home of Java. JavaScript was developed at Netscape. It was originally called LiveScript, but that name wasn't confusing enough.

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Im new to java i made this code is it a good code?
« Reply #4 on: March 11, 2008, 11:53:57 am »
That is not java. It is javascript. There is a huge difference between java and javascript. As Douglas Crockford puts it,
Quote
The Java- prefix suggests that JavaScript is somehow related to Java, that it is a subset or less capable version of Java. It seems that the name was intentionally selected to create confusion, and from confusion comes misunderstanding. JavaScript is not interpreted Java. Java is interpreted Java. JavaScript is a different language.

JavaScript has a syntactic similarity to Java, much as Java has to C. But it is no more a subset of Java than Java is a subset of C. It is better than Java in the applications that Java (fka Oak) was originally intended for.

JavaScript was not developed at Sun Microsystems, the home of Java. JavaScript was developed at Netscape. It was originally called LiveScript, but that name wasn't confusing enough.
Yeah just labeled it java its in the javascript section see im nt stupid...

guest4485

  • Guest
Re: Im new to java i made this code is it a good code?
« Reply #5 on: June 15, 2008, 01:35:05 am »
Still there is a Java portion of this forum so by labeling it Java it creates confusion so I would just rename it. Also as Omikron said Java is NOT the same as JavaScript. Netscape renamed LiveScript because of the rising Java they did it as clever yet confusing advertisement trick.

Offline Kalphiter

  • SMF For Free Full Member
  • *
  • Posts: 135
  • DE30AC #409
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Im new to java i made this code is it a good code?
« Reply #6 on: July 03, 2008, 07:45:52 pm »
Javascript

It's a scripting language you see? <script> maybe?

Java is a programming language?

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Im new to java i made this code is it a good code?
« Reply #7 on: July 09, 2008, 10:46:28 am »
Are we done discussing the semantics of the words?
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Im new to java i made this code is it a good code?
« Reply #8 on: July 09, 2008, 07:17:47 pm »
No wonder everyone looked at me strangely when I offered them a cup of coffee.


And I Play:  Mafia-Mandemz

 

Related Topics

  Subject / Started by Replies Last post
21 Replies
12473 Views
Last post August 16, 2009, 09:16:42 pm
by [FailSafe]
0 Replies
993 Views
Last post October 05, 2007, 08:10:50 pm
by R u n e s c a p e
3 Replies
6221 Views
Last post July 03, 2008, 07:48:56 pm
by Kalphiter
1 Replies
1523 Views
Last post March 19, 2008, 12:38:19 pm
by Daisuke_aurora
2 Replies
5556 Views
Last post March 12, 2009, 12:26:56 pm
by simply sibyl