/    Sign up×
Community /Pin to ProfileBookmark

JavaScript is the most stupid and annoying thing I have ever seen!!!!!!!!!!!!!!

I HATE IT!!!!!!!!!!!!!!

I program in different languages: C/C++, Java, C#, VB.NET, ASP.NET… some kinds of, God damn, assemblers, and what not..

BUT I HAVE !!!![B]NEVER[/B]!!! SEEN SUCH A STUPID AND HARD TO DEBUG LANGUAGE SUCH AS JAVASCRIPT!!!!!!!!!

Why can’t I do the simplest thing such as opening a new window? with window.open in HTML??????

And what the hell it takes to refer to an object in HTML with a given id????

…. and what the hell is the difference between between Javascript 1.1 , 1.2, 1.3, 1.4 and 1.1000000000?????

HAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!

It’s 3am and I’m wasting my time on this stupid thing, and can’t make it work!!!!

Sorry, for such a language… I just couldn’t hold it anymore

to post a comment
JavaScript

30 Comments(s)

Copy linkTweet thisAlerts:
@nmcmOct 22.2004 — Instead of complaining, why do you not simply ask for help?
Copy linkTweet thisAlerts:
@thys_hauptOct 22.2004 — well NMCM

if it is 3:00 in the morning and you cant get no satisfaction from your companion - whether it is javascript or another close friend - i dont think you are going to rush for some external help.
Copy linkTweet thisAlerts:
@jbotOct 22.2004 — JS is the world's best and most used language. a lot of code you might find can be rather amateurish, even from some so-called pros. nonetheless it is so easy to get in to, and so powerful to use. it holds some apps together and can be used both server and client side. it's a great tool, and to complain betrays your ignorance about it's capabilities and strengths.

here is a couple of articles (tho there are many others) to put you on the road to enlightenment:

