473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Working more efficiently in Javascript

This may be a useful tool to better understand & find Javascript
concepts:
http://www.yoyobrain.com/subjects/show/240

Add flashcards to your studies, click on cram with the learning
wizard.

We're building this site to improve learning, so feedback on
improvements and how to get this into the hands of developers is much
appreciated. Feel free to email me too- el*******@yoyobrain.com...

Best,

Elizabeth
Jun 27 '08 #1
7 1165
On Jun 9, 11:11 am, Elizabeth Barnwell <elizabethbarnw...@gmail.com>
wrote:
This may be a useful tool to better understand & find Javascript
concepts:http://www.yoyobrain.com/subjects/show/240

Add flashcards to your studies, click on cram with the learning
wizard.

We're building this site to improve learning, so feedback on
improvements and how to get this into the hands of developers is much
appreciated. Feel free to email me too- elizab...@yoyobrain.com...
Regarding http://www.yoyobrain.com/cardboxes/preview/502

The flash cards show questions but no question marks. There isn't even
any terminal sentence punctuation

-----

How do you embed JavaScript code in a web page?

<script type="text/javascript">

-----

How do you refer to a JavaScript in a separate .js file?

see above

-----

How can you get a browser to continue parsing...?

Questions about "defer" should probably not be included as this is a
relatively useless attribute.

-----

What is the trick to dynamically writing scripts to a page with
document.write

document.write('<script type="text/javascript">/* code */<\/script>');

-----

How do you hide a script from old browsers that don't know javascript?

This question is very out dated. No one should do this anymore.

-----

How do you turn on conditional JavaScript compilation?

These tactics should not be encouraged for use by anyone at the level
of learning these flash cards. In fact, conditional comments probably
shouldn't be used at all.

-----

What is the same origin policy for browser JavaScript code?

The answer is very misleading. Some would say wrong.

-----

There is plenty of incorrect information about JavaScript available on
the web. We don't need more. If you want to have a credible site, you
will need a knowledgeable JavaScript programmer to write your answers.

Peter
Jun 27 '08 #2
On Jun 9, 7:11 pm, Elizabeth Barnwell wrote:
This may be a useful tool to better understand & find Javascript
concepts:http://www.yoyobrain.com/subjects/show/240

Add flashcards to your studies, click on cram with the learning
wizard.

We're building this site to improve learning, so feedback on
improvements and how to get this into the hands of developers
is much appreciated. ...
<snip>

One of your flash card questions is "What are the 3 primitive data
types?". The answer is moot because javascript/ECMAScript has 5
primitive data types. There is so much wrong with your card's contents
that correcting them would effectively involve writing the lot from
scratch. I would have to second Peter's opinion; "If you want to have
a credible site, you will need a knowledgeable JavaScript programmer
to write your answers".

However, is the 'flash card' idea useful/effective from the outset?
How many of the cards mention "concepts" (or come close to usefully
explaining them)? And how much understanding can follow form just the
accumulation of a set of discrete facts (assuming they were factual to
start with)?
Jun 27 '08 #3
On Jun 10, 8:18 am, Henry <rcornf...@raindrop.co.ukwrote:
On Jun 9, 7:11 pm, Elizabeth Barnwell wrote:This may be a useful tool to better understand & find Javascript
concepts:http://www.yoyobrain.com/subjects/show/240
Add flashcards to your studies, click on cram with the learning
wizard.
We're building this site to improve learning, so feedback on
improvements and how to get this into the hands of developers
is much appreciated. ...

<snip>

One of your flash card questions is "What are the 3 primitive data
types?". The answer is moot because javascript/ECMAScript has 5
primitive data types. There is so much wrong with your card's contents
that correcting them would effectively involve writing the lot from
scratch. I would have to second Peter's opinion; "If you want to have
a credible site, you will need a knowledgeable JavaScript programmer
to write your answers".

However, is the 'flash card' idea useful/effective from the outset?
How many of the cards mention "concepts" (or come close to usefully
explaining them)? And how much understanding can follow form just the
accumulation of a set of discrete facts (assuming they were factual to
start with)?


Hi Henry and Peter,

Thanks for your feedback.

The idea for yoyobrain.com came when the creator, Will Bunker
(match.com), wanted to switch from .net to web 2.0... he used
flashcards to help him learn and work more efficiently so he didn't
have to look things up all the time. These are his flashcards, but
anyone could get on the site and make their own to make learning
materials that suit one's particular learning style - with the added
benefit of building knowledge with others by sharing information.
We're adding the option to adopt others' learning materials to your
own so you may edit them as you please...

Thanks for your suggestions on improving the cards- I'll definitely
pass them along. Let me know of anything else you think of!

Best,

