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

41
votes
3answers
8k views

What's The Difference Between Imperative, Procedural and Structured Programming?

By researching around (books, Wikipedia, similar questions on SE, etc) I came to understand that Imperative programming is one of the major programming paradigms, where you describe a series of ...
1
vote
2answers
701 views

How to ensure method finishes running before being run again

I'm new and I am trying to figure something out. I have a simple program which executes a method either when an event happens or when my timer ticks. Lets just say the method takes 5 seconds to ...
2
votes
6answers
767 views

Why is PHP's method of comparing different types bad?

I'm working on designing a new programming language and trying to decide how I will do variable comparisons. Along with many different types of languages, I've used PHP for years and personally had ...
31
votes
6answers
2k views

Does Lisp still have any special feature which has NOT been adopted by other programming languages?

Does Lisp still have any special feature which has NOT been adopted by other programming languages? By Lisp, I mean all the Lisp programming languages as a whole. I've been told how amazing Lisp is ...
2
votes
6answers
468 views

How do you move beyond code examples without a project?

I am currently learning Scala and I find a mental blog of how to proceed to a degree where I can use Scala daily beyond the normal examples. I just do not have a particular project in mind of what I ...
6
votes
3answers
360 views

Are there programming languages that allow you to do set arithmetic on types?

Out of curiosity, are there languages that allow you to do set arithmetic on types to create new types? Something like: interface A { void a(); void b(); } interface B { void b(); void ...
3
votes
5answers
449 views

Is this how dynamic language copes with dynamic requirement? [closed]

The question is in the title. I want to have my thinking verified by experienced people. You can add more or disregard my opinion, but give me a reason. Here is an example requirement: Suppose you ...
4
votes
6answers
1k views

Can CSS be considered a DSL?

According to Wikipedia, CSS is a style sheet language. However, it's pretty much the only such type of language in use (at least from a web developer's perspective). When trying to categorize CSS as ...
7
votes
4answers
899 views

What problems are stack oriented languages well-suited and ill-suited for?

Stack-oriented programming is a pretty non-widely used paradigm (well, PostScript gets used under the hood a bit here and there). This in mind, what problems are stack-oriented languages good at? What ...
4
votes
3answers
2k views

What is an algorithmic programming language?

"... You need to understand the core language: is it algorithmic, functional, object-oriented? ..." - Effective Java, Joshua Bloch, 2ndEd. 2008. Foreword, p xiii Functional: Lisp, OO: Java, but what ...
-2
votes
2answers
211 views

What language is used to write Android applications? [closed]

What language is used to write Android applications? I know that mostly applications have to be written in Java but is there any other option? I have nothing against Java I just need to know is ...
26
votes
10answers
3k views

Would you use (a dialect of) LISP for a real-world application? Where and why?

LISP (and dialects such as Scheme, Common LISP and Clojure) haven't gained much industry support even though they are quite decent programming languages. (At the moment though it seems like they are ...
12
votes
2answers
781 views

What does scannerless parsing have to do with the “Dangling Else Problem”?

I do not understand this sentence from the Wikipedia article on the Dangling Else problem: [The Dangling Else problem] is a problem that often comes up in compiler construction, especially ...
1
vote
2answers
163 views

Parser and interpreter knowledge as a way to gauge programmer ability [closed]

This is only anecdotal evidence but from my past encounters with programmers at various workplaces the programmers that understand the fundamentals of parsing and interpreting seem to be overall ...
54
votes
17answers
48k views

Is the C programming language still used?

I am a C# programmer, and most of my development is for websites along with a few Windows application. As far as C goes, I haven't used it in a long time, as there was no need to. It came to me as a ...
3
votes
6answers
4k views

Why was Objective-C popularity so sudden on TIOBE index?

I'd like to ask a question that is pretty similar to the one being asked here, but for Objective-C. According to TIOBE rankings, the rise of popularity of Objective-C is unprecedented. This is ...
10
votes
5answers
643 views

Plagued by indecision - how to choose technologies to use for projects? [duplicate]

