Questions tagged [scripting]

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).

Filter by
Sorted by
Tagged with
4 votes
1 answer
363 views

How to bind C/C++ functions for my language [closed]

I'm making an interpreter (currently in python but later I'll remake it in C++) and I wondered how I could use a C/C++ function in my language so when somebody wants to write an extension for my ...
Oliver JT's user avatar
1 vote
2 answers
79 views

Are mature dependencies less risky than state of the art ones?

There are tools like dependabot or greenkeeper for npm and others for other languages. Now at first glance they improve security by keeping open source dependencies up-to-date. But I am wondering, do ...
Phil's user avatar
  • 119
0 votes
1 answer
118 views

Using sed/awk to bulk generate static HTML pages off of a template

Hypothetically, consider a social photo platform - each pic gets its own url, this page contains the image, text about the image, buttons for the user to click, related pics, and some user-specific ...
ahron's user avatar
  • 165
-3 votes
2 answers
74 views

Moderator/Administrator Script for website (HTML) [closed]

G´Day, So I am making this website out of basic HTML. I wanted to add a Moderator/Administrator script for it and was wondering if there was any way I could Create a script myself easily. (Keep in ...
Joseph Casey's user avatar
2 votes
1 answer
516 views

What are the best practices to design a "verbose" mode in command line scripts?

To improve my command lines scripts, I want to add some optional console output, mainly for logging purposes. In my PowerShell modules, I use Write-Verbose for this (but it should be clear this isn't ...
Alex_P's user avatar
  • 151
-4 votes
1 answer
160 views

Understanding C after getting used to scripting languages

I use python and javascript in my daily workflow. I am really excited about understanding c as I am drawn towards contributing to projects that are written in the language but even after weeks of ...
nsrCodes's user avatar
  • 113
1 vote
2 answers
89 views

Automate clearing everything (database tables, log files, etc.) and starting from a fresh state during development?

The Issue When I'm fixing a bug during web development projects, I often find myself cleaning out the existing (tainted) database records, clearing out log files, etc. I do this so that I can start ...
Soobeen Park's user avatar
-3 votes
1 answer
50 views

Do you recommend having a template scripts?

I am pretty much new to programming, but recently I began to learn C# intensively for Visual C# and for Unity. I have noticed that I use many scripts that have absolutely the same content in different ...
Simon Spasskiy's user avatar
0 votes
2 answers
183 views

How to Maintain Rarely Used Scripts

I come across the need to do a lot of one time scripts (related to API evaluations, data extraction, experiments etc.) that have the potential only to be used very rarely in the future. These could be ...
c00der's user avatar
  • 125
1 vote
2 answers
354 views

C# - Generic Configurable Condition checker at Runtime - Achievement System

I'm writing a "generic" achievement system for my MMORPG project, it needs to be friendly & efficient for my game designers (without having to write code to add new achievements). If anyone got ...
Blowa's user avatar
  • 19
47 votes
5 answers
10k views

What makes a scripting language "embeddable"?

According to my experience, Wikipedia and prior answers, a scripting language is vague category of languages which are high-level (no manual memory management) and interpreted. Popular examples are ...
Seanny123's user avatar
  • 633
1 vote
1 answer
53 views

Designing multi-user system to allow running updates

I am at the beginning of designing a system to be deployed across a job site, your boring, dime-a-dozen, database server backend multi-client system. One feature that I am very keen to implement in ...
Whistler's user avatar
  • 111
2 votes
1 answer
261 views

Versioning an Application VS Versioning an Executable/Library

I'm trying to pass a point to my team whereas there are two different kind of "programs" we can serve : applications and executables/librairies. An application in this sense is dependent on other ...
Pobe's user avatar
  • 153
-3 votes
3 answers
784 views

Why are script languages so popular? [closed]

I am currently writing a memoire on the evolution of developing tools. Among them is of course the programming languages. I made some researches, and a lot of the most popular languages are scripts ...
CodingMouse's user avatar
1 vote
3 answers
3k views

Why only scripting languages for automating tasks? [closed]

To automate tasks, I have only heard of people using scripting languages. Why don't people use compiled languages to automate tasks? What can scripting languages do for automating tasks that ...
Niko Gambt's user avatar
-1 votes
1 answer
103 views

Can i be two places at once in python cycle

I'm doing this in python, in case that changes anything. I'm trying to make a lamp/bit go 1-0-1-0 until the user says "okay" the "okay" should indicate that the user has found the lamp/Bit IRL. Now ...
Mads Bødker Christensen's user avatar
4 votes
5 answers
624 views

Should we tailor APIs to the customer, or ask the customer to use the existing one?

I am a sole developer and I recently wrote a new web application in the form of a API with Swagger and front-end. This was customers could use the API on their own, usually forscripting. It is ...
Victorio Berra's user avatar
15 votes
3 answers
2k views

What is the right way to manage developer scripts?

Developers create scripts to help in their work. For example, to run Maven with certain parameters, to kill unneeded background tasks that crop up in development, or to connect to a certain server. ...
Joshua Fox's user avatar
  • 1,090
2 votes
2 answers
592 views

What is the proper structure for maintaining single page python scripts

I am a self-taught programmer, and started my job as a PHP developer,in a small company. I then got some work to write python script. I didn't have any senior with proper Python experience. So I ...
kadamb's user avatar
  • 163
1 vote
1 answer
812 views

First time writing a scripting engine

So I decided to created a stack-based virtual machine and the result came out pretty good (in my opinion!). The first iteration was a basic toy VM. I did a rewrite to make the VM work more ...
Nergal's user avatar
  • 313
-4 votes
1 answer
97 views

Can one time executable scripts be a part of SOLID design? [closed]

Imagine a table T, with 2 columns containing data. Everyday, one row is added the table. Now you add 3rd column to the table (After adding this column too, one row will be added the table everyday)....
Karthikeyan Palanisamy's user avatar
5 votes
1 answer
847 views

How do you publish a C# program to multiple computers that includes a path to a VBScript?

I am trying to publish a C# application that does two main things. First, it runs a VBScript that goes into the SAP (Software solutions business) service and retrieves information in an excel type ...
Alex Bochel's user avatar
0 votes
1 answer
2k views

What is the best approach to store and execute script from .NET application

I am making an application that will allow user to store and execute simple scripts using Web GUI. Web GUI is ASP.NET MVC and scripts can be of any kind (Python, Perl, AWK, CMD, PowerShell ect. User ...
Roman Artemov's user avatar
0 votes
3 answers
199 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 ...
reemq8's user avatar
  • 13
0 votes
2 answers
414 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 ...
thisisanon's user avatar
4 votes
1 answer
346 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 ...
gardenhead's user avatar
  • 4,729
5 votes
2 answers
8k 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 ...
carlossierra's user avatar
  • 1,405
2 votes
1 answer
956 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: ...
Dangz1's user avatar
  • 21
1 vote
1 answer
482 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 ...
Niklas Rosencrantz's user avatar
3 votes
1 answer
121 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 ...
Dupontrocks11's user avatar
3 votes
1 answer
124 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 ...
TBridges42's user avatar
8 votes
1 answer
5k 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 ...
chris's user avatar
  • 251
-1 votes
2 answers
68 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....
timB33's user avatar
  • 191
1 vote
1 answer
48 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 ...
takinola's user avatar
  • 235
3 votes
4 answers
989 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 ...
Goobley's user avatar
  • 191
-2 votes
1 answer
75 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-...
chad's user avatar
  • 103
6 votes
1 answer
2k 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 ...
Martin's user avatar
  • 171
32 votes
6 answers
6k 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, "...
Twittopher's user avatar
1 vote
1 answer
338 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. ...
dukeofgaming's user avatar
4 votes
0 answers
1k 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 ...
chrispepper1989's user avatar
1 vote
2 answers
2k 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(...
m fran's user avatar
  • 131
2 votes
1 answer
553 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 ...
Randell's user avatar
  • 23
0 votes
1 answer
105 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'...
einpoklum's user avatar
  • 2,488
1 vote
3 answers
154 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 ...
Travis's user avatar
  • 111
2 votes
2 answers
346 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 ...
Den's user avatar
  • 4,827
9 votes
3 answers
27k 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? ...
user3712563's user avatar
2 votes
2 answers
287 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 ...
saccu's user avatar
  • 23
2 votes
2 answers
454 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 (...
Colorfully Monochrome's user avatar
-2 votes
2 answers
493 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?
graham's user avatar
  • 173
2 votes
2 answers
580 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 ...
Max Palmer's user avatar