Artificial languages for instructing computers to do steps of computation in order to complete tasks. They allow programmers to communicate with computers.

learn more… | top users | synonyms

26
votes
15answers
9k views

Is it possible to combine programming languages?

I've been programming for a while, I've written some rudimentary programs, and I want to keep learning. I've reached that point where you just don't know what to learn next, and I'd like to ask a ...
5
votes
3answers
3k views

Questions over Excel programming

I have always heard about the powerful programming capabilities of Microsoft Excel (not VBA, I am referring to the formulas of Excel itself), but have never seen it. Does it really have all that ...
-3
votes
0answers
147 views

I'm not understanding what programming even is, can someone help me? [on hold]

I'm an intermediate in computers (mostly on security and hardware). I'm trying to teach myself computer programming, but I don't know how programming even works. I don't know where to begin. I know I ...
0
votes
3answers
509 views

What are the benefits of “exotic” languages and scripts? [on hold]

I read this question where the asker wanted an alternative to Disqus written in some "exotic language (ie no Python, no php, no Node.js)". Why would somebody explicitly want this? What are the ...
-4
votes
0answers
35 views

About Ruby on Rails [on hold]

I have been working with PHP and Python for a year and now I found Ruby. I suppose PHP didn't help me in my programming language knowledge, but truly did in my skills. In fact, like everyone said, it ...
2
votes
2answers
101 views

Why must essential mutable derived data have an inverse function?

I was reading the paper Out of the Tar Pit authored by Ben Moseley and Peter Marks when I came across the following section on page 25 regarding essential mutable derived data: Essential Derived ...
2
votes
1answer
177 views

How to process large files in NetLogo?