Elizabeth
Jun 27 '08 #4
On Jun 10, 10:46 am, Elizabeth Barnwell <elizabethbarnw...@gmail.com>
wrote:
On Jun 10, 8:18 am, Henry <rcornf...@raindrop.co.ukwrote:
On Jun 9, 7:11 pm, Elizabeth Barnwell wrote:This may be a useful tool to better understand & find Javascript
concepts:http://www.yoyobrain.com/subjects/show/240
Add flashcards to your studies, click on cram with the learning
wizard.
We're building this site to improve learning, so feedback on
improvements and how to get this into the hands of developers
is much appreciated. ...
<snip>
One of your flash card questions is "What are the 3 primitive data
types?". The answer is moot because javascript/ECMAScript has 5
primitive data types. There is so much wrong with your card's contents
that correcting them would effectively involve writing the lot from
scratch. I would have to second Peter's opinion; "If you want to have
a credible site, you will need a knowledgeable JavaScript programmer
to write your answers".
However, is the 'flash card' idea useful/effective from the outset?
How many of the cards mention "concepts" (or come close to usefully
explaining them)? And how much understanding can follow form just the
accumulation of a set of discrete facts (assuming they were factual to
start with)?

Hi Henry and Peter,

Thanks for your feedback.

The idea for yoyobrain.com came when the creator, Will Bunker
(match.com), wanted to switch from .net to web 2.0... he used
flashcards to help him learn and work more efficiently so he didn't
have to look things up all the time. These are his flashcards, but
anyone could get on the site and make their own to make learning
materials that suit one's particular learning style - with the added
benefit of building knowledge with others by sharing information.
We're adding the option to adopt others' learning materials to your
own so you may edit them as you please...

Thanks for your suggestions on improving the cards- I'll definitely
pass them along. Let me know of anything else you think of!

Best,

Elizabeth
In regard to needing more experienced JavaScript programmers, you hit
the nail on the head. YoYoBrain.com could maybe become a tool they
would want to use to make their own learning materials to be shared
with others- making an organized resource of information. If you took
all of the valuable information you give to others in your posts on
this discussion board, made it into learning material on yoyobrain-
this could be cool, and efficient- I think that's the idea we're going
for... let me know your thoughts.

Thanks for your help.

Best,

Elizabeth
Jun 27 '08 #5
On Jun 10, 7:13 pm, Elizabeth Barnwell wrote:
>On Jun 10, 8:18 am, Henry wrote:
>>On Jun 9, 7:11 pm, Elizabeth Barnwell wrote:
This may be a useful tool to better understand & find Javascript
concepts:http://www.yoyobrain.com/subjects/show/240
>>>Add flashcards to your studies, click on cram with the learning
wizard.
>>>We're building this site to improve learning, so feedback on
improvements and how to get this into the hands of developers
is much appreciated. ...
<snip>
>>One of your flash card questions is "What are the 3 primitive
data types?". The answer is moot because javascript/ECMAScript
has 5 primitive data types. There is so much wrong with your
card's contents that correcting them would effectively involve
writing the lot from scratch. I would have to second Peter's
opinion; "If you want to have a credible site, you will need
a knowledgeable JavaScript programmer to write your answers".
>>However, is the 'flash card' idea useful/effective from the
outset? How many of the cards mention "concepts" (or come
close to usefully explaining them)? And how much understanding
can follow form just the accumulation of a set of discrete
facts (assuming they were factual to start with)?
<snip>
In regard to needing more experienced JavaScript programmers,
you hit the nail on the head. YoYoBrain.com could maybe
become a tool they
would want to use to make their own learning materials to be
shared with others- making an organized resource of information.
If you took all of the valuable information you give to others
in your posts on this discussion board, made it into learning
material on yoyobrain- this could be cool,
Cool for whom exactly? I can certainly see how a site that wants to be
something but cannot produce the content that would make it into that
thing might like the idea of someone else (who is capable) providing
that content.
and efficient -
There we have a fundamental disagreement. This strikes me as a
fundamentally poor approach towards learning to be a "knowledgeable
JavaScript programmer". It might be a viable approach towards passing
some sort of superficial formal test on the subject but it lacks to
the depth to promote understanding (or any potential to provide that
depth).

To illustrate; one of the 'flash cards' states:-

Question: "How do you hide a script from old browsers that don't know
JavaScript"
Answer (in part): "use the <!-- comment around the actual script ..."

