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).
2
votes
1answer
68 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
92 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 ...
5
votes
2answers
430 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
49 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 ...
1
vote
1answer
39 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 ...
0
votes
0answers
24 views
boiler-plate/pattern for a db patch script
I'm looking for a pattern to follow for a database patch script. We've had problems with customers not running patches, or running them in the wrong order, patches failing etc. and we'd like to get on ...
3
votes
4answers
313 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
49 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, ...
2
votes
1answer
167 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 ...
27
votes
6answers
4k 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,
...
1
vote
1answer
108 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.
...
2
votes
0answers
422 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 ...
0
votes
2answers
432 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 = ...
2
votes
1answer
67 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
59 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 ...
1
vote
3answers
120 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 ...
2
votes
2answers
225 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 ...
4
votes
3answers
3k 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? ...
2
votes
2answers
216 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
213 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
228 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?
2
votes
2answers
410 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 ...
26
votes
5answers
31k 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
3answers
365 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
508 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
264 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:
...
1
vote
2answers
184 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
186 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 ...
-1
votes
1answer
357 views
Alternatives to Perl/python scripts for find & replace
I'm working in a fairly old yet sufficiently unproductive code base that I need to create a(some) script(s) to help me out.
For example:
we add a version # and timestamp at the header of the ...
-1
votes
3answers
492 views
Writing simple executable script on Windows [closed]
I'm a Mac user, but I need to write a script on Windows, and I'm not sure how I should go about that.
Here's the scenario:
Someone adds photos to a USB drive. The drive is then inserted into a ...
3
votes
2answers
2k views
Are all scripting languages dynamically typed? [closed]
Are all scripting languages dynamically typed?
I am using TCL. It is a scripting language and it does not enforce or allow type delaration of variables. It is instead a dynamically-typed language ...
4
votes
3answers
170 views
Can I release a script that depends on both proprietary and GPL'd libraries to be run?
I'm writing my thesis project in GNU Octave. My project basically consists of a bunch of ".m" files that are written in Octave. I'm also using a proprietary (and unreleased) shared library developed ...
-2
votes
1answer
213 views
Python scripts link to GUI using an IDE [closed]
I am studying python. Now I can write python scripts(codes) to some extent.
I am interested in making GUI to those written programs.I like to do it using an IDE rather than using PyGTK or Tkinter.
Can ...
5
votes
4answers
226 views
Is it practical to write exit codes in a script where the outcome is more complex than success/fail?
Where I work, we're in the process of automating a lot of tasks that currently need to be run manually by an IT person to determine if the next task can be performed (the second task depends on ...
3
votes
3answers
4k views
why javascript is widely used scripting language in web applications? [duplicate]
I cant find plugins written in other languages other than javascript. There is browser support only for Javascript. Why didn't they use other scripting languages other than Javascript when people ...
4
votes
0answers
121 views
Script language native extensions - avoiding name collisions and cluttering others' namespace
I have developed a small scripting language and I've just started writing the very first native library bindings. This is practically the first time I'm writing a native extension to a script ...
2
votes
3answers
204 views
Parsing Text Tokens in Script Files
My team is wanting to migrate away from compiled code to dynamic code. We have a wide variety of customers and each has different business rules. Instead of having a single compiled code base, we are ...
0
votes
5answers
5k views
scripting support in a C# application [closed]
what is the simplest and fastest way to support simple scripting in a .Net application?
I search a lot but only find many things with practical no documentation or outdated since years.
I only need to ...
4
votes
2answers
323 views
May non-GPL-compatible scripts be linked at runtime to a GPLv3 library, by that (GPL) library itself?
First of all, pardon the title, as it's not very clear. I have an application I am writing that is GPLv3, and is in Java, which means that classfiles are generated and linked to for general operation. ...
2
votes
1answer
836 views
When to use embedded script language?
I already read some post about the why use embedded script language but I want to ask when to use it.
I have implemented an Objective-C / Javascript binding framework which allow me to write ...
5
votes
5answers
994 views
Is it bad to place “include directive” within main function?
It is always said that the include directives should be placed at the beginning of a script. The main reason is to make the functions available throughout the script. Regardless of this fact, is it ...
3
votes
1answer
478 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 ...
8
votes
4answers
10k views
Is node.js a good fit for background processing?
I'm slowly learning node.js and have a small project I want to start. The project will have a lot of background processes (downloading data from external sites, parsing CSV files, etc.).
A big "win" ...
4
votes
1answer
3k views
Static code analysis for bash scripts
I program CLI utilities in bash to automate much of my work as a DBA.
I would like improve my code and make it more robus,t maybe with the help of some static code analysis tool like the one I used ...
3
votes
0answers
43 views
How to document legacy code (shell scripts)? [duplicate]
I got involved into a project where we are taking over a bunch of legacy code. Code is basically shell scripts and PL/SQL packages/procedures/functions. There is no documentation how the code works ...
0
votes
1answer
603 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 ...
1
vote
0answers
63 views
Checking out and compiling repository. What is the correct approach for starting the compilation process?
I am writing a Bash script that automatically updates a repository containing source code and then compiles it. I have been a bit stuck on the part about how to start the compilation itself, i.e. if I ...
5
votes
3answers
737 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
1answer
474 views
Should I use a formal grammar for my interpreted scripting language
I have a scripting engine I just published as an open source project. It's been sitting on my harddrive waiting for about a year. My engine of course isn't complete in any way, but it does work for ...
6
votes
2answers
1k views
Alternative Scripting Language to Lua? [closed]
I would like to add scripting support to an applications and with plenty scripting languages available I am a bit overwhelmed.
At first I thought about Python but I guess Python is a little too big ...