Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

woohoo im now brainbench certified in jasvascript

 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I promise I am not chasing you around...
Can you at least answer the question what is the relationship between Java and JavaScript?
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony,
that is one of the things i dont like about it.
 
Tony Alicea
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony,
I heard that ASP writers use server side javascript(or vbscript)
 
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Congrats, Randall.
- satya
- hopefully, this hows up.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic