473,609 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need some JavaScript puzzles

Hi guys,
I'm learning JavaScript and I need some puzzles that can make me a
better JavaScript programmer. I mean I'm looking out for programming
puzzles (e.g. Project Euler or TopCoder) but I'm looking out for
language specific puzzles that can make me a top-notch JavaScript
programmer. a) Any puzzles you can recommend? b) Any programs that you
can suggest that can make me learn JavaScript internals in greatest
depth.

Please recommend anything. I know some very best programmers lurk
around here so any help will be appreciated. Moreover, to people
who've been using JavaScript for sometime, please recommend programs
that you wish you had done earlier to understand internals in a better
way. Thanks in advance.
Sep 23 '08 #1
25 5446
Oltmans wrote:
I'm learning JavaScript and I need some puzzles that can make me a better
JavaScript programmer. I mean I'm looking out for programming puzzles
(e.g. Project Euler or TopCoder) but I'm looking out for language
specific puzzles that can make me a top-notch JavaScript programmer. a)
Any puzzles you can recommend?
You will not become what you aspire to be by solving trivial puzzles. Find
a *real-world problem* that you want to solve. Try to solve it using an
ECMAScript implementation like JavaScript. There is no better exercise,
even if the scripted solution turns out not to be the best approach to solve
that particular problem.
b) Any programs that you can suggest that can make me learn JavaScript
internals in greatest depth.
Programs?
Please recommend anything. I know some very best programmers lurk around
here so any help will be appreciated.
I do not think they just *lurk* *here*.
Moreover, to people who've been using JavaScript for sometime, please
recommend programs that you wish you had done earlier to understand
internals in a better way. Thanks in advance.
I can recommend Mozilla Thunderbird to subscribe to, read, and post to
comp.lang.javas cript using your real name.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Sep 23 '08 #2

You will not become what you aspire to be by solving trivial puzzles. *Find
a *real-world problem* that you want to solve. *Try to solve it using an
ECMAScript implementation like JavaScript. *There is no better exercise,
even if the scripted solution turns out not to be the best approach to solve
that particular problem.
Point taken. On a serious note, can you recommend some projects that I
should be working on in my spare time? Any ideas that you have. Thanks
in advance.
Sep 23 '08 #3
Oltmans wrote:
Please recommend anything. I know some very best programmers lurk
around here so any help will be appreciated. Moreover, to people
who've been using JavaScript for sometime, please recommend programs
that you wish you had done earlier to understand internals in a better
way. Thanks in advance.
Well, one recommendation would be to lurk around here. You'll get a
never-ending supply of "why doesn't this work?" questions. Since you'll
be facing some of these (of your own making), skill in working out why
something doesn't work can be quite handy. I probably spend more time on
the one thing that doesn't work than I do on the few things coded by me
that do work.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Sep 23 '08 #4
Oltmans wrote:
>You will not become what you aspire to be by solving trivial puzzles. Find
a *real-world problem* that you want to solve. Try to solve it using an
ECMAScript implementation like JavaScript. There is no better exercise,
even if the scripted solution turns out not to be the best approach to solve
that particular problem.

Point taken. On a serious note, can you recommend some projects that I
should be working on in my spare time? Any ideas that you have. Thanks
in advance.
There are several open-source projects you could generally contribute to,
however I am afraid that without more-than-pedestrian knowledge you could
neither appreciate your participation in those projects as you would like
to, nor would it be likely that you could make a considerable contribution
to them.

IMHO, programming languages can be learned best like natural languages: by
using them in everyday life. Therefore, I (seriously) suggested you try to
use scripting to solve *your* problems first, those which bug *you* the
most. Start with the ones that look simple on the outset. Find them to be
more complex than you thought. Do not let yourself be discouraged, and take
your time to solve them eventually. Then use the experience gained to solve
even more complex problems.

When (not: if) you get stuck in the process, read *again* everything about
the topic that you can get your hands on (electronic material is cheapest
and readily available, but not always best; books are more expensive and
tend to be bad). Read it again. What is most important: Do not fall for
self-proclaimed gurus; compare your sources, verify what they are saying.
Look into the message, not at the messenger. If anything still remains
unclear, ask smart questions[1] about it.

This is how I started learning the languages a decade ago and it is still
serving me well.
HTH

PointedEars

P.S.
Please shorten, but do not remove attribution lines for quotations you leave in.
___________
[1] <http://catb.org/~esr/faqs/smart-questions.html>
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Sep 23 '08 #5

"Oltmans" <ro**********@g mail.comwrote in message
news:8c******** *************** ***********@l64 g2000hse.google groups.com...
Hi guys,
I'm learning JavaScript and I need some puzzles that can make me a
better JavaScript programmer. I mean I'm looking out for programming
puzzles (e.g. Project Euler or TopCoder) but I'm looking out for
language specific puzzles that can make me a top-notch JavaScript
programmer. a) Any puzzles you can recommend? b) Any programs that you
can suggest that can make me learn JavaScript internals in greatest
depth.

Please recommend anything. I know some very best programmers lurk
around here so any help will be appreciated. Moreover, to people
who've been using JavaScript for sometime, please recommend programs
that you wish you had done earlier to understand internals in a better
way. Thanks in advance.
OK -
Create a Bingo Game
or a Checkers game
or a Calculator like the windows accessories calculator
or a number-to-words (like writing a check) program without getting help
or all the above.
or if you like recursion, look at the "towers of Hanoi" puzzle.(google it)
Sep 24 '08 #6
Oltmans wrote:
Hi guys,
I'm learning JavaScript and I need some puzzles that can make me a
better JavaScript programmer. I mean I'm looking out for programming
puzzles (e.g. Project Euler or TopCoder) but I'm looking out for
language specific puzzles that can make me a top-notch JavaScript
programmer. a) Any puzzles you can recommend? b) Any programs that you
can suggest that can make me learn JavaScript internals in greatest
depth.