- which is a factual assertion (disregarding many quibbles about the
precise wording (such as what does "that don't know JavaScript"
actually mean there?)). However, it lacks that explanation(s) that
would promote understanding. The (or an) explanation being that
browsers tend to disregard the contents of elements that they do not
recognise and so will tend to treat any text content they have as
content to be displayed to the user. And browser released prior to the
introduction of SCRIPT elements could have no understanding of those
elements and so would tend to display the script source code to the
user. This meant that browsers released before (approximately) mid
1996 had a problem with SCRIPT elements and this strategy was used to
address their problems. Browsers released after the introduction of
SCRIPT elements (and particularly after their formal inclusion in HTML
standards) have no excuse for not knowing how to sensibly handle their
contents (not showing the code to the user even if the browser cannot
process that code itself).

From this explanation comes the understanding that since the odds of
any script written in 2008 encountering a browser released prior to
mid 1996 are vanishingly small this "hiding form old browsers"
incantation is now redundant.

The existence of your 'flash card' implies that this, broadly factual,
assertion has significance, while an understanding of it show that
even if it is a fact it is no longer of any significance at all.
I think that's the idea we're going
for... let me know your thoughts.
The whole approach is inappropriate for the subject.
Jun 27 '08 #6
Henry wrote:
From this explanation comes the understanding that since the odds of
any script written in 2008 encountering a browser released prior to
mid 1996 are vanishingly small this "hiding form old browsers"
incantation is now redundant.

The existence of your 'flash card' implies that this, broadly factual,
assertion has significance, while an understanding of it show that
even if it is a fact it is no longer of any significance at all.
It is still of significance in the regard that using this obsolete technique
shows a lack of understanding for the basics of Web development, one that
may cause such applications to break in more recent user agents because
their implementors deemed it appropriate to remove support for this
proprietary obsolete feature or not to include it in the first place, when
it will simply become a syntax error. I do not know of such a user agent,
but this does not exclude the possibility that such one is existing or will
exist.
I think that's the idea we're going
for... let me know your thoughts.

The whole approach is inappropriate for the subject.
Insofar, I am not sure whether to agree to that. I think that, would the
flash cards be more carefully selected, questions and answers more carefully
and more precisely worded, it could provide for a viable learning experience
for those who are unwilling or incapable to understand concepts described in
the form of Specifications, who prefer a more practical approach instead
(and getting into the internals, the why, from there instead).
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jun 27 '08 #7
On Jun 12, 4:49 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Henry wrote:
From this explanation comes the understanding that since the odds of
any script written in 2008 encountering a browser released prior to
mid 1996 are vanishingly small this "hiding form old browsers"
incantation is now redundant.
The existence of your 'flash card' implies that this, broadly factual,
assertion has significance, while an understanding of it show that
even if it is a fact it is no longer of any significance at all.

It is still of significance in the regard that using this obsolete technique
shows a lack of understanding for the basics of Web development, one that
may cause such applications to break in more recent user agents because
their implementors deemed it appropriate to remove support for this
proprietary obsolete feature or not to include it in the first place, when
it will simply become a syntax error. I do not know of such a user agent,
but this does not exclude the possibility that such one is existing or will
exist.
I think that's the idea we're going
for... let me know your thoughts.
The whole approach is inappropriate for the subject.

Insofar, I am not sure whether to agree to that. I think that, would the
flash cards be more carefully selected, questions and answers more carefully
and more precisely worded, it could provide for a viable learning experience
for those who are unwilling or incapable to understand concepts described in
the form of Specifications, who prefer a more practical approach instead
(and getting into the internals, the why, from there instead).

PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Hi Thomas,

Thanks for your reply. I think you understand what we're getting at...
I know our developers, and many others have found this method useful.
However, to each his own. We are working on developing ways to comment
on, rate and add edits to others' flashcards to make community-
validated content.

I'll keep you posted on updates.

Best,

Elizabeth

Jun 27 '08 #8

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

Similar topics

2
by: schieco | last post by:
The following code always prints the debug lines inside the conditional if statement before and after the alert statement when the session has timed out, but the alert and redirect only appear/work...
7
by: eyh5 | last post by:
Hi, I'm writing some C codes to run simulations. I'm wondering if there is a website that may contain useful information on how to make one's code run more efficiently and in a...
5
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
6
by: iulian.ilea | last post by:
Hello, I have this code: ________________________________________________________ if VarType(eval("inTotal" & arr(4,i1)))=0 then response.write "ok, dim" execute("dim inTotal" & arr(4,i1) &...
31
by: krypto.wizard | last post by:
How to divide a number by 7 efficiently without using - or / operator. We can use the bit operators. I was thinking about bit shift operator but I don't know the correct answer.
8
by: squash+go | last post by:
For an abstract algebra class that I will be teaching, I'm trying to convert a text-based game that I wrote in Common Lisp to a graphical game in javascript. (I know nothing of javascript, but I...
2
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Have a complex process where I need to Import a large amount of data then run some transformations on this data then import into DataBase. The transformation involves multiple fields and multiple...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.