A sandbox to run examples of clj?

O

optimistx

If you study and test the code snippets in this newsgroup, which kind of
environment do you use? Full javascript ide like Netbeans ide or Eclipse and
you provide the necessary html and other necessary/useful code every time
from scratch?

Or have you a simpler 'sandbox', e.g. a textarea, where you can
paste/modify/execute code
with few clicks? Possibly with some helper code like object inspector?

The simplest examples here seem to have so much in common that one could try
to define a sandbox page where anyone could demonstrate their questions with
code, and others could study/modify the code.

If such a page were useful, the examples could be gathered like the
questions in FAQ, and newcomers like me could learn running them, an archive
with executable code.

Or are there already a collection of pages like that in existence?
 
J

John G Harris

If you study and test the code snippets in this newsgroup, which kind
of environment do you use? Full javascript ide like Netbeans ide or
Eclipse and you provide the necessary html and other necessary/useful
code every time from scratch?

Or have you a simpler 'sandbox', e.g. a textarea, where you can
paste/modify/execute code
with few clicks? Possibly with some helper code like object inspector?

The simplest examples here seem to have so much in common that one
could try to define a sandbox page where anyone could demonstrate their
questions with code, and others could study/modify the code.

If such a page were useful, the examples could be gathered like the
questions in FAQ, and newcomers like me could learn running them, an
archive with executable code.

Or are there already a collection of pages like that in existence?

IE already provides such a thing in its address field if the code isn't
too long :
javascript: <your javascript here>

John
 
T

Thomas 'PointedEars' Lahn

Stefan said:
I use Vim, a plain text editor. I don't see a reason for JavaScript IDEs
at the moment,

I use Vim a lot for direct server-side editing, like Apache VirtualHost
files, BIND zone files aso, and prefer it there. However, AFAICS, with
regard to scripting, Eclipse's JSDT (from WST) scores over Vim in several
respects. To name just a few:

- Project-related resolution of identifiers
- Supports JSDoc (e.g., on hover over an identifier)
- Filesystem tree view with built-in inspection of identifiers in supported
files
- Outline view loosely or strictly connected with the editor view
- Easily customizable syntax highlighting and validation
- Integration of debugger with installed layout engines (ATF only, IIRC).
(- There's even a Vim plugin for Eclipse :))

As you might have guessed, JSDT is part of the IDE that I am using, among
other Eclipse editor plugins.

not until there is a set of standard libraries which
could be integrated with the IDE.

Apparently you don't know the ATF (AJAX Tools Framework) project. See above.
On the other hand, there is probably at least one JQuery plugin
for NetBeans, so if you use JQuery a lot, an IDE might make sense.

IMNSHO, if you use jQuery a lot, a bullet in one's head might make sense.
Firebug can handle most the one-off tests I need, and I've got a small
collection of useful HTML templates (HTML/XHTML, strict/quirks mode,
empty/full, Latin1/UTF-8).

Yes, Firebug is a great tool. BTW, has anyone considered to make a private
donation or tried to let his company consider a donation to it? I am asking
because I am considering it.


PointedEars
 
D

Dr J R Stockton

If you study and test the code snippets in this newsgroup, which kind of
environment do you use? Full javascript ide like Netbeans ide or Eclipse and
you provide the necessary html and other necessary/useful code every time
from scratch?

Or have you a simpler 'sandbox', e.g. a textarea, where you can
paste/modify/execute code
with few clicks? Possibly with some helper code like object inspector?


For all sorts of things, incliding that and evaluating arithmetic
expressions and testing HTML, I use a LOCAL COPY of <http://
www.merlyn.demon.co.uk/js-quick.htm> - a LOCAL COPY (to be strict, the
local original).





MY NEWS SERVICE SEEMS SICK. Many posts are not being transmitted,
few are being received. Therefore this use of Google.

Apologies if you DON'T see any articles marked REPOST or if you've
already seen their content.

FOR CONTEMPLATION : would abozhilov's basic algorithm be better for
the FAQ than the present one? Tests in <http://www.merlyn.demon.co.uk/
js-rndg2.htm>, near end.
 
J

Jorge

If you study and test the code snippets in this newsgroup, which kind of
environment do you use? Full javascript ide like Netbeans ide or Eclipse and
you provide the necessary html and other necessary/useful code every time
from scratch?

The best debugger is no longer FireBug, imho, now it's -by a long
shot- Safari's WebInspector:

See the video "Session 418 - Debugging Websites Using Safari's
Integrated Developer Tools" here:

https://deimos.apple.com/WebObjects/Core.woa/BrowsePrivately/adc.apple.com.2132338856
(or click in "Safari Web Development Videos" @ http://developer.apple.com/safari/)
 
L

Lasse Reichstein Nielsen

optimistx said:
If you study and test the code snippets in this newsgroup, which kind
of environment do you use? Full javascript ide like Netbeans ide or
Eclipse and you provide the necessary html and other necessary/useful
code every time from scratch?

Or have you a simpler 'sandbox', e.g. a textarea, where you can
paste/modify/execute code
with few clicks? Possibly with some helper code like object inspector?

The latter: http://www.infimum.dk/HTML/javascript/jstest6.html
It's not perfect (doesn't look right in IE, uses a direct call to eval
to evaluate the input), but it usually gets the job done.

/L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,144
Latest member
KetoBaseReviews
Top