Spec me a language

Soldato
Joined
22 Aug 2005
Posts
8,930
Location
Clydebank
Wondering if anybody knows a language that I can look into the essentially does the following?

Allows to write an application (not a web app, but a 'real' app) but has a coding style similar to PHP...

I find my self requiring to do little 'converter' utils, and scriptable situations quite often, and I usually use Batch, or create a cumbersome web app to do the same. I'm talking things like renaming a bunch of files, processing some images, moving files based on db lookups, generating textual logs, csv/xml etc

But batch is quite convoluted and slow. Getting it do what seems like simple things can be a nightmare sometimes (I've programmed massive multifile scripts in batch before as well as small one offs)

Using a PHP script works fine, but not for any serious processing as it all runs on a web server and i want more power, I sometimes need things like combo boxes, or a folder selector box, or perhaps ability for someone to draw a 'zone' on an image etc etc this does't happen through a web browser.

Also needs to be portable so a compiled executable/set of install files is required.



Sooooo what should I be looking at? Windows / Linux doesn't matter. I saw ages ago some video demos of NEXT with GUI OO literally drag and drop style programming that looked good, but probably not useful these days :)

Any suggestions..?
 
Python with psycho or embedded interpreter? Pretty much all linux disto's have python installed anyway.

Perl?

All the technologies in next are now apart of mac os x. The drag and drop gui builder was probably interface builder or automator.
 
Last edited:
OK thanks. I know I said Linux/Windows, but prefer Windows solutions mainly, but interested in the Linux versions/alternates...

Looking into the suggestions. Can I make a compiled python prog for distribution to a windows client with out having to install python on machines?
 
There is a program that put's the program source, and python interpreter all into one package. I forgot what it's called though.
 
Python sounds like a good bet. C# is complete overkill if all he wants to do is write small utilities/scripts (and very different from PHP to boot).
 
An example thing I'd do...

Draw a form and have on the top a 'source folder' combo box or a folder select button (i.e. Browse... ) - the user would point this at a directory with say 5000 + images in

Below that would be some radio button maybe one that says 'Split in to batches of 10, 25, 50

another that says ' Copy first image into each batch yes/no'

Another check box that says 'rename files from 1 on each batch or no rename'

And a destination combo/Browse button

And a button for Go.

User clicks it and it copys the images and every 50 or so it makes a new folder and puts them in, and optionally prefaces each batch with the same image from the start of the 'big' batch.


That's a (very) simple example of the stuff that I mean. I don't want to have to develop a massive app to do that... That should be like a 15 minute thing, drag some form elements on, provide an action for each thing and boom! job done.


Limitaions of that in batch:
no gui
spaces and things like zero padded numbers mess batch up
batch requires paths set and a bunch of ancillary programs to be available on each system


of php web server
the server requires to have access to the files that the user is dealing with
no browse/combo box in html
Not as 'responsive' as an app
got to maintain a web server and a php install (and a db)
looks like crap unless you are a css master and time spent faffing with 'design' is time not spent ding other things.
 
Last edited:
Perl, definately.

No GUI mind (though there are probably perl modules that create a GUI, theres perl modules that do pretty much everything and anything).
 
Back
Top Bottom