473,799 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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*******@yoyob rain.com...

Best,

Elizabeth
Jun 27 '08 #1
7 1184
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...@yoyob rain.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...@rain drop.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...@rain drop.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
improvemen ts 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 "knowledgea ble
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...@we b.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
16865
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 in certain situations. <% // Check for expired session log.debug("session ID = " + session.getAttribute("session_loginID")); if (session.getAttribute("session_loginID") == null)
7
2331
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 computational-time-saving manner. Specifically, what I'd like to know is if there're any useful tips about writing your codes more efficiently. One such useful tip is that we can use the "switch" statement instead of multiple "if-else" statements; another is that...
5
3066
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 out why it quit working. I found that if I didn't have a linkbutton, it quit working????????? If I changed the linkbutton to a regular button, it quit working. Here is the page:
8
2537
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 file (present under the Properties folder of the project) 3. Now I created a file called test.js on the root folder of the project,
6
1607
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) & ":inTotal" & arr(4,i1) & "=" & arr_(i1,i2)) 'it is working, I have variable
31
2563
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
2268
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 have three books from the library that I have been s*l*o*w*l*y going through.) Currently I have a large, say, 30x20, table <table id="GameTable" >
2
1720
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 process - so the data needs to be read in 1 record at a time then run thru the transformation that may create new data value then everything is imported into a db to store. I have multiple questions 1)we used to have an internal data structure...
0
9540
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,...
0
10475
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10026
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
9068
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...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
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
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.