In computer programming, a script is a program or sequence of instructions that is interpreted or carried out by another program rather than by the computer processor (like a compiled program is).
-1
votes
0answers
37 views
Powershell ValidateScript Attribute
I am a new student currently taking a scripting course. I work mainly in c# but we are currently learning powershell, the course is geared towards networking and security focused students.
The ...
15
votes
6answers
6k views
Can JavaScript be used as a general scripting language?
I've used JavaScript and some frameworks (jQuery, Prototype, some node.js) for client-side web programming, but never on the desktop, where I do most of my scripting work in either Python or Bash.
...
2
votes
2answers
345 views
Windows batch files (.bat) coding style standard
Is there any standard/encouraged Windows batch file coding style?
I would think that if I want my batch files to be easy to read/mantain, I should care about this, but searching the web I found very ...
0
votes
3answers
129 views
Creating a metaphorical compiled scripted language.
I'm studying for a final exam and I came across this question which I found pretty interesting. I was wondering what the stackExchange community who are more experience in scripted languages than I ...
4
votes
1answer
74 views
Using Makefile as a script repository
Is it reasonable to use Makefile targets as scripts?
So for example, instead of having a script script_A, script_B, etc, and running them as standard executables with ./script_A, we have a makefile ...
0
votes
2answers
115 views
Is there such a thing as a 'pseudo-compiler' for proprietary software?
I'm interested in whether there is such a thing as a pseudo-compiler that can create a kind of binary or bytecode version of a plaintext script file, which can only be accessed by a proprietary piece ...
2
votes
1answer
168 views
Designing a program that runs scripts on multiple computers (Java)
I've been trying to design a program in Java (because I might need to create an app that does the controlling part) with GUI that can run scripts on a few local computers.
It should do the following:
...
7
votes
3answers
2k views
Help understanding server-side scripting
As far as I understand, there are basically 3 options for doing server-side scripting these days:
Using scripting languages that can be directly interpreted/executed by the web server (e.g., PHP and ...
1
vote
3answers
465 views
Requiring multithreading/concurrency for implementation of scripting language
Here's the deal: I'm looking at designing my own scripting/interpreted language for fun. I'm only in the planning stages right now; I want to make sure I have a very strong hold on exactly how I will ...
1
vote
1answer
220 views
Unit testing C code?
I learnt about the check testing framework today that seems good. This far I've scripted tests that uses valgrind so that the tests both display output from the tests and from valgrind. Is there a ...
2
votes
1answer
79 views
Structuring git repository as a 'catch-all'
I have a really old install of Debian on my Thinkpad, and I want to refresh it now that I'm using it again. However, I have a LOT of old scripts all over this install for beauty fixes, shortcuts, and ...
3
votes
1answer
102 views
Is it unreasonable to implement a small domain specific scripting language?
At my new job, they are currently spending scores of labor hours that we don't have to do manual QA testing after every build. Nothing is automated at all. (We can only afford three developers, and ...
2
votes
2answers
258 views
How to let users share custom code content under the mobile app store restrictions?
Situation
Mobile application store owners are known to explicitly forbid some application extensibility scenarios.
Apple:
2.7 Apps that download code in any way or form will be rejected
2.8 ...
1
vote
3answers
125 views
Linking stylesheets and scripts when using server side includes
I am working on a site where I want to have a header and footer on each page, so I thought about using server side includes for this. I have not used them before so I am a little bit unsure about best ...
9
votes
3answers
3k views
What does (Lua) game scripting mean?
I've read that Lua is often used for embedded scripting and in particular game for scripting. I find it hard to picture how it is used exactly.
Can you describe why and for which features and for ...
0
votes
1answer
739 views
Could I have a real-world example of using the Spring scripting module in your Java application?
The Spring framework supports the use of scripting languages (specifically JRuby, Groovy and BeanShell) whereby a script in any of these can call Java code and vice versa.
I have read that a possible ...
25
votes
5answers
12k views
Is programming in Python faster than in C, C++ or Java? [closed]
There's a widespread belief among programmers that the more dynamic and loosely typed the language, the more productive the programmer will be in it. Guido van Rossum wrote about programming ...
5
votes
2answers
696 views
How are scripting languages compiled?
I know the term "scripting languages" is just a subset of programming languages, but I want to refer to programming languages such as Python and Ruby among others.
First of all, why don't we need a ...
0
votes
2answers
52 views
I'm looking for a way to add database update scripts to a “playlist” [closed]
I've got a group of scripts to run and I'd like to batch them all together. Rather than write a .cmd/.bat file to run the lot it feels to me like there ought to be something similar to a playlist (e.g....
1
vote
2answers
110 views
How to comfortably monitor 5 daemons while developing them?
This is the scenario: I'm on this project for which I wrote 4 Node.js scripts that act as "servers" for some service (they have to be separated). I also use Redis, that is another service to keep an ...
5
votes
2answers
755 views
Scripting custom drawing in Delphi application with IF/THEN/ELSE statements?
I'm building a Delphi application which displays a blueprint of a building, including doors, windows, wiring, lighting, outlets, switches, etc. I have implemented a very lightweight script of my own ...
1
vote
1answer
41 views
Deploying and maintaining a script on customer's domains
I am trying to figure the best way (or just the pros and cons of various options) for delivering a service via a script which runs on the customer's site (think Google Analytics).
Unlike Google ...
31
votes
5answers
48k views
Programming Language vs Markup Language vs Scripting Language
Up until now I don't know the KEY differences between these three. When someone asks me about this, I only tell them that C# is a programming language, HTML and XML are Markup Languages, and ...
3
votes
4answers
438 views
Design: Lisp (or other scripting language) as an interactive interface for C++?
I'm working on a medium size C++ project (will probably end up around 50k lines) and I have to provide an interactive terminal interface. The program produces scientific data as an output and the ...
-2
votes
1answer
61 views
Move file into apropriate directory based upon first letter of second word, followed by the first two letters of the second word with Python [closed]
EDIT: Apparently the below question is too specific. Let me rephrase:
I'm looking for a way to fit a letter into a list of specified ranges such that, if given the letter S and the ranges A-F, G-M, N-...
2
votes
1answer
278 views
Should one use many small configuration files for script or a single large configuration file?
I have a script which starts from cron with regular interval and sources in around 10 variables. Should I keep those 10 variables in one configuration file in file system or is it a better practice to ...
10
votes
2answers
2k views
What are my choices for server side sandboxed scripting? [closed]
I'm building a public website where users share data and scripts to run over some data. The scripts are run serverside in some sort of sandbox without other interaction this cycle:
my Perl program ...
1
vote
1answer
141 views
What is a simple, correct and secure way of executing code stored in database?, that is also sandboxed
Webhooks can be a very powerful thing when you try to automate or integrate software, however, handling their deployment in a controlled environment can suck in terms of security and deployment alone.
...
5
votes
2answers
674 views
Is bash “finished”? [closed]
Should bash be expected to change in ways that break non-trivial amounts of existing scripts at some point in the (near/<5y) future? How much change has it gone trough in the last ten years ...
29
votes
6answers
5k views
Dynamic Code Evaluation in Java - Clever or Sloppy?
I am trying to create a flexible ACL framework in Java for my application.
Many ACL frameworks are built on a whitelist of rules, where a rule is in the form of owner:action:resource. For example,
"...
2
votes
0answers
619 views
How to Use Python as a “Macro” runner for a C# Application
I am working on an application that the user may wish to automate some features of (but we don't know what at the moment) I would like to provide them some kind of scripting interface so they can play ...
5
votes
3answers
890 views
How to make support for bindings for a scripting language
Main
I'm making a scripting language using C++. I plan to use it with a simple test game editor. But I have to make a support for bindings to call game engine's nodes' methods to update positions, ...
1
vote
2answers
829 views
Embedding extremely basic scripts in application
I need to program a C++ application which will basically work as a script interpreter, but with extremely basic and limited scripts.
The scripts will have a format like this:
processedA = doProcessA(...
2
votes
1answer
81 views
One Script file or Multiple Script Files [closed]
I have a moderately long(for me at least) bash script file that that maintains a list of LAN users and the bandwidth each one uses. It is 199 lines with 11 functions and is already calling 3 different ...
0
votes
1answer
70 views
Where should I put (wrapper) scripts in my source tree? [closed]
I have this software package which installs itself to /usr/local/mypackge, with a bunch of subdirs. In bin/ I have linked code, as ELF executables, in /share/doc I have documents, etc. Now suppose I'...
6
votes
6answers
2k views
PHP as a scripting language [closed]
I have reasonable knowledge of PHP, Perl, and Bash. I use Perl for most text processing on my system (find, replace, filter output, etc). I use PHP for web development, allowing a user to view and ...
2
votes
2answers
443 views
How to present a stable data model in a public API that allows internal data structures to be changed without breaking the public view of the data?
I am in the process of developing an application that allows users to write C# scripts. These scripts allow users to call selected methods and to access and manipulate data in a document. This works ...
1
vote
1answer
624 views
Heredoc or an external template file in my bash script - how it affects readibility/maintanance?
I realise that this question may be down to personal preference but I'm pretty new to Bash / shell scripting so thought it'd be worth some research to see if there's some sort of standard/best ...
4
votes
3answers
5k views
How to use multiple programming languages together in the same program? [closed]
Such a simple question, but I have not found a reasonable answer to this.
I currently program in Python, an interpreted language. I always hear of people using multiple languages in the same program? ...
1
vote
2answers
273 views
How to design a scriptable communication emulator?
Requirement:
We need a tool that simulates a hardware device that communicates via RS232 or TCP/IP to allow us to test our main application which will communicate with the device.
Current flow:
User ...
5
votes
4answers
1k views
What makes Python more used as an implementation language than the others?
Perl and Python are often compared to each other (let's not forget Ruby), and almost always those discussions will come to the conclusion pretty much anything you can do in one or the other.
Without ...
3
votes
1answer
541 views
LuaJit FFI and hiding C implementation details
I would like to extend an application using LuaJit FFI. Having seen http://luajit.org/ext_ffi_tutorial.html this is surprisingly easy when comparing this to the Lua C API. So far so good. However I do ...
2
votes
2answers
235 views
Recreating files from shell script or java?
I have java application which takes a file, which is created by a process running on terminal. I start the process using a small shell script. Then run the Java application and it reads the file ...
2
votes
2answers
226 views
What properties does an object oriented language have? [closed]
I'm currently working on a game and wanted to add some scripting support. Due to trying to keep the entire codebase in managed c# (Excluding Monogame), I am using a custom language for the scripting (...
-2
votes
2answers
297 views
Does a custom scripting language require it's own compiler/assembler? [closed]
Or is the script generally converted to a known language such as C++ first?
And how generally to you integrate a scripting language with the say a game engine?
3
votes
4answers
997 views
Scriptable user-interfaces/frameworks for automated UI testing
I'm planning on using scripting for automated UI testing. Main application is written in c#, and I want it to be scriptable, so I can do everything end-user can do, but programmatically.
I'll avoid ...
3
votes
3answers
379 views
When is a script no longer a script? [closed]
I write many a PowerShell script for the organization I currently work for. Most recently I have been co-writing a tool that, in the end, will have a lot of functionality (beyond a single purpose), ...
5
votes
4answers
603 views
How to take things step by step
This is about the third time I've had to write software to control a cellular modem. For those unfamiliar with the process, you have a sequence of steps you have to take. Each step takes a certain ...
1
vote
2answers
204 views
Using Python/Ruby/Lua for Java startup scripts
I have a number of distinct Java utilities that are shipped together. Currently there are two startup scripts for each utility: a .sh one for Linux and a .bat for Windows.
I'm thinking of rewriting ...
0
votes
3answers
282 views
Long vs short scripts? Big vs small scripts? [closed]
As a programmer, I have always wondered whether it is preferable to write (a) short modular functions that are each stored in their own script (i.e., file) or (b) long comprehensive scripts that ...