I have always been fascinated with the newest and best technologies available. I graduate from college this year, and over the course of the past few years, I have spent a lot of time learning new ...
5
votes
7answers
503 views

Is good Grammar a prerequisite for your development team?

I understand that this may be primarily opinion based, but I also think it is an interesting question and would like to hear others' viewpoints on the subject. I recently became the senior developer ...
2
votes
3answers
422 views

Syntactic Sugar for old languages

I first learned about the existence of syntactic sugar languages, like CoffeeScript and SASS while working in Rails. This got me thinking... why do we not have well-known (if any at all) syntactic ...
1
vote
1answer
137 views

Optimizing mindmaps by finding the least amount of redundancy

When using mindmaps, you order them based on how you think it fits best. So for instance (tab means subtree) requirements dinner food forks spoons breakfast food forks this ...
1
vote
2answers
332 views

What's up with the Class::get(id) idiom in PHP

I am a new PHP developer (coming from .NET). The experienced php dev that I work with said that calling a static get method on a PHP class with an ID as a parameter is common in PHP. Is there a name ...
5
votes
5answers
726 views

Nested languages code smell

Many projects combine languages, for example on the web with the ubiquitous SQL + server-side language + markup du jour + JavaScript + CSS mix (often in a single function). Bash and other shell code ...
4
votes
2answers
286 views

Can you apply the same lexer rules to all programming languages?

I'm trying to understand the theory behind a lexer with the purpose of building one (just for my own fun and experience and to compensate for not taking proper CS courses :)). What I have yet to ...
2
votes
2answers
394 views

I need some help with defining a shell syntax

I'm trying to understand more about shells. I'm looking to implement one and want to look at what's been done in the past. In a regular shell, you have features like aliases and relative paths, and ...
117
votes
9answers
24k views

Why do people hesitate to use Python 3?

Python 3 was released in December 2008. A lot of time has passed since then but still today many developers hesitate to use Python 3. Even popular frameworks like Django are not compatible with Python ...
1
vote
4answers
827 views

Is there any specific reason to use “else if” clause?

We all use if ..else if.. else. But still I'm confused as to why we use else if. Where if does the same thing as else if. So why are we using else if? Any specific reasons behind this? Is there ...
1
vote
2answers
339 views

proposed algorithm and representation of an algorithm

What is the difference between an ambiguity in a proposed algorithm and an ambiguity in the representation of an algorithm? I have done some research and found out that ambiguity in the ...
18
votes
12answers
2k views

Is there a language offering LISP-like macros with a more complex syntax?

LISP's macros are extremely powerful constructs, and the inability to introspect and modify the program itself beyond the method signature level has always struck me as a limitation. Yet I favour ...
4
votes
5answers
1k views

Programming Languages “Higher Level” Than Python [closed]

In general, I have been presented with these sorts of heirarchies for programming language abstraction: Assembly < C < C++ < Java < Python where C abstracts less than C++ and so on. You ...
13
votes
7answers
7k views

Confused about ASP.NET Ajax, jQuery and JavaScript [closed]

Yesterday, I read couple of chapters on ASP.NET Ajax and jQuery from my ASP.NET 4 book and I found those frameworks pretty interesting and decide to learn more about them. Today, I borrowed some ...
-1
votes
1answer
209 views

Is there any practical algorithm / data-structure that can't be done with non-recursive Lambda Calculus augmented with foldl?

In my search for a practical non-turing complete programming language, I've been paying attention to lambda-calculus with disallowed self-application - that is, x x forbidden. After taking that ...
3
votes
3answers
371 views

Language for Chess Position Evaluation (experimental) [closed]

My aim is to, via pattern analysis and statistics, (as well as piece mobility and position) build a chess position evaluation analyzer (rather than simply going brute force ply-searching). Id like ...
88
votes
14answers
7k views

Why do most programming languages only support returning a single value from a function?

Is there a reason why functions in most(?) programming languages are designed to support any number of input parameters but only one return value? In most languages, it is possible to "work around" ...
40
votes
6answers
5k views

Why didn't == operator string value comparison make it to Java?

