Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [languages]

According to Wikipedia, Language is the human capacity for acquiring and using complex systems of communication, and a language is any specific example of such a system. The scientific study of language is called linguistics.

1
vote
1answer
119 views

Are the Stack and Heap hardware, OS, or language-specific concepts?

In languages such as C or Java we have the concepts of the Stack and the Heap. Are these abstractions the particular language runtime/compiler creates over the plain-old RAM? Or are these concepts ...
3
votes
2answers
204 views

Are there any languages that let you specify that a function can only be called from a single call site? [closed]

Out of curiosity, are there any languages that let you tag a function with an attribute that indicates that it may only be called from a single call-site, such that if any code tries to call the ...
1
vote
1answer
83 views

Is it possible to create a regular language from an non regular language?

I am wondering if it is possible to create a regular language from a irregular language if we add or remove finite number of words from it? say L is irregular, can we add or remove finite number of ...
1
vote
1answer
298 views

Android application to RTL (Arabic)

I have an Android application (E-commerce) in English, Now I want to change language to Arabic and RTL(Right to Left) I am new in that, where and how much efforts it take? What specific problems ...
0
votes
2answers
69 views

React and redux app-wide translation best practices

My team and I want to translate an entire React-redux app into another language (english to arabic) and have a switch that does the app-wide translation via a redux action. The content for the first ...
1
vote
0answers
50 views

Is this a misuse of locales (internal config name)?

I have a situation where a given object is named, but there are multiple formats that are reasonable for that name. internal: fully qualified human-readable: translatable name, meant to be used in ...
14
votes
4answers
2k views

How do you code something when you have no idea how it actually works? [closed]

I have recently learned C and want to start a project to solidify my knowledge. I've settled on making a very simple text editor, something like vim. The problem I face is that I genuinely have no ...
3
votes
2answers
1k views

What's a recommended way to design a db schema for multi-language website?

I'm building a website where I plan to support multiple languages. Not only via UI, but via the content too. I have several tables where I have text columns such as "title", "name", "description", ...
8
votes
3answers
3k views

How are variables stored in a language compiler or interpreter?

Say we set a variable in Python. five = 5 Boom. What I'm wondering is, how is this stored? Does the compiler or interpreter just put it in a variable like so? varname = ["five"] varval = [5] If ...
1
vote
1answer
2k views

Multiple language web application - how to implement?

What is the best way to provide a web application in multiple languages? The focus of my question is not what to think about, but indeed how to do it. The text in the web application: text in the ...
4
votes
2answers
263 views

Proper Etiquette for Porting a Github Project to a new Technology

I am working at translating a github repo, which I do not own, from Python to Java. The logic will remain the same, which is significant, as this is a Neural Network application, but I need to be ...
1
vote
0answers
79 views

Should I pull the language data files of a project from a GitHub repository?

I am currently in a dilemma. I am thinking about downloading a JSON file from a GitHub repo to replace local files. The local files are stored in a folder named lang, which is stored in the project ...
0
votes
1answer
61 views

Language code for translation placeholders and translation context?

I'm planning to add a feature to my application where you can switch to the "Translation" locale and then see the names of the translation placeholders in the application instead of the actual ...
1
vote
2answers
224 views

How come language designers don't upgrade their global functions?

For example, when working with arrays there are methods like indexOf() that works like this: if (array.indexOf("something")!=-1) { // do something or nothing } Why hasn't someone made a contains ...
-7
votes
1answer
98 views

“Image size” ambiguous meaning, avoid repetition

An image "size" can mean both the widthxheight or its weight. How could I edit this paragraph to not use the word 'size' twice? Allowed sizes: 300x250, 300x100 Max size: 300KB
-2
votes
2answers
979 views

Translation of a project from one language to another

If I wanted to turn a Java game into Lua, how could I do it? I'm thinking that you could have a program read the assembly language behind two programming languages, find the patterns, attach them to ...
4
votes
0answers
1k views

What language are Visual Studio solution (.sln) files written in?

I suppose that maybe what made me ask this question is, that every time I do a commit in Git the .sln files comes up whenever there were changes. So, as a person who reviews all my changes when I do ...
103
votes
6answers
22k views

Why is XML called a “language” exactly?

I've been wondering why XML has an L in its name. By itself, XML doesn't "do" anything. It's just a data storage format, not a language! Languages "do" things. The way you get XML to "do" stuff, to ...
2
votes
1answer
238 views

What language is this?

I took this screen shot while watching a BBC documentary. The scene showed a scientist keying into a computer. The language isn't something I've seen before. Does anybody know what it's?
1
vote
3answers
488 views

Which languages allow to mix its source code with C++ source code? [closed]

I have read that there are languages other than C++ that can also compile standard C++ source code too (Objective C++ can do this). Which other languages for Windows and Mac OS are there, that support ...
1
vote
1answer
55 views

Extract the main entity from a body of text for text categorisation?

I'm trying to categorise products based on various fields of data. I've had some success just matching search terms in the product names, but this naive approach doesn't work when it comes to larger ...
-1
votes
5answers
126 views

Can a business application be developed / enhanced with more than one language? [closed]

Please excuse my lack of knowledge in programming, but it is true that a business application, e.g. CRM, can be developed using one language (e.g., C++) and later enhanced using a different language (...
7
votes
2answers
445 views

What is the minimum practical definition for the Scheme language?

What is the smallest practical set of primitives that can be used to define the Scheme language? For example, map can be defined as (define (map proc lis) (cond ((null? lis) '()) ...
3
votes
2answers
573 views

Code maintenance: Is it better to develop in English or my mother tongue? [duplicate]

Suppose I develop an application for a given company of my own country. Is is better to code in English or with the language of my country ? I mean, if it is better to comment in French and name the ...
1
vote
1answer
483 views

Understanding of concatenation, union and iteration at regular language

I'm trying to understand what a regular language is. There are 3 compound regular expressions for regular language: concat {AB}, union {A+B} and iteration {A*}. When they are used in a simple ways it'...
0
votes
2answers
175 views

How do we add software to a machine? [duplicate]

When we build a new machine, how do we add software to that machine? I know we have assemblers and compilers that convert the high-level code into machine code for it to understand. But having ...
1
vote
1answer
92 views

Structuring Resource Files

In .NET we've got Resource files which are great for allowing providing translations across your application. In the past I've seen these resource files grow into monolithic unmaintainable lists of ...
8
votes
2answers
482 views

Why don't Python and Ruby make a distinction between declaring and assigning a value to variables?

Two of the most popular dynamically typed scripting languages, Python and Ruby, do not make a distinction in syntax between the declaration of a variable and assignation of a value to it. That is in ...
14
votes
8answers
2k views

Why does C have no competitors in low level stuff? [duplicate]

As far as I know, C is by far the most widely used language for low level stuff such as systems programming and embedded. Sometimes assembly is used, but that's when you really need to be close to the ...
5
votes
3answers
19k views

Is there still any value in learning assembly languages today? [closed]

Specifically for a game programmer. If you really needed some assembly routines you could look for help, whereas back in the 80s/90s it was one of the mainstream languages. I read that compilers can ...
-1
votes
1answer
164 views

How can we make a certain thing inbuilt in c language with our own header file?

I want to make the basic trigonometric functions in maths inbuilt functions using my own header file . so as the users can do trigonometry in c language compilers.
13
votes
2answers
5k views

Why does C# have much more features than Java? [closed]

Please note that this isn't meant to be a Java vs. C# argument. I'm a Java programmer with no C# experience, asking just out of curiosity. I did some reading on C#, and it seems it has much more ...
28
votes
3answers
3k views

Is there a real advantage to dynamic languages? [closed]

First I want to say Java is the only language I ever used, so please excuse my ignorance on this subject. Dynamically typed languages allow you to put any value in any variable. So for example you ...
0
votes
1answer
224 views

Program coded in .Net

What does it generally mean when a programmer says his program/application was "coded in .Net"? When I think of .Net I think of C# and Visual Basic. I don't usually think of any other language on ...
1
vote
1answer
4k views

Differences between Dynamic Dispatch and Dynamic Binding

I've been looking on Google for a clear diffrentiation with examples but couldn't find any. I'm trying to understand the differences between Dynamic Dispatch and Dynamic Binding in Object Oriented ...
4
votes
2answers
1k views

Regular Expressions and Language Generators

I have few CS textbooks with me which discuss languages, well actually 2 plus old course notes supplied a few years ago. I have been searching the web too any only seem to come up with vague responses ...
2
votes
4answers
977 views

What exactly is Virtual Machine Bytecode? [closed]

I want to work on a very simple compiler for a very simple language. The compiler will compile the code to some basic bytecode. Later, a virtual machine program will run the bytecode, and execute the ...
19
votes
6answers
3k views

Gradual Typing: “Almost every language with a static type system also has a dynamic type system”

This claim by Aleks Bromfield states: Almost every language with a static type system also has a dynamic type system. Aside from C, I can't think of an exception Is this a valid claim? I ...
0
votes
1answer
314 views

Translating variables into english [closed]

I have recently came across some code where the variable names are in french, I could not use google translate because only part of the code needs translated, and it would not be that practical to ...
32
votes
9answers
3k views

Why do old C-style method names continue being used in modern languages? [duplicate]

I understand that in the earlier days of computing, shorter method names like printf made sense, because storage was limited. But why do modern languages like Python and Go still use the less readable ...
4
votes
2answers
844 views

Is sticking to one language on a particular project a good practice?

I'm developing a pipeline for processing text that will go into production. The question I keep asking myself is: should I stick to one language for the project when I'm looking for a tool to do a ...
5
votes
1answer
688 views

How advanced are author-recognition methods?

From a written text by an author if a computer program analyses the text, how much can a computer program tell today about the author of some (long enough to be statistically significant) texts? Can ...
1
vote
4answers
7k views

Draw a checkerboard in Java

I'm reading through a programming book and am having trouble understanding a few parts of this code. The program draws a checkerboard, and colors the odd squares black. import acm.graphics.*; import ...
10
votes
1answer
645 views

Object Constraint Language (OCL) for Stack in java.util package

I have an exam coming up and I'm looking at past papers to get some ideas of what to expect. I'm a bit stuck on the following one and would really appreciate if someone could give some example ...
8
votes
3answers
9k views

Whatever happened to Pascal? [duplicate]

In reading this blog post about Photoshop 1.0 I was surprised to learn that it was written in Pascal (Object Pascal to be exact). But you never hear about Pascal anymore. Why is that?
2
votes
2answers
588 views

When people work in different countries and need to work together how to keep code in correct language

I'm a member of a small new team and with one of our latest builds I noted that, VS2010 code files don't contain language formatting. So for example when I write down a Euro symbol in my code or ...
21
votes
8answers
4k views

What non-theoretical, practical programming language has no reserved keywords?

I have been searching for a practical programming language that has no reserved keywords but I haven't had any luck finding one. I am working on a programming language for my own edification and ...
-1
votes
3answers
478 views

Why are some languages (e.g Visual Basic) considered more enterprise ready than others (Python) [closed]

Reading about various techie sites, there is often a feeling that Microsoft Languages / Oracle etc. are considered "enterprise ready", while there seems to be more doubt about languages such as Python ...
24
votes
9answers
6k views

Are there any programming languages that follow a minimalist development approach?

I find it that when languages are considered the same as commercial software, there is always a constant need to add new features to justify new releases. Can there be or are there languages where ...
9
votes
2answers
5k views

Language parsing to find important words

I'm looking for some input and theory on how to approach a lexical topic. Let's say I have a collection of strings, which may just be one sentence or potentially multiple sentences. I'd like to ...