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.

Filter by
Sorted by
Tagged with
4 votes
4 answers
338 views

Is there a cancel after certain amount of time try catch type of block?

I'm going through a beginner programming learning guides and the teacher brings up the try catch block paradigm. The code you put in the try block is run and if an error happens the code in the catch ...
user avatar
7 votes
4 answers
691 views

Why does the C++ standard still allow uninitialized primitive variables?

If reading uninitialized memory is undefined behavior anyway, why has the C++ standard not been changed so that objects of primitive type (int, unsigned, float, double, bool, char) get default-...
user avatar
2 votes
3 answers
120 views

What is the name of the type of program to produce Unicode characters from ASCII combinations?

For example, in Vietnamese, there are Unicode characters like "â", "ê", "ô", "ư", v.v. To type them from keyboard, I need to type aa, ee, oo, w, then a program ...
user avatar
  • 132
9 votes
2 answers
1k views

What is the name for the integer part of a enum?

I've been writing some code comments, and I've been trying to refer to the index integer of a enum type, but I'm not sure what it's called. I'm tempted to call it the identifier, however there is ...
user avatar
  • 575
14 votes
3 answers
2k 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 ...
user avatar
  • 20.7k
4 votes
2 answers
229 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 ...
user avatar
1 vote
1 answer
152 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
2 answers
162 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 ...
user avatar
14 votes
4 answers
4k 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 ...
user avatar
4 votes
2 answers
5k 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", ...
user avatar
  • 49
12 votes
3 answers
6k 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 ...
user avatar
1 vote
1 answer
4k 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 ...
user avatar
  • 131
3 votes
2 answers
455 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 ...
user avatar
1 vote
0 answers
87 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 ...
user avatar
0 votes
1 answer
116 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 ...
user avatar
  • 273
1 vote
2 answers
230 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 ...
user avatar
-7 votes
1 answer
121 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
user avatar
-2 votes
2 answers
2k 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 ...
user avatar
3 votes
0 answers
2k 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 ...
user avatar
  • 2,728
109 votes
6 answers
25k 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 ...
user avatar
  • 1,600
2 votes
1 answer
246 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?
user avatar
  • 139
1 vote
3 answers
501 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 ...
user avatar
  • 135
1 vote
1 answer
81 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 ...
user avatar
  • 183
-1 votes
5 answers
131 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 (...
user avatar
  • 11
7 votes
2 answers
710 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) '()) ...
user avatar
3 votes
2 answers
580 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 ...
user avatar
1 vote
1 answer
674 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'...
user avatar
0 votes
2 answers
207 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 ...
user avatar
  • 199
1 vote
1 answer
101 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 ...
user avatar
  • 3,336
8 votes
2 answers
517 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 ...
user avatar
  • 20.7k
15 votes
8 answers
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 ...
user avatar
  • 20.7k
5 votes
3 answers
23k 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 ...
user avatar
  • 173
-1 votes
1 answer
171 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.
user avatar
  • 11
14 votes
2 answers
6k 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 ...
user avatar
  • 20.7k
32 votes
3 answers
5k 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 ...
user avatar
  • 20.7k
0 votes
1 answer
235 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 ...
user avatar
2 votes
1 answer
5k 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 ...
user avatar
  • 20.7k
4 votes
2 answers
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 ...
user avatar
  • 427
2 votes
4 answers
2k 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 ...
user avatar
  • 20.7k
20 votes
6 answers
4k 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 ...
user avatar
  • 4,761
0 votes
1 answer
442 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 ...
user avatar
  • 215
33 votes
9 answers
4k 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 ...
user avatar
  • 1,415
4 votes
2 answers
966 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 ...
user avatar
  • 161
5 votes
1 answer
759 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 ...
user avatar
1 vote
4 answers
10k 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 ...
user avatar
10 votes
1 answer
808 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 ...
user avatar
9 votes
3 answers
11k 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?
user avatar
2 votes
2 answers
608 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 ...
user avatar
25 votes
8 answers
6k 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 ...
user avatar