Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Need some JavaScript puzzles
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
showellshowell@gmail.com  
View profile  
 More options Sep 24 2008, 11:04 am
Newsgroups: comp.lang.javascript
From: "showellshow...@gmail.com" <showellshow...@gmail.com>
Date: Wed, 24 Sep 2008 08:04:09 -0700 (PDT)
Local: Wed, Sep 24 2008 11:04 am
Subject: Re: Need some JavaScript puzzles
On Sep 23, 8:50 am, Oltmans <rolf.oltm...@gmail.com> wrote:

> Hi guys,
> I'm learning JavaScript and I need some puzzles that can make me a
> better JavaScript programmer. [...]

> [...] please recommend programs
> that you wish you had done earlier to understand internals in a better
> way. Thanks in advance.

One of the first Javascript programs that I wrote lives here:

http://webstervanrobot.com/ (only tested on Firefox)

The program implements a small programming language on top of
Javascript that allows a robot to move around a grid of streets and
avenues.

It got me acquainted with the following concepts:

  creating objects
  manipulating DOM
  parsing strings
  implementing data structures
  responding to events
  setting up callbacks and responding to them
  variable scoping (this, var, etc.)
  cross-browser pain (which I have punted on so far)

If you're learning Javascript, this might be a fun program to hack on,
because it's all self-contained and not tied to any domain, and I'm
hoping to make it a useful program.  It really is a "Javascript
program," as opposed to code that lives within a larger system, for
better or worse.

Some challenges:

  1) Make it work on a browser other than Firefox.
  2) Change the world to be rendered on a canvas instead of tables.
  3) Add scrolling to the world.
  4) Add new capabilities for the robot.
  5) Add new syntax to the programming language.
  6) Simply play around with the code, try to restructure it to your
liking.
  7) Get the program to have a mode where you can click on it to see
the internal data structures that define the world.

Yes, I'm subversively asking for help with my program, but the program
was written with the intention of helping people learn Javascript (and
programming in general).  It's free software.

Cheers,

Steve
http://webstervanrobot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.