programming-languages

Is there a common vocabulary for all programming languages?

It is really annoying that each programming language has its own vocabulary. For example, in Java we have if ... {} yet in Bash script we have if ... then ... fi # using "fi" is so insane for me It would be really nice if all programming languages shared the same vocabulary. The language designers could then define the underlying s...

What is the most important properties of programming languages for you?

For me it is : strong type Wikipedia: "strong typing" implies that the programming language places severe restrictions on the intermixing that is permitted to occur, preventing the compiling or running of source code which uses data in what is considered to be an invalid way Why it is important? Because I love compile error much m...

Is F Sharp the right programming language for what I want to accomplish?

I recently downloaded Visual Studio 2010 and would like to know if this multi-paradigm programming language is the right language for what I what I want to accomplish.. I don't have any experience with OOP, rather I'm an ole school procedural language programmer. I also downloaded an eval version of RADvolution Designer. My goal is to co...

Programming language and O/S for a kiosk based system

I am going to be developing some software for a kiosk and was wondering what operating system and programming language I would be best off going with. I understand kiosks a bit and realized there are lot of issues as it pertains to software upgrades, etc so I want an environment that can be easily managed remotely but is also secure. ...

Which generation of languages does SQL belong to?

Is SQL classified as a fourth generation language or as a fifth generation language? ...

Is Haskell suitable as a first language?

I have had previous exposure to imperative languages (C, some Java) however I would say I had no experience in programming. Therefore: treating me as a non-programmer, would Haskell be suitable as a first language? My interests in Pure Mathmatics and CS seem to align to the intention of most Haskell tutorials, and although i can inhere...

A programming language designed to be testable

Does anyone know of a programming language that is testable by design or at least exhibit very good properties in terms of testability? For instance, a programming language designed so that unit testing is a non optional part of the coding process, or, better yet, a programming language where the program is more or less inferred from th...

If you are forced to simplify C# looping keywords, choose only one you want to preserve.

If you are forced to simplify C# keywords that can be used for looping, choose only one you want to preserve. for do-while while goto-label-if foreach Is there any performance consideration regarding your decision? Actually I don't know the internal mechanism of them, so here I want interview those of you know the details. However...

Building a compiler or interpreter using Python

Right now I'm writing my PhD proposal to build a language processor for a new specification language for Java (cf. JML, or Spec# for C#) and need to nail down an implementation tool to start development. The research aspects of the language (syntax, semantics, theoretical results) are orthogonal to my choice of implementation, so I'd lik...

C++ 5 dimensional vector ?

I am trying to make a 5 dimensional vector and I can’t seem to get it to work. I know if I need to write a 3 dimensional vector, I could write it in the following way: vector< vector< vector<string> > > block(27, vector< vector<string> > (27, vector<string>(27))); Then I call it: block[x][y][z] = “hello”; I wrote the 5 dimensional v...

is it possible to markup all programming languages under object oriented paradigm using a common markup schema?

i have planned to develop a tool that converts a program written in a programming language (eg: Java) to a common markup language (eg: XML) and that markup code is converted to another language (eg: C#). in simple words, it is a programming language converter that converts program written in one language to another language. i think i...

Create a JVM programming language

I have created a compiler in C (using lex & bison) for a dynamic typed programming language that supports loops, functions declarations inside functions, recursive calls etc. I also created a virtual machine for that runs the intermediate code created by the compiler. I was now thinking instead of compiling to my own intermediate code...

What to study first to create a Chatroom?

What are some languages I should study to create a Chatroom? ...

Why programming competition contestants use C++ and Java?

After competing in and following this year's Google Code Jam competition, I couldn't help but notice the incredible number of [successful] contestants that used C/C++ and Java. The distribution of languages used throughout the competition can be seen here. After programming in C/C++ for several years, I recently fell in love with Pytho...

How to print a string in backward, in scheme ?

Hi, I know if I write my scheme code in the following way and type in (word ‘(a b c)), it will out put the list in the same order. Could you please tell me if there was a way I can print it out in opposite order. Ex- (list ‘c ‘b ‘a). it needs to be the user's input I print out in opposite order. So, I can't call it (reverse '(a b c))....

class object in class with php oop

I am not even sure how to ask. I do this all the time in C# but for the life of me I cannot find any decent examples in PHP. Can you help? What I am trying to do is for example. Say I have a class called Company who has many Employees. I want to be able to store all the employees in the company class then later when I iterate throug...

How should I study programming languages?

I am a student of computer engineering. I have never done any programming before, and as you can understand, I don't know how to study it or how to make my own programs. My English is weak [edited for clarity - ed], and so if you don't like the choices I list, please feel free to provide others. How should I study? How should I learn p...

How to start programming from scratch?

I've never really had any experience with programming at all, my uncle told me to come to this site for help from total strangers if I wanted to start programming. I know the names of a couple of languages but I don't really know anything at all. I'm fourteen and I can type fast if that counts for anything. One of my uncles wanted me ...

Slang, Goldman Sach's proprietary programming language

Apparently, Goldman Sachs' code for program trading is written in a proprietary programming language called slang and relies on a proprietary database (secdb). I can only guess that secdb is a column-oriented time-series database for securities data (like KDB+ from Kx Systems), but I have no idea what Slang is. It could be a wrapper aro...

Is it necessary to write else part in every if condition?

Hello all, The question i asked might be closed. But i just want to know that is it necessary to write else part of every if condition. One of my senior programmer said me that "you should write else part in every if condition" . Suppose we have no condition for write in else part then what should we do ? I assume a healthy discussion wi...