Every competent Java programmer knows that you need to use String.equals() to compare a string, rather than == because == checks for reference equality. When I'm dealing with strings, most of the ...
4
votes
2answers
180 views

C# gadgets overloading the form (can't see the woods for the trees) [closed]

I have the task of taking over a C# program that is very badly written, however I am new to C#. The form has many objects including labels, buttons, panels, etc, which overlap each other. The form is ...
0
votes
1answer
161 views

How does public API designer come to the conclusion what shall be provided for future and what not?

Often working with various jars and exploring the features specially in corner cases, I often realize and think that how is that they thought that it might be a useful scenario somewhere in future ...
14
votes
13answers
3k views

Does switching from one programming language to another cause a loss in experience? [closed]

If I was working for a programming language X and want to switch to Y (from Java to C++, or from Java to Objective-c), does this cause my years of experience in the previous languages to be lost (from ...
6
votes
6answers
4k views

What language to use for prototyping and creating quick scripts? [closed]

Right now, I use Python for my quick scripts and prototypes (e.g. algorithms, my pseudocode is very Python-like as well). The oher languages that I am familiar with include Java, C, x86 Assembly and ...
1
vote
7answers
3k views

Why aren't Multi-Platform Programming Languages popular? [closed]

So I was talking to a friend and he mentioned Using WAC I can write Javascript code that will compile and run in iOS, Android, BB etc and there is this programming language that lets you write ...
5
votes
3answers
483 views

Why do programming languages encompass so much? [closed]

Programming languages are not just language. Each one tends to have: Its own IDEs, Its own package managers, Its own set of libraries, Its own build tools, Its own data formats. If you are writing ...
68
votes
7answers
27k views

Is this an assembly language?

In my childhood I used to program on an MK-61 Soviet calculator. It had four operating registers (X, Y, Z, T) and 15 storage registers. A program could have 105 steps. As I recall it, it had commands ...
-1
votes
1answer
208 views

What's the best approach to studying Open Source projects or any large codebase? [duplicate]

There is a Open Source project which I need to use in my project. All other functionality is built on top of it. I am new to programming and find it very daunting. There are a lot of Open Source ...
4
votes
2answers
839 views

How should we “pick the comfortable programming language” in an interview?

When they ask you to choose the programming language you are comfortable with before an interview, is it to ask questions about the programming language or to check how well you code in it? Like for ...
-3
votes
1answer
144 views

Fantasy: One Language/Standard supported by all devices? [closed]

No introduction or description needed. We all know how troublesome it is make different codes and test codes in different platforms and browsers such as IE, Firefox, Chrome, Android 2.3 onwards, iOS, ...
29
votes
12answers
5k views

Any programming language can be mastered easily if the fundamentals of programming are strong. A fact or a myth? [closed]

Is it true that a person with fairly good fundamentals in programming can easily learn any programming language? Well, when I say programming languages, I refer to the agile and dynamic languages ...
4
votes
1answer
339 views

Will loop constructs become obsolete? [closed]

By loop constructs I mean for… and while… constructs with nested statements. Currently I am coding a tool in Python and decided out of curiosity not to use the regular loops - and rely on ...
11
votes
6answers
1k views

Do sigils make source code easier to read?

In most programming languages, variables do not have identifying characters like they do in PHP. In PHP you must prefix a variable with the $ character. Example; var $foo = "something"; echo $foo; ...
5
votes
4answers
2k views

What are some good examples of using pass by name? [closed]

When I write programs I using pass by value or pass by reference always seem to be logical methods. When learning about different programming languages I came across pass by name. Pass by name is a ...
1
vote
4answers
1k views

How faster is an 'if' construct compared to an immediate 'if' statement (IIF) and when should I use it?

How does the traditional if statement compare with that of the immediate if statement (IIF, the one usually written as condition ? value_if_true : value_if_false) in terms of speed of execution? ...
37
votes
14answers
6k views

Why is there still case sensitivity in some programming languages?

I don't see any use for case sensitivity in a programming language, apart from obfuscating code. Why implement this in a programming language? Update: It looks like someone you know made a ...