473,769 Members | 5,131 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prototype - Good/Bad/Why?

Guys, I see a fair bit of negativity around re subject package. Can
someone share your views, either way?

Thanks,

AS
Feb 15 '08
56 3019
Gregor Kofler wrote:
Thomas 'PointedEars' Lahn meinte:
>John Resig wrote:

[snip]

I doubt that he is reading this reply...
When others do a foolish thing you should tell them it is a foolish thing.
They can still continue to do it, but at least the truth is where it needs
to be.
-- Dukhat (from: "Babylon 5" - "Atonement" )
Regards,

PointedEars
Feb 18 '08 #41
Gregor Kofler wrote:
David Mark meinte:
>>Well, since he is a self-proclaimed "JavaScript evangelist" (as a
LOL. I haven't heard that one before.

Here:
http://ejohn.org/about/

Since he is the "JavaScript Evangelist for the Mozilla Corporation" I
should reconsider my using of Firefox... But then: Perhaps he's just the
professional guinea pig for debugging add-ons like FireBug.
I didn't get the last one. Firebug (no caps in between) was conceived
and is continued to be developed by Joe Hewitt, who appears to me to be
a !(John Resig) regarding his approach at Web software development. At
least I found my Firebug beta test comments very well received.
PointedEars
--
var bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Feb 18 '08 #42
On Feb 19, 1:19 pm, David Mark <dmark.cins...@ gmail.comwrote:
I had to close two error alerts in IE just to navigate to this post in
Google Groups.
You should have saved your time and not bothered.

Matt Kruse
Feb 19 '08 #43
On Feb 19, 2:43*pm, Matt Kruse <m...@mattkruse .comwrote:
On Feb 19, 1:19 pm, David Mark <dmark.cins...@ gmail.comwrote:
I had to close two error alerts in IE just to navigate to this post in
Google Groups.

You should have saved your time and not bothered.
You could have saved me considerable time by not replying in the first
place. The world didn't need a rehash of the original re-tread. We
had this same discussion three months ago.
Feb 19 '08 #44
Dag Sunde wrote on 19 feb 2008 in comp.lang.javas cript:
"Richard Cornford" <Ri*****@litote s.demon.co.ukwr ote in message
>It would be unfortunate for anyone to fall victim to the delusion that a
statement could be worth more, more true or more significant as a
consequence of who made it.

Then it is unfortunate indeed!
But a statement is worth more to ME
if made by someone whose judgement I value,
but that does not go sofar
as to trust the statement in a scientific sense.

Doubt is the basis of science.

Therefore "proving" an argument by just quoting someone,
even if it is an "authority" , should be distrusted.

Technology should be based on science.
Programming is a technology.
Playing/working with javascript is a form of programming.
So distrusting proof by authority is a healthy habit also in javascript.
Modern society and its power-structures are buildt on the delusion that a
statement *is* worth more, more true or more significant depending on who
made it.
I do not hold this building for true, as per the above reasons, Dag.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 19 '08 #45
David Mark wrote:
<snip>
Crockford is one of the leading experts on JavaScript.
Other than Richard Cornford, I am not familiar with
any bigger authorities on the language.
<snip>

Martin Honnen? For experience and technical knowledge Martin is pretty had
to beat.

As worded that has the implication that I may be bigger authority on
javascript than Douglas Crockford. I am not very comfortable with that idea.
Partly because I am not very comfortable with the idea of authority at all;
nobody's ideas are worth any more, or any less, than the reasoning behind
them. But mostly because Douglas Crockford was genuinely an expert when I
was a complete novice and making all the amateurish mistakes that are
expected of novices.

I learnt a huge amount from Douglas Crockford as a result of our exchanges
on this group, and even more as a direct result of reading his articles and
code. It is the case, for example, that I maybe would never have pursued
closures were it not for Douglas Crockford's method for creating private
members of javascript object instances (because that more OO employment of
closures had more concrete appeal at the time for a former Java programmer
than Yann-Erwan Perio's fascinating functional programming examples).

It is difficult to understate the significance of JSON. Javascript's object
notation sat under our noses for years but it took a genius to notice that a
subset of it could be directly interchangeable with XML but more efficient,
and that genius was Douglas Crockford. JSON is here to stay, and if
inventing it were his only legacy that alone would be a significant
accolade. But if you look at every significant change in the way javascript
is coded that has happened over the last half decade or so a line of
influences traced back might branch and spider along the way but sooner or
later it would link to Douglas Crockford.

Richard.
Feb 20 '08 #46
On Feb 19, 8:31*pm, "Richard Cornford" <Rich...@litote s.demon.co.uk>
wrote:
David Mark wrote:

<snip>Crockfo rd is one of the leading experts on JavaScript.
Other than Richard Cornford, I am not familiar with
any bigger authorities on the language.

<snip>

Martin Honnen? For experience and technical knowledge Martin is pretty had
to beat.
Yes, he always seems to know what he is talking about. And how could
I have left out Jim Ley? Then again, perhaps he is more known for
cross-browser scripting expertise (like PPK.) He got me off browser
sniffing many years back (yes, I once thought the user agent string
was source of relevant information.) What ever happened to him?
>
As worded that has the implication that I may be bigger authority on
javascript than Douglas Crockford. I am not very comfortable with that idea.
I didn't really mean to imply that. But isn't his famed "module
pattern" something you came up with first?
Partly because I am not very comfortable with the idea of authority at all;
nobody's ideas are worth any more, or any less, than the reasoning behind
them. But mostly because Douglas Crockford was genuinely an expert when I
was a complete novice and making all the amateurish mistakes that are
expected of novices.

I learnt a huge amount from Douglas Crockford as a result of our exchanges
on this group, and even more as a direct result of reading his articles and
code. It is the case, for example, that I maybe would never have pursued
closures were it not for Douglas Crockford's method for creating private
members of javascript object instances (because that more OO employment of
closures had more concrete appeal at the time for a former Java programmer
than Yann-Erwan Perio's fascinating functional programming examples).
I had barely heard of them a year or so back. It was your article on
the subject that changed the way I write script. The various demos on
your site are what led me to use one-off feature detection/testing. I
don't know how I got by for so many years without that pattern. It
goes to show that it doesn't take a lifetime to learn advanced browser
scripting techniques if you choose the examples you follow carefully.
On the other hand, there are so many poor sources of information on
JavaScript out there that it is very easy to get lost forever.
>
It is difficult to understate the significance of JSON. Javascript's object
notation sat under our noses for years but it took a genius to notice thata
subset of it could be directly interchangeable with XML but more efficient,
and that genius was Douglas Crockford. JSON is here to stay, and if
inventing it were his only legacy that alone would be a significant
accolade. But if you look at every significant change in the way javascript
is coded that has happened over the last half decade or so a line of
influences traced back might branch and spider along the way but sooner or
later it would link to Douglas Crockford.
I imagine so. I use one of his programs (JSLint) to "supervise" my
own code. It is quite humbling when somebody else's *code* knows more
about JavaScript than you do! Lately it only catches typos, but there
was a time when it would inform me of all sorts of issues that I was
otherwise unaware of. If I ran some of my 90's code through it, it
would probably tell me to find a new career.
Feb 20 '08 #47
David Mark said the following on 2/19/2008 9:50 PM:
On Feb 19, 8:31 pm, "Richard Cornford" <Rich...@litote s.demon.co.uk>
wrote:
>David Mark wrote:

<snip>Crockfor d is one of the leading experts on JavaScript.
>>Other than Richard Cornford, I am not familiar with
any bigger authorities on the language.
<snip>

Martin Honnen? For experience and technical knowledge Martin is pretty had
to beat.

Yes, he always seems to know what he is talking about. And how could
I have left out Jim Ley? Then again, perhaps he is more known for
cross-browser scripting expertise (like PPK.) He got me off browser
sniffing many years back (yes, I once thought the user agent string
was source of relevant information.) What ever happened to him?
He (Jim) is still around, you just don't see him much anymore.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 20 '08 #48
David Mark <dm***********@ gmail.comwrites :
>
Crockford is one of the leading experts on JavaScript. Other than
Richard Cornford, I am not familiar with any bigger authorities on the
language.
In my early JavaScript coding days, I found out about Matt Kruse's
Knowledge Database
<URL: http://www.javascriptt oolbox.com/search/>, which is
basically just a re-dispatch of queries to google "web" and google
groups.

I spotted the "trusted" names on the query in the lower frame
(type, for example -niark niark- "Prototype. js" in the input field, to
perform a query) and raised their score in my Gnus client.

The posts of those people turned out to be, at least, most reliable!

Best,
A.
Feb 20 '08 #49
Arnaud Diederen (aundro) said the following on 2/20/2008 5:40 AM:
David Mark <dm***********@ gmail.comwrites :
>Crockford is one of the leading experts on JavaScript. Other than
Richard Cornford, I am not familiar with any bigger authorities on the
language.

In my early JavaScript coding days, I found out about Matt Kruse's
Knowledge Database
<URL: http://www.javascriptt oolbox.com/search/>, which is
basically just a re-dispatch of queries to google "web" and google
groups.

I spotted the "trusted" names on the query in the lower frame
(type, for example -niark niark- "Prototype. js" in the input field, to
perform a query) and raised their score in my Gnus client.

The posts of those people turned out to be, at least, most reliable!
Matt, if you are reading this, a search on that page for the simple
phrase "prototype. js" turns up zero hits in Usenet. It should find at
least some as I know that I have used prototype.js in posts as an
author. If I do a manual search in Google Groups for it, then I find it.

Phrase: prototype.js
Group: comp.lang.javas cript
Author: Randy Webb

Your site gives me zero hits, a manual search gives me 88 results.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 20 '08 #50

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
5568
by: Mantorok Redgormor | last post by:
Would this by any chance invoke undefined behavior? extern int printf(const char *, ...); int main(void) { printf("Hello\n"); return 0; } That is, providing my own printf prototype would invoke undefined behavior in anyway? Assuming the implementation is c89 of course.
21
3856
by: Rob Somers | last post by:
Hey people, I read a good thread on here regarding the reason why we use function prototypes, and it answered most of my questions, but I wanted to double check on a couple of things, as I am writing something up on functions, and I don't like writing about things I am not sure about. Ok, then, here we go: I initially thought that one would only really need to use a function
4
2240
by: jemptymethod | last post by:
http://htmatters.net/htm/1/2006/01/EIBTI-for-Javascript-explicit-is-better-than-implicit.cfm
12
2202
by: petermichaux | last post by:
Hi, I've been reading the recent posts and older archives of comp.lang.javascript and am surprised by the sentiments expressed about the prototype.js library for a few reasons: 1) The library has been referred to as "junk" many times which is a strong opinion against the relatively high popularity of the library. I know popularity doesn't make something good.
11
1530
by: shypen42 | last post by:
Hi all, I'm very confused by the relation between "prototype" and that "Prototype.js" library that seems to be used quite a lot (not by knowledgeable people from this group if I understood correctly). For example, when I do this, I use the keyword (?) "prototype": function Example() {
45
3035
by: bigdadro | last post by:
I've created a new class using prototype.js. After I make the ajax.request all references to this.myClassMethodorVariable are lost. Does the ajax method blow out the object persistance? I'm fairly new to OOP javascript so could be (and probably am) overlooking some detail. Below is the logic of what i'm trying to do. //Javascript code var myClass = Class.create(); myClass.prototype={ initialize: function(fm) {
28
2644
by: Diodeus | last post by:
I would like to set up an event observer outside of an object, so I can't use this.bindAsEventListener. How can I pass the correct object reference? I tried something like this, and various other variations, but no luck. This works when I set it up from inside the object, using "this.", Event.observe(targetId,'click',targetId.select.bindAsEventListener(this),false);
23
1772
by: Dautkhanov | last post by:
Hello ! Does anybody have cutted version of prototype.js with the AJAX functionality only? I am a new in prototype.js topic, so I think this task should be done by other developers. Maybe protorype.js should be splitted into small pieces of the js scripts with groupped functionality
3
1811
by: mike_solomon | last post by:
I am trying to use prototype.js to log javascript errors among other things but by including <script type="text/javascript" src="prototype.js"></scriptin my page some of my existing javascript no longer works for example function submitAction(form,newaction,hiddenName,hiddenValue) {
83
4236
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about it too? Once I saw a website comparing Prototype to Java and jQuery to Ruby... but now that I read more and more about Prototype, it is said that Prototype actually came from Ruby on Rails development and the creator of Prototype created it...
0
9583
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6668
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5297
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5445
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3955
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.