45 votes
Accepted

What makes a scripting language "embeddable"?

Embedding a language (I'll avoid characterizing it as "scripting") means that the following has been done: The interpreter and runtime are running in the same process as the host application Enough ...
Berin Loritsch's user avatar
23 votes
Accepted

What is the right way to manage developer scripts?

Developer scripts go also into version control, because usually these scripts also depend on the items in version control, e.g. file paths. If these scripts are versioned they also should work for ...
Simon's user avatar
  • 1,774
10 votes

What is the right way to manage developer scripts?

In addition to @simon's answer. Not all in the software engineering is about programming, designing or modelling. There's a myriad of tasks we perform continuously during the working day. You already ...
Laiv's user avatar
  • 14.6k
10 votes

What makes a scripting language "embeddable"?

The main factor is typically the API that's used by host applications to access the language libraries. Languages like Lua are designed to be easily 'connected to' from host applications. The ...
GrandmasterB's user avatar
  • 39.2k
10 votes

What makes a scripting language "embeddable"?

In theory any language can be embedded. If there are no constraints on the solution, it is actually the case. It's natural consequence of Turing completeness i.e. you can always build an emulator. ...
JimmyJames's user avatar
  • 26.7k
8 votes

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

If you've ever used RESTful APIs, you've come across at least one where you have to make multiple API calls to get all the data you want. It just kinda comes with the territory. The benefits of a ...
Becuzz's user avatar
  • 4,835
7 votes
Accepted

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

I see a few possible options here. There are probably other ways about this, too. See Microsoft Visual Studio 2017 Installer Projects and the MSDN docs on it. This will let you set up an installer ...
neilsimp1's user avatar
  • 1,078
7 votes

Why only scripting languages for automating tasks?

Scripting is automation. Scripting languages were specifically developed for automation tasks. They often have features that make scripting easy, e.g. simple mechanisms for invoking other programs or ...
amon's user avatar
  • 134k
7 votes

How to bind C/C++ functions for my language

Approaches vary, because it depends how your language works, but the general technique: load the native code as a library using e.g. "dlopen()" identify the function name (see "C++ ...
pjc50's user avatar
  • 13.2k
6 votes

Windows batch files (.bat) coding style standard

When I am writing batch files, they usually rely on the following template: @cls @title Optional Title @echo off setlocal EnableExtensions DisableDelayedExpansion ::Comment that describes purpose and ...
aschipfl's user avatar
  • 173
6 votes

What makes a scripting language "embeddable"?

There are a couple factors: whether the language has support for embedding API. Some scripting languages like Python and Lua has officially supported APIs specifically designed to embed those ...
Lie Ryan's user avatar
  • 12.4k
6 votes

Understanding C after getting used to scripting languages

One of the biggest strengths of C is also one of its biggest weaknesses: it has a very small runtime and standard library. This is a strength because it makes C very portable and highly reusable as a ...
Karl Bielefeldt's user avatar
5 votes

Is it unreasonable to implement a small domain specific scripting language?

I think it's reasonable to use a small DSL, I'm not so sure it's wise to build one considering you don't have much bandwidth. There are frameworks that exist that can do what you want. For example, ...
Bryan Oakley's user avatar
  • 25.3k
5 votes
Accepted

Windows batch files (.bat) coding style standard

Naming, the file the variables, the functions. Comments, what the script do, what that complicated portion of code do. Isolate portion of code in functions Consistency in the coding style, whatever ...
Walfrat's user avatar
  • 3,486
4 votes

What is the right way to manage developer scripts?

I'm going to offer a somewhat more negative opinion. On the one hand, developer scripts that are generic, effective, and useful should of course be shared with other developers, and the best way to do ...
Daniel's user avatar
  • 141
4 votes
Accepted

What is the proper structure for maintaining single page python scripts

If you haven't already, I would recommend reading PEP 8 for general guidelines on how to structure your Python code, and start following that for your future work. For guidelines on writing ...
jonny's user avatar
  • 174
4 votes

Is there such a thing as a 'pseudo-compiler' for proprietary software?

If the point of transforming code reversibly is not to produce another form of executable code (script code or machine code), then it really amounts to plain old encryption. In other words, yes, ...
Kilian Foth's user avatar
4 votes
Accepted

Why are script languages so popular?

You are looking in the wrong direction: But when comparing performances, they are not as efficient as VM languages or compiled languages. The criterium you are using to answer this question is ...
Thomas Junk's user avatar
  • 9,533
3 votes
Accepted

Unit testing C code?

Your certainly on the right track. For my projects I use: "check" to unit test all method (including as many code paths as I can - have time for). This runs super fast and gives me confidence that ...
Wayne Booth's user avatar
3 votes

Is there such a thing as a 'pseudo-compiler' for proprietary software?

Is there such a thing as a 'pseudo-compiler' for proprietary software? Yes. Beyond that, it's hard to give a definitive answer to this question as there are too many unknowns. A non-exhaustive list ...
David Arno's user avatar
  • 39.2k
3 votes

Creating a metaphorical compiled scripted language.

The question is nonsensical. Interpretation and compilation are properties of the implementation, not the language. In other words, they are properties of the interpreter or compiler (duh!). Every ...
Jörg W Mittag's user avatar
3 votes

What makes a scripting language "embeddable"?

Languages that are designed to be embeddable try to provide features to ease access for the host application. There are two layers to this, the actual language syntax and semantics and the runtime ...
schlenk's user avatar
  • 151
3 votes

How to Maintain Rarely Used Scripts

There is no single right way to do this. Bear in mind a few best practices for code in general: Use version control Put it some place you can access Organize stuff in the repository Document things ...
Greg Burghardt's user avatar
3 votes
Accepted

Do you recommend having a template scripts?

If you find yourself copy/pasting code, nine times out of ten you're missing an abstraction. That's not a guarantee, but it is generally correct. Especially as a beginner, you're going to miss ...
Flater's user avatar
  • 48.7k
3 votes
Accepted

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

Log the planned action before you do it, and log the result when the outcome is known. The outcome message should repeat enough information about the action that the reader can understand what has ...
James Youngman's user avatar
3 votes
Accepted

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

Yes, you can do that. No, it is not a good idea. This is roughly how some websites worked in the 90s. That these approaches are problematic has nothing to do with their age, and everything to do with ...
amon's user avatar
  • 134k
2 votes
Accepted

Creating a metaphorical compiled scripted language.

One point I thought of was to create a compiled version of a Read-eval-print to test mini functions faster than compiling a whole program for ease of testing. How would that speed anything up? ...
DepressedDaniel's user avatar
2 votes

Script language native extensions - avoiding name collisions and cluttering others' namespace

Well realistically, it's not necessary to contain a global array of exported functions just to make them visible to your runtime environment. A good question to ask is whether your runtime ...
Nergal's user avatar
  • 313
2 votes
Accepted

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

SOLID is about development and design principles for writing code that needs to be maintained. SOLID is mostly/entirely irrelevant when it comes to actual data used by a program. A one time script to ...
Ryathal's user avatar
  • 13.4k

Only top scored, non community-wiki answers of a minimum length are eligible