Subj : Re: I have an Idea
To   : Fireball
From : Nightfox
Date : Tue Feb 12 2013 07:58 am

 Re: Re: I have an Idea
 By: Fireball to echicken on Mon Feb 11 2013 17:22:03

Fi> I guess what I meant to say is it seems less readable and more complicated
Fi> to me. For those that are familiar with with C++ or Java, it wouldn't be
Fi> hard to pick up. I was able to start writing in python almost right away,
Fi> with a little reading and tutorial. I have yet to see a good tutorial on

I think if you already know one (or more) programming language, it's not all
that hard to learn another.  The concepts are mostly the same between
languages; it's just the syntax and available keywords & objects that tend to
be different.

Fi> JS, and I haven't found a good guide to command line JS operation either.

JS typically isn't used on the command-line, although for Synchronet, there is
the jsexec program, which allows you to write JS scripts for Synchronet that
you can run on the command line.

While writing JS scripts for Synchronet, I've often done string manipulation
and have found the documentation on the JS string object at w3schools.com
useful:
http://www.w3schools.com/jsref/jsref_obj_string.asp
They have a page for JS examples as well:
http://www.w3schools.com/js/js_examples.asp

Fi> One could conceivably make a python methods available to a program by
Fi> including the Python.h. Alternatively, using python ctypes and
Fi> creating/importing the synchronet definitions as a library could provide a
Fi> lot of useful information for making sbbs python scripts (doors and
Fi> utilities).

I've actually thought that being able to write Python scripts for Synchronet
would be nice.

Nightfox

---
� Synchronet � Digital Distortion BBS - digitaldistortionbbs.com