programming-languages

Synchronous vs Asynchronous languages

Hi All, In last 1 year I was working on Java and flex. While coding flex, most of my code parts went for a toss since its asynchronous. It made me to think about the real advantages and disadvantages of synchronous executing languages vs asynchronously executing ones. What are the areas where they are stronger compared to other and wha...

what language/libraries an app that has a video preview window?

I want to make a simple assistant for putting together AviSynth scripts. This would be a windows desktop application that would have a "preview" screen of an avi movie, which would give you a timeline, play, fast-forward, rewind, advance and go back frame-by-frame. The program would need to know the frame number of the current frame in t...

Java, Code Igniter, RoR, DJango web Application Challenge

Hi, This is a framework/programming language challenge. I'm looking for programming language that would be best approach for the next project. I want to get some score (out of 10) of their Time to Develop, Scalability, and Security. Form Builder that will read and write to Database(MYSQL) User Authentication and User Management Easy f...

Excluding last element in 0-based indexing

Once when I was reading some python docs I came across a reference to an article that explained why programming languages with 0-based indexing should always exclude the last element during operations like slicing: >> a = [1, 2, 3] >> a[0:1] [1] #and not [1,2] Unfortunately I did not bookmark it. Does anyone know which article I am t...

What is a good example to show to a non-programmer to explain what programming "looks like"?

A friend of mine asked me the other day if I'm just looking at lists of numbers when I'm programming, or how it works. I tried to explain that it's generally more like math formulae, with the odd english word tossed in, and that it's generally mostly readable. But that's a very vague explanation, and it doesn't really explain much to a n...

When to choose R vs. SciPy?

What are some advantages and disadvantages to doing statistical analyses in SciPy vs. R? They seem to have been designed with opposite philosophies (plain old library vs. DSL). What are some rules of thumb about which is the right tool for the job? ...

Programming for Windows with no redistributable

Hello! It might be a stupid question, but all of my tries to google this failed. The question is: How can you develop windows applications that don't need a redistributable pre-installed? I want to create applications that run also under older versions of Windows which don't have the .NET Framework or something similar included. Thank ...

Are there any programming languages providing object-level access control/protect?

public class ProtectedClass { private String name; public static void changeName(ProtectedClass pc, String newName) { pc.name = newName; } public ProtectedClass(String s) { name = s; } public String toString() { return name; } public static void main(String[] args) { ProtectedClass pc1 = new Prote...

Groovy, Scala maybe making my life easier?

I don't want to break any rules here but happy christmas everyone of you! In a silent hour an idea crossed my mind: Is it possible to replace any java coding which I use daily with groovy or scala? E.g. writing small webapps which include servlets/portlets etc. ...

What should a software engineer (web) start by learning - Erlang, Haskell, Python, C++, F#

What would you suggest what will be the next choice of language that could benefit an engineer in his career utmost? I am a Software Engineer and almost everything I engineered is for WWW. I have decided to learn a language and keep it learning parallel. I'm fluent in C# and JavaScript. But, apart from it I want to learn a language whic...

Storing type information for a java code builder

So I have a a text file that looks something like this: public >ret method(>input ){ //do something with input . . . //return something of type >ret } I want to be able to type something like: HelloWorld is a method that prints "hello world" using nothing as input and returns nothing. The program does Hell...

Extreme big/small number programming.

I am trying to do some extreme precise maths calculation of very big/small number. The very big number may have 10 - 50 digits and the very small number may have 10 - 50 decimal places. Can C++ do this? If not is there any other programming language that can handle this kind of number? ...

Is There a Way to Tell What Language Was Used for a Program?

I have a desktop program I downloaded and installed. It runs from an .exe file. Is there some way from the .exe file to tell what programming language was used to write the program? Are there any tools are available to help with this? What languages can be determined and which ones cannot? Okay here are two of the sort of things I'...

Current Go Language Projects

As many of you might know Google just released it's "Go Language" (http://golang.org) as an experimental language. Does anyone know of any projects that people have been "experimenting" with? Just wondering what people's takes on it so far are. Although this may be too soon to tell. ...

Indicate programming language in a file without extension

When writing executable scripts, and declarative configuration files that use a common language (eg. Python), I often find it undesirable to add an extension to the file name. Many syntax-highlighting text editor (eg. Geany) are subsequently unable to automatically determine the filetype. Is there any standard method for indicating to e...

Is C# the same as Objective-C?

Simple question, I'm justing looking for a yes or no clarification. A citation would be appreciated but not necessary. Bonus Question - Can Objective-C be used on Windows, or only on MAC? ...

Two 'main' functions in C/C++

Can i write a program in C or in C++ with two main functions? ...

Origin of the C# language name

I am a C and C++ programmer and am now trying to learn C#. I have bought the book Professional C# by Wrox publications. While migrating from C to C++ I had a doubt why ++ was added to C. Later on I realized that since ++ is an increment operator and it was added to C just to provide an 'Object Oriented Extension'. In C#, what is the s...

Strangest language feature

What is, in your opinion, the most surprising, weird, strange or really "WTF" language feature you have encountered? Please only one feature per answer. ...

Is learning C++ a good idea?

The more I hear and read about C++ (e.g. this: http://lwn.net/Articles/249460/), I get the impression, that I'd waste my time learning C++. I some wrote network routing algorithm in C++ for a simulator, and it was a pain (as expected, especially coming from a perl/python/Java background ...). I'm never happy about giving up on some tec...