>> [URL=http://www.webreference.com/programming/javascript/j_s/column8/]Javascript's Success[/URL]

>> [URL=http://www.webreference.com/programming/javascript/j_s/column9/]JS and DBs[/URL]

>> [URL=http://www.crockford.com/javascript/javascript.html]The World's Most Misunderstood Programming Language[/URL]
Copy linkTweet thisAlerts:
@KorOct 22.2004 — The Gates/Gecko war did a lot of trouble to javascript (but sometimes even to HTML also) so it is not the language itself to be blamed. This stupid war seems to have ended bty now.

See DOM recomandations which, with few exceptions, is now followed as a base recomended core for browsers.

with window.open in HTML
[/quote]

window.open() is a javascript method, not a HTML action...

And what the hell it takes to refer to an object in HTML with a given id
[/quote]

If learned javascript a litle more, should have seen that an object can be refered upon it's name, tag name, or child/parent and in combination with the above, upon type or index or even attributes as well as upon id.


and what the hell is the difference between between Javascript 1.1 , 1.2, 1.3, 1.4
[/quote]

Things changed in time. Most of the differences are add-ons, not replacement reccomandations.
Copy linkTweet thisAlerts:
@dimkaauthorOct 22.2004 — Sorry again, guys...


You all are right - JavaScript is indeed a useful language... I was just so frustrated yesterday....

You know when you're debugging your code, changing every possible line, and in the end it's just some mistype error...

Anyway... I'll get used to it.

Thanks.
Copy linkTweet thisAlerts:
@jbotOct 22.2004 — [i]Originally posted by dimka [/i]

[B]Sorry again, guys...



You know when you're debugging your code, changing every possible line, and in the end it's just some mistype error.[/B]
[/QUOTE]


no worries.

yes, JS can be a bugger to debug. the nice thing is tho, you can use JS to debug itself. use alerts or print out document flow values to a popup window. that helps. alternatively, get a JS editor (yes, they exist) and debug in that.
Copy linkTweet thisAlerts:
@JPnycOct 22.2004 — Alerts. The single most useful tool in debugging JS. I also recommend Netscrape's or Mozilla's JS console. Gives more useful error messages than IE's.
Copy linkTweet thisAlerts:
@Willy_DuittOct 22.2004 — [i]Originally posted by DUNSEL [/i]

[B]Alerts. The single most useful tool in debugging JS. I also recommend Netscrape's or Mozilla's JS console. Gives more useful error messages than IE's. [/B][/QUOTE]


Yea but you have to watch how and when you use them...

Getting caught in an indefinite while loop is a biatch...

I also use the status bar to display values while a script runs as well as using innerHTML to write values to a test division...

Don't get me wrong... Alerts are certainly useful but who wants to cancel 10 or more alerts... My personal limit is no more than three...

.....Willy
Copy linkTweet thisAlerts:
@JPnycOct 22.2004 — Yeah I usually don't use more than that. If I'm having trouble with a large function, I isolate sections of it, during which 1 or 2 alerts is plenty. When in doubt, simplify.?
Copy linkTweet thisAlerts:
@jbotOct 22.2004 — [i]Originally posted by Willy Duitt [/i]

[B]Don't get me wrong... Alerts are certainly useful but who wants to cancel 10 or more alerts... My personal limit is no more than three.[/B][/QUOTE]


of course, i just wanted to highlight that there's a time when they're useful. however, they can be overused and incorpoorating them in your script at salient points is not remiss. i use them to check that functions are actually being called, not just appearing to be so. yes, it's not a good idea to put them into loops, but you can insert them after one to check on it's outcome. it's all commonsense in how you apply them.

the JS console in NS is good for determining the error, but necessarily for pinpointing its cause. that's where the judicious use of alerts can come in. but you gotta judge it well, like you say, or else loopsville is destination number 1.
Copy linkTweet thisAlerts:
@7studOct 22.2004 — Does anyone use the Mozilla javascript debugger which is called 'Venkman'? It is a full featured debugger with watch windows to track variables, breakpoints, and the ability to step through your code, etc.

I just downloaded it as an extension recently, but I am unclear how it works. For instance if I start at a line like this:

var a=10;

as with all debuggers, if that line is highlighted it hasn't executed yet, so 'a' will be undefined. However, when I step to the next line, I still find 'a' is undefined. I was wondering if anyone else sees behavior like that or can explain it? According to the Venkman tutorial I was going through, that shouldn't happen.
Copy linkTweet thisAlerts:
@steelersfan88Oct 22.2004 — It won't change anything, but you can declare a number the *correct* way:var numb = new Number(10); // declares a number with value of 10It doesn't do much, but it is better suited for real application languages, which force you to declare variables before using them.

Dr. Script
Copy linkTweet thisAlerts:
@jbotOct 22.2004 — [i]Originally posted by steelersfan88 [/i]

[B]you can declare a number the *correct* way: it is better suited for real application languages, which force you to declare variables before using them.[/B][/QUOTE]


that's a matter of opinion. JS is a dynamic language which allows you to declare variables literally. there is no one "correct" way. if anything not declaring literal variables is slower than your so-called "correct" way.

btw: JS is a "real application language". it is used in many enterprise and mainstream business applications as a macro language and as a development language.

visit the links i posted earlier in the thread which discuss its success and weaknesses. why not have a wee look. ?
Copy linkTweet thisAlerts:
@steelersfan88Oct 22.2004 — "Real" application languages are Java, C ... aka the bulky languages. JavaScript is made to be smaller because the others are too big for the web.

In most other languages, it is required to give a variable a type. So, although not required, and actually rare, it can't hurt to start the practice by doing so as I showed.
Copy linkTweet thisAlerts:
@jbotOct 22.2004 — [i]Originally posted by steelersfan88 [/i]

[B]In most other languages, it is required to give a variable a type. So, although not required, and actually rare, it can't hurt to start the practice by doing so as I showed. [/B][/QUOTE]


understood, but there is no point. JS is weakly typed, and doesn't need variable types to be declared. so all you're doing is using up bandwidth.
Copy linkTweet thisAlerts:
@steelersfan88Oct 23.2004 — No, all your doing is preparing to take a step forward. Declaring variable types will not be an influence in bandwidth. That's like saying to get rid of all whitespace before uploading ...
Copy linkTweet thisAlerts:
@igglestatJan 22.2005 — If javascript appears stupid, it is because stupid people are often offering help, and very little help at that... as for opening a new window with javascript it is easy, and most idiotic javascript programmers can't do much more than open a new window. Actually javascript has much greater possibilities as creating program functions and such, but most dummies on the internet won't be able to help you with that, they are still stuck on how to open a new window, in fact, their perception of "onClick" is merely to open a new window, that's how lame they are. I wish I could refer you to a good site on javascripting, but most sites are still concerned with how to open a new window, which is rather sad... if I have annoyed you talking so much about merely opening a new window, it is because if you do an internet search on a popular search engine as yahoo, most all of the javascript related sites listed will merely offer info on how to open a new window, change font, etc., they are lame ass idiots. Actually onClick command has browser navigation functions, open external program functions, and much much more. But again, most lame ass idiots will suggest it is merely for opening a new window, changing font color size etc. As for how to open a new window, here is the help you need, simplified:

Place this small tidbit of code between <head> and </head> of html document:

<SCRIPT language=javascript>

var win = null;

function NewWindow(mypage,myname,w,h,scroll){

LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;

TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

settings =

'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'

win = window.open(mypage,myname,settings)

}

</SCRIPT>

Then in body, where you want the link to appear, use this simple code:

<a href="sample.htm" onClick="NewWindow(this.href,'sample','750','500','no');return false">Sample</a>

both 'sample' and "sample.htm" referring to the page you wish to call up (have open in new window). You can also do the same thing using onClick with an image verses mere text link:

<a onClick="NewWindow(this.href,'sample','550','360','no');return false" href="sample.htm"><img height=299 alt="Sample Page" src="images/sample.jpg" width=450></a>

I don't mean to be a pessimist either, but I too have had to put up with the ol' "It's top secret, we can't let them know that command if they don't already know it"... else, you ask for one thing, as how to open an external program using javascript, and some idiot replies with "how to open a specific word document"... it is sad at best.

Good luck, but don't expect that much from the forums.
Copy linkTweet thisAlerts:
@StashXJan 22.2005 — Respect JavaScript!!!

?
Copy linkTweet thisAlerts:
@ScriptNoobie86Jan 22.2005 — im gona take my turn and laugh at you.

if you know c and c++ and whatnot then why use such a l,anguage as javascript, as you said it is worthless and useless......
Copy linkTweet thisAlerts:
@PittimannJan 22.2005 — Hi!

ScriptNoobie86, would you mind giving your avatar a different frequency? That's to much for my incompetent eyes. ?

Cheers - Pit
Copy linkTweet thisAlerts:
@ScriptNoobie86Jan 22.2005 — yeah lol my laptop is slow so it looks like its blinking at 5 per second
Copy linkTweet thisAlerts:
@PittimannJan 22.2005 — Hi!

5 per second? Can't you make it something like 2 per second? ?

Regards, Pit
Copy linkTweet thisAlerts:
@ScriptNoobie86Jan 22.2005 — better?
Copy linkTweet thisAlerts:
@PittimannJan 22.2005 — Yes! ?

But I have to say: it was not the wheel chair which disturbed me. I see real wheelchairs daily, but they are more stable than yours used to be.

Please, change it back! I still have the choice to avoid threads you are dealing with, if I can't bear the avatar. :p

Pit
Copy linkTweet thisAlerts:
@ScriptNoobie86Jan 22.2005 — better lol?
Copy linkTweet thisAlerts:
@maciej64Jan 23.2005 — [i]Originally posted by ScriptNoobie86 [/i]

[B]im gona take my turn and laugh at you.



if you know c and c++ and whatnot then why use such a l,anguage as javascript, as you said it is worthless and useless...... [/B]
[/QUOTE]


Javascript is a scripting language for web pages.

Just for this single purpuse.

The mere idea that someone considers useing C/C++ for this job is somewhat funny.
Copy linkTweet thisAlerts:
@ScriptNoobie86Jan 23.2005 — i didnt...

Grats on reading something, if you think im an idiot, ill tell you that your a hypocrite, he was b1tching about how bad javascript is and you just restated my point... way to go youve reached a new record for being a moron.

(ever hear of sarcasm. mabe the ......... means something? nah probably not...

...by the way your not a dumbass..............)
Copy linkTweet thisAlerts:
@Willy_DuittJan 23.2005 — [i]Originally posted by igglestat [/i]

[B]If javascript appears stupid, it is because stupid people are often offering help, and very little help at that...[/B][/QUOTE]


Seems to me that your problem is that you must be asking [i]stupid[/i] questions...

[i]stupid[/i] is, what [i]stupid[/i] does!! :rolleyes:

.....Willy
Copy linkTweet thisAlerts:
@HiyaJan 23.2005 — Buy a book and learn javascript! It is simple. You know [b][i][u]C++?[/u][/i][/b]. If you know that javascript should be a doodle.
Copy linkTweet thisAlerts:
@KorJan 24.2005 — 
You know C++?. If you know that javascript should be a doodle.
[/quote]


He... Not necessary a truck driver might ride a bike...?
×

Success!

Help @dimka spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...