Please recommend anything. I know some very best programmers lurk

Only the best lurkers here!
O_o
:-D
around here so any help will be appreciated. Moreover, to people
who've been using JavaScript for sometime, please recommend programs
that you wish you had done earlier to understand internals in a better
way. Thanks in advance.

1. write a function return the binary representation of a given number
in "ON" and "OFF". For example, if the input is 47 (101111 in binary),
it should return "ON OFF ON ON ON ON".
Sep 24 '08 #7
On Sep 24, 3:14*am, dhtml <dhtmlkitc...@g mail.comwrote:
>
1. write a function return the binary representation of a given number
in "ON" and "OFF". *For example, if the input is 47 (101111 in binary),
it should return "ON OFF ON ON ON ON".
http://preview.tinyurl.com/3unmha

--
Jorge.
Sep 24 '08 #8
On Sep 24, 3:14*am, dhtml <dhtmlkitc...@g mail.comwrote:
>
1. write a function return the binary representation of a given number
in "ON" and "OFF". *For example, if the input is 47 (101111 in binary),
it should return "ON OFF ON ON ON ON".
[x] done: http://preview.tinyurl.com/3unmha

--
Jorge.
Sep 24 '08 #9
On Sep 23, 9:01*pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
Oltmans wrote:
You will not become what you aspire to be by solving trivial puzzles. *Find
a *real-world problem* that you want to solve.
NO. Real-world problems are generally either trivial or complex, and
neither is appropriate for practice. OP, choose instead problems
which, at your current state of knowledge, are on the verge of
difficulty. When you approach the ability to do a real-world non-
trivial problem that you want to solve, set it aside; the risks of
including someting bad and not realising it or not bothering to fix it
are too great. Instead, choose a problem of sufficient fifficulty
which you do not need to solve, so that you can throw away the
solution. Don't assume premature competence.

Tackle problems that you really need to solve only when you know
enough to be reasonably sure of making a good job of them.
Please shorten, but do not remove attribution lines for quotations you leave in.
Ignore that : people give attributions for a purpose, and full
attributions are useful in various ways that Thomas Lahn does not
understand. Remember, be is not psychologically normal, as is obvious
from reading a selection of his replies. Perhaps he is the Kaiser
reincarnated; perhaps something worse.

--
(c) John Stockton, near London, UK. Posting with Google.
Mail: J.R.""""""""@ph ysics.org or (better) via Home Page at
Web: <URL:http://www.merlyn.demo n.co.uk/>
FAQish topics, acronyms, links, etc.; Date, Delphi, JavaScript, ....|
Sep 24 '08 #10

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

Similar topics

1
2053
by: Roberto Gallo | last post by:
Hi, I have an applet running inside an html document and I need to read and to set some of html form's textfield and textarea input from my applet. How can I do that? Do I need a javascript? Thank you, Roberto Gallo
8
6190
by: Victor | last post by:
I need a JavaScript timer - I have five events I need to time, that can be triggered by a mouseclick event, or a keypress event. Each event is separated by only one to two seconds. The first event (mouse or key) starts the timer. Then, each time the event (mouse or key) occurs, I need to display the present time in the corresponding spot on the screen (so when it's over, the screen is displaying five times for each corresponding event)....
9
2379
by: Mickey Segal | last post by:
The long-simmering Eolas patent dispute: http://www.microsoft.com/presspass/press/2003/oct03/10-06EOLASPR.mspx has led to an optional Microsoft Update: http://support.microsoft.com/kb/912945/en-us that creates non-JavaScript problems that can be fixed using JavaScript. With the Microsoft update installed, Java applets (as well as other content such as Flash videos) are unable to receive user input until an activating click or key press....
22
2320
by: the_grove_man | last post by:
I purchased a book titled "Pro ASP.NET 2.0" to get up to speed on web stuff because I ususally do Windows Form Applications.. But in the first chapters I was reading this week it brought to mind some things I heard in the past that I thought someone could clarify. On Page 6 it states "ASP.NET web pages (and web services) are executed within the CLR (common language runtime), so they can be authored in any language that has a...
3
1455
by: Jevgeni Kabanov | last post by:
Just a couple of language puzzles I compiled from a course I took recently, quite entertaining IMHO: http://dow.ngra.de/2008/02/28/javascript-puzzlers/ What do you think? Jevgeni Kabanov
1
3119
by: saravanatmm | last post by:
I need javascript code for validate the email address. Email address field cannot allowed the capital letters, special characters except '@' symbol. But can allowed the small letters, numeric numbers. Now i use this script for validate the email address. But it allows the cpital letters otherwise its working correctly. SCRIPT FUNCTION ************************************************
10
7346
by: Dutchmarshalls | last post by:
Hi All, I'm using a Pay Pal form script, but locally tested in Dreamweaver with a browser it will do exactly what I'm aspect it to do. Only when I'm uploaded the file on the server it will give this ERROR. By th way, I'm using a Joomla 1.5.3 site. The URL: http://www.dutchmarshalls.com/index.php/service/51-service/87-price-and-product-list- The ERROR CODE:...
0
8109
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
8035
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
8534
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
8509
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8374
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
6969
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
5502
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
4002
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...
1
1630
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.