Which programming languages can be used to develop in Android? [duplicate]

At launch, Java was the only officially supported programming language for building distributable third-party Android software. Android Native Development Kit (Android NDK) which will allow developers to build Android software components with C and C++. In addition to delivering support for native code, Google is also extending Android to support popular dynamic scripting languages. Earlier … Read more

What is the ‘expression problem’?

Watch this lecture. The idea is that your program is a combination of a datatype and operations over it. The problem asks for an implementation that allows to add new cases of the type and new operations without the need for recompilation of the old modules and keeping static type safety(no casts or runtime type … Read more

What programming language is most like natural language? [closed]

There is a programming language called Inform that, in its most recent incarnation, Inform 7, looks a lot like natural language…in particular, written language. Inform is very specifically for creating text adventure games, but there is no inherent reason that the concepts couldn’t be extended into other realms. Here’s a small snippet of Inform 7 … Read more

Difference between static and dynamic programming languages [duplicate]

Static Typing Static typing means that types are known and checked for correctness before running your program. This is often done by the language’s compiler. For example, the following Java method would cause a compile-error, before you run your program: public void foo() { int x = 5; boolean b = x; } Dynamic Typing … Read more

PHP Readonly Properties?

You can do it like this: class Example { private $__readOnly = ‘hello world’; function __get($name) { if($name === ‘readOnly’) return $this->__readOnly; user_error(“Invalid property: ” . __CLASS__ . “->$name”); } function __set($name, $value) { user_error(“Can’t set property: ” . __CLASS__ . “->$name”); } } Only use this when you really need it – it is … Read more

Specification for a Functional Reactive Programming language

I’m glad you’re starting by asking about a specification rather than implementation first. There are a lot of ideas floating around about what FRP is. From the very start in the early 90’s (when I was working in interactive graphics at Sun Microsystems and then Microsoft Research), it has been about two properties (a) denotative … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)