wood burning stoves 2.0*
The moose likes Meaningless Drivel and the fly likes woohoo im now brainbench certified in jasvascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "woohoo im now brainbench certified in jasvascript" Watch "woohoo im now brainbench certified in jasvascript" New topic
Author

woohoo im now brainbench certified in jasvascript

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

smirk
well I needed it for my resume(who knows might make the difference)
I dont know javascript any better than i did yesterday but i can look up answers quicker


SCJP
Visit my download page
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
I promise I am not chasing you around...
Can you at least answer the question what is the relationship between Java and JavaScript?


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

ha ha tony i hope my monitor doesnt go black again before i answer. the difference between javascript and java is one is a hack and the other is a well structured programming language.
Shama Khan
Ranch Hand

Joined: Aug 14, 2000
Posts: 185
Randall, can you provide me some direction as to how to be proficient in javascript. Javascript is being increasingly used to do 'hack' type of stuff on our web-based application which is run by servlets and jsp on the server side.
I have done many tutorials available on the net. I have even taken a class at my company which was taught by a graphic artist. The whole class was a revamp of tutorials on the net which mainly focus on how to do this or that.
Which book is good for getting all those properties and ways to get access to those properties.
Thanks in advance for your help.


Shama
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

shama,
Sorry you got me there. I am finding javascript difficult to learn too. Java seemed easier. I have only taken some of the online tutorials so far.
here are some links though in case you didnt know about this site http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm http://developer.netscape.com/docs/manuals/communicator/jsguide4/index.htm
the link "what is in this reference" in the first link displays some very useful tables of links to objects properties and methods

[This message has been edited by Randall Twede (edited August 10, 2001).]
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Since we are talking about JavaScript (JS):
JS is an UNTYPED language. Java is a STRONGLY TYPED language.
The same variable in JS can morph from a string to an integer (or to an array or to anyhing else) in no time:
i = "AbscDegf";
.
.
.
i = 1;
PERFECTLY LEGAL!

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

Tony,
that is one of the things i dont like about it.
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
And the main difference between JavaScript and Java is that they have very little in common. Except for the "Java" string in front of the JavaScript name.
Many years ago the dudes at Netscape (before it was owned by the *Kindergarden-approach-to-ISPs* that is AmericaOffline) called it LiveScript first (instead of JavaScript).
At that moment, Java as a full-fledged programming language was beginning to capture programmer minds and Netscape asked Sun Microsystems (as the story goes...) if they could use Java as part of the name for this new SCRIPTING language that they developed.
JavaScript is a scripting language for client side computing and Java is a general purpose programming language. Java's built-in support for threads, networking, exception handling and GUI programming makes it the best programming language that there is for real-world applications (versus university classrooms).
I should know; I began programming professionally in Dec. 1974 in FORTRAN and Assembly language. Much later after that, I learned C.
Although JavaScript can be used for server-side programming, I still have to meet or hear from one programmer that actually did so.
The main disadvantage of using JavaScript in public web development apps is that if you don't program consciously also for the occasional browser that is not supporting JS, you run the risk of alienating some potential customers.
Saludos!
Tony
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

Tony,
from what little I have learned about ASP, it is my understanding that people who write ASP use either server side javascript or server side vbscript their choice.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

Tony,
From what little I have learned about ASP, it is my understanding that people who write ASP use server side javascript(or vbscript).
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

Tony,
I heard that ASP writers use server side javascript(or vbscript)
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
Originally posted by Randall Twede:
Tony,
I heard that ASP writers use server side javascript(or vbscript)

I originally used VBScript for ASP because all the example sites do. I learned the hard way that VBScript sucks. I was missing an end statement in a complex application (or maybe I had an extra if somewhere or somethin) and never found it. In JavaScript, you have nice curly braces to match start of a block to its end. I've also found that JavaScript objects are genuinly useful for ASP applications.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Congrats, Randall.
- satya
- hopefully, this hows up.

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I've developed in ASP for 2 years and mostly Vbscript. Javascript is nice though. when doing server side javascript you can do it an oop kind of way . Do not however try oop in asp. The code intends to be very slow. How do you like this array??
<Script langaug="Javascript">

test = new Array();
test[ "kalle" + 1 ] = "nisse";
test[ 5 ] = "teesting";
</Script>
??
[This message has been edited by Mathias P.W Nilsson (edited August 11, 2001).]
 
permaculture playing cards
 
subject: woohoo im now brainbench certified in jasvascript