I am running into problems in NetLogo with large *.csv / *.txt files. The documents can consist of about 1 million data sets and I need to read them (to eventually create a diagram based on the ...
0
votes
0answers
58 views

Designing a scripting/programming language - translation - Javascript to C# [closed]

So I'm making a small scripting language. I am following a tutorial online, it explains them. Now it has gotten to a part about closures, but I do not know how to do this in C# nor how I would set ...
-5
votes
0answers
71 views

Names of Programming Languages Across Cultures [closed]

I was trying to explain to my French host mother the other day that I am writing an application in C# as a personal project this summer. Without really thinking about it, I immediately translated it ...
-4
votes
2answers
187 views

Why do programmers say “from scratch”? [closed]

Why do they say that? When someone says "I am programming this from scratch" the person programs something from nothing to begin with. But I've never heard someone else say "I am painting this wall ...
78
votes
15answers
7k views

Why did memory-managed languages like Java, Javascript, and C# retain the `new` keyword?

The new keyword in languages like Java, Javascript, and C# creates a new instance of a class. This syntax seems to have been inherited from C++, where new is used specifically to allocate a new ...
-4
votes
0answers
34 views

Difference between passing arguments by copy/value, reference and assignment [closed]

What's the difference between those 3 types of arguments passing: 1) by copy/value 2) by reference 3) by assignment Exactly I don't understand the difference between the last two. Reference creates a ...
0
votes
0answers
40 views

Using JavaScript to find the correct offset in bundled files

I am currently making multiple parsers using PEGjs and have implemented my own partial preprocessor which using a RegExp finds and replaces '#include' directives with the desired files, resulting in a ...
-1
votes
0answers
44 views

Real world example of why OOP is helpful in coding for some projects than procedural language? [duplicate]

I'am a newbie in coding.just learned java,understood OOPS well but how is OOP is better than procedural language for solving problems and coding? Please put a real world example code of same code ...
19
votes
6answers
3k views

What made BASIC profitable? [closed]

In the 1970s, a man called Bill Gates developed an interpreter for BASIC: the Altair BASIC. Per my understanding, he was able to persuade the guy in charge of a microcomputer company to include the ...
1
vote
2answers
169 views

What's the reason of choosing PascalCasing over camelCasing or vice versa from a programming language design POV?

I like both but I notice languages that use camelCasing for members sometimes need more adjustments when you want to edit your code. For example (in Python): node.customData() vs ...
119
votes
26answers
10k views

Is constantly looking for code examples a sign of a bad developer?

I am a CS student with several years of experience in C and C++, and for the last few years I've been constantly working with Java/Objective C doing app development and now I have switched to web ...
17
votes
4answers
1k views

Learning Each Type of Programming Language

I have heard several times that every programmer should learn one of each type of language. Now, this is not necessarily true, but I believe it is a good idea. I've learned a Procedural Language ...
6
votes
1answer
5k views

What kind of software is done best with The Go Programming language? [closed]

Go was introduced as a system programming language, but I've noticed many start-ups use it as a web development language. My confusion is: What kind of software is meant to be written in Go? What ...
10
votes
6answers
2k views

Web Developer and Math [duplicate]

I have just learned HTML/CSS and I practice everything I read to make it more understandable to me and I really enjoy it. My goal is to be a Modern Web Developer both front and back-end, so I won't ...
0
votes
0answers
56 views

Finding plateau in Java Array [migrated]

I having a really hard time finding a plateau within an array. What I'm looking for is length and location of the longest sequence of equal values where the numbers on both sides are smaller. Now I ...
1
vote
4answers
462 views

Why do higher level languages have neither xor nor nand short-circuit operators?

While many higher level languages have bitwise (exclusive or) and bitwise (exclusive and), for instance C, C++, Java, etc. I'm curious why the ( vastly more useful ) logical short-circuit operators ...
1
vote
0answers
71 views

Converting number based data to text based story [closed]

I'm looking for a model/strategy to use for converting data in the form of numbers into a text based story. The ultimate goal would be if the resulting story feels human written and that it is pseudo ...
1
vote
2answers
2k views

How to execute a Ruby file in Java, capable of calling functions from the Java program and receiving primitive-type results?

I do not fully understand what am I asking (lol!), well, in the sense of if it is even possible, that is. If it isn't, sorry. Suppose I have a Java program. It has a Main and a JavaCalculator class. ...
1
vote
0answers
36 views

Is a language that provides more abstractions to use it's own API, considered higher-level than a language that doesn't? [duplicate]

Consider two programming languages: Both run on a VM, have the same amount of abstraction levels between the programmer and the OS and CPU, etc. The only difference is inside the languages themselves ...
2
votes
3answers
133 views

Left and Right most Derivation

So i understand the semantics of derivations as far as Backus Naur Form goes. One thing I cannot find in any text book or the various lecturers' notes that are on-line is this. When would a right ...
9
votes
3answers
1k views

Are there any statically-typed Web scripting languages?

There seems to be two major ways to set up a web server backend. You can use a LAMP stack, with the server-side code in something like PHP or Python (or Ruby or JavaScript, which don't start with a ...
12
votes
5answers
2k views

Which languages are used today for low-level programming? [closed]

When I hear low-level programming, such as for drivers, embedded systems, operating systems, etc., I immediately think about C and perhaps C++. But mainly C. But what other languages are also used ...
13
votes
3answers
527 views

How compilers know about other classes and their properties?

I'm writing my first programming language that is object orientated and so far so good with create a single 'class'. But, let's say I want to have to classes, say ClassA and ClassB. Provided these ...
8
votes
4answers
2k views

A good interpreted language for a small embedded project [closed]

I have an mbed microcontroller which has a small ARM Cortex M3 on it. Basically, my effective resources for the project are ~25 KB of RAM and ~400 KB of Flash. For I/O I'll have a PS/2 ...
0
votes
1answer
84 views

Derivations in BNF

I get how to do a derivation of a BNF. My text books do a good job of explaining it (much better than the on-line lecture notes of many profs etc). Example below then my questions: <program> ...
-4
votes
3answers
155 views

Is a programmer professionality bound to the language? [closed]

I hear people saying that "a true programmer is not bound to a programming language, because programming goes beyond that", and albeit agreeing on the premise, i consider my professionality pretty ...
6
votes
5answers
1k views

What negative consequences can arise from this language design rule?

Clarification: the rule is meant to prevent accessing variables that are not declared yet. Clarification 2: the rule mandates that the compiler follows calls to functions which are defined in the ...
1
vote
3answers
378 views

Why were default and static methods added to interfaces in Java 8 when we already had abstract classes?

In Java 8, interfaces can contain implemented methods, static methods, and the so-called "default" methods (which the implementing classes do not need to override). In my (probably naive) view, there ...
16
votes
4answers
2k views

Why does Java not do type inference?

I have always wondered why Java does not do type inference given that the language is what it is, and its VM is very mature. Google's Go is an example of a language with excellent type inference and ...
2
votes
1answer
335 views

static languages or dynamic languages? [closed]

What is the exact border between the static and dynamic languages? I mean I am told the following parameters are the deciding factors: Compilation or interpretation Typing Runtime generation Dynamic ...
49
votes
9answers
3k views

Is there any “real” reason multiple inheritance is hated? [closed]

I've always liked the idea of having multiple inheritance supported in a language. Most often though it's intentionally forgone, and the supposed "replacement" is interfaces. Interfaces simply do ...
3
votes
5answers
665 views

What is the definition of pointer? [duplicate]

Conceptually a "pointer" is just something that "points" to something else;Is this definition is sufficient to tell exactly what a pointer is in programing languages? Does it need to have any other ...
25
votes
7answers
2k views

Disadvantages of scoped-based memory management

I really like scope-based memory management (SBMM), or RAII, as it is more commonly (confusingly?) referred to by the C++ community. As far as I know, except for C++ (and C), there's no other ...
5
votes
11answers
2k views

KISS principle applied to programming language design?

KISS ("keep it simple, stupid" or "keep it simple stupid", see e.g. here) is an important principle in software development, even though it apparently originated in engineering. Citing from the ...
15
votes
5answers
1k views

What is meant by “native support for a feature” in a programming language?

I went through a line somewhat like this "PHP has no native support for Unicode". Also i read that Python has native support for Unicode. Now you can call a function utf8_encode() in PHP to encode a ...
25
votes
13answers
17k views

Why is C++ still preferred to build heavy GUI apps over the latest dynamic languages? [closed]

I see that most of the apps that include heavy GUI content are usually developed in C++. Most of the games/browsers are coded in C++. Can't we just develop better GUI apps with the latest dynamic ...
-2
votes
3answers
197 views

Are there programming languages that their programs don't run on a VM or natively, but rather on an interpreter? [closed]

In this question I presented an idea I have for a simple programming language. The way programs written in this language will be run, is inside an interpreter written in Java, which will interpret the ...
3
votes
5answers
236 views

Virtual machine for a high level programming language vs an operating system

It struck me recently that a virtual machine for a high level programming language is very much like an OS. It manages resources, e.g. stack, heap, etc. similar to how an operating system manages ...
1
vote
4answers
556 views

Why are scientific programming languages so weird? [closed]

It seems to me that programming languages meant for use in science and engineering are consistently weird compared to general-purpose languages. Some examples off the top of my head: In Matlab, each ...
4
votes
3answers
2k views

Getting started with system programming? [closed]

Ever since I discovered programming five years ago, I've done a lot of things. I've learned numerous programming languages and technologies and tried out many interesting things. I've written games, ...
0
votes
2answers
186 views

Regarding interpreters

I understand that an interpreter could do one of the following things (and probably more): Execute programming-language source code directly. First translate the source code to some intermediate ...
7
votes
3answers
683 views

Do any object-oriented programming languages support “collective constructors”?

I was recently considering that sometimes several objects depend on each other (e.g. if they contain cyclic references) and therefore it would be useful to create them as part of one atomic operation ...
1
vote
2answers
629 views

Are there mainstream general-purpose non-Turing complete languages available today?

Non-Turing complete languages offer a great advantage over Turing-complete languages as they are much more analyzable and, thus, offer much broader optimization possibilities. Yet they are barely used ...
54
votes
11answers
8k views

A modern review of Java [closed]

I've been programming for a few years and I began in Java, and in my time I've found many different sources claiming Java to be an inferior language in some way or another. I'm well aware that each ...