programming-languages

Financial Market Developer Dilemma

In the no-so-distant future I plan to work for a corporation in the financial sector as a software developer. I have a few of options as right now: Learn and focus on .NET since (presumably) it is widely used in the financial industry. Study the programming concepts, learn algorithms, learn a little bit of C/C++, C#, JAVA, Objective-C...

Why call-by-value evaluation strategy is not Turing complete?

I'm reading an article about different evaluation strategies (I linked article in wiki, but I'm reading another one not in English). And it says that unlike to call-by-name and call-by-need strategies, call-by-value strategy is not Turing complete. Can anybody explain, please, why is it so? If it's possible, add an example pls. ...

Generating a python file

Hi! I'm havin issues with python (Sorry for my personal feelings before.. :P). I have a txt file, it contains a custom language and I have to translate it to a working python code. The input: import sys n = int(sys.argv[1]) ;;print "Beginning of the program!" LOOP i in range(1,n) {print "The number:";;print i} BRANCH n < 5 ...

What are the benefits of `while(condition) { //work }` and `do { //work } while(condition)`?

I found myself confronted with an interview question where the goal was to write a sorting algorithm that sorts an array of unsorted int values: int[] unsortedArray = { 9, 6, 3, 1, 5, 8, 4, 2, 7, 0 }; Now I googled and found out that there are so many sorting algorithms out there! Finally I could motivate myself to dig into Bubble So...

Does some Integer data types differnate with other Programming languages?

Do Integer data types allow spaces when it should be just numeric? Do other programming languages allow spaces in an Integer data type? For example, MySQL database storage does not allow spaces to be stored in an int data type. Do other languages allow it when storing in their own int type? ...

Why the amount of open source commits has decreased dramatically in 2009-2010 (according to ohloh.net)?

Declining commit graph at ohloh.net: http://www.ohloh.net/languages/compare?commit=Update&amp;l0=c&amp;l10=lisp&amp;l11=csharp&amp;l12=-1&amp;l1=html&amp;l2=java&amp;l3=php&amp;l4=perl&amp;l5=python&amp;l6=haskell&amp;l7=clojure&amp;l8=scala&amp;l9=ruby&amp;measure=commits ...

why "Using Goto" is bad programming ?

Possible Duplicates: Why is goto poor practise? GOTO still considered harmful? Hi, I have read in many book that using goto is bad programming practice, why is it so? thanks Yogesh ...

Strongly typed language.

Possible Duplicates: What is a strictly typed language? What are the key aspects of a strongly typed language? What does it mean that language is strongly typed? ...

What theoretical and/or experimental programming-language features are there?

I'm designing a programming language, purely for fun, and want to add as many experimental features as I can, just to make programming in it something completely different, and that not in a bad way like Brainf*ck or Malbolge. However, I seem to be quite bad at coming up with new things for it but I'm sure that there are tons of things ...

Do lists of recently added, not recently updated, perl/php/python/ruby/etc. modules exist?

For many programming languages, there are centralized sites (ex. CPAN, PEAR, PyPi, RubyGems, etc.) which list recently updated (existing plus newly added) modules, but I haven't seen any site which allows you to list only recently added/created modules. Can anybody point me to such a site/service? ...

Do lists of recently added, not recently updated, perl/php/python/ruby/etc. modules exist?

For many programming languages, there are centralized sites (ex. CPAN, PEAR, PyPi, RubyGems, etc.) which list recently updated (existing plus newly added) modules, but I haven't seen any site which allows you to list only recently added/created modules. Can anybody point me to such a site/service? ...

Is Javascript only available for web browsers?

I would like to know about JavaScipt. Is Javascript available only for web browsers? Because I used some JavaScript code for Firefox Plugin development and Thunderbird. Help me to find out more about this: where can I use JavaScript other than web browsers, and how? ...

Why are most S-Expression languages dynamically typed?

How come most Lisps and Schemes are dynamically typed? Does static typing not mix with some of their common features? ...

Optional structural typing possibilty in C++ or anyother language?

In C++ how to tell compiler that Ogre::Vector3 IS_SAME_AS SomeOtherLIB::Vector3 ? I feel that.. in languages like c++ which are not structural typed but there are cases when it makes sense. Normally as game developer when working with 4+ libraries that provide sort or their own Vector3 implementation. The code is littered with ToOgre, T...

Med-PC Programming Language

There's this programming language called Med-PC that works with animal behavior. I'm trying to learn a bit about it, but i can't seem to find any kind of books or material about it. I've "google it" but all i seem to find are some references about it and a PDF explaining the installing of the program itself and sensors(for the experimen...

Advantages/disadvantages of Python and Ruby

Possible Duplicate: What does Ruby have that Python doesnt, and vice versa? I know this is going to seem a little like all the other python vs ruby question out there, but I'm not looking specifically to pick one over the other all the time. My question is, essentially, why would you use one language over the other when you a...

why many programmers use integer literal on left handside of equality operator?

Possible Duplicates: How to check for equals? (0 == i) or (i == 0) Putting constants on the left side in comparisons? Hi, Many a times in blogs and books, i have seen conditions in if statements like this: if(0 == a.size()){...} or if(-1 == str.indexOf(ch)){...} Is there any performance advantage in using integer liter...

Can I do everything in C that C++ and C# and Java can do?

Is it possible to write in C programming language everything that you could write in other languages such as Java, C# or C++. If that's the case why don't schools these days teach C instead of Java? Ok the main reason why I am asking is because I don't want to tie down to a single programming language and platform (.NET and C# or Obj-C ...

Object serialization practical uses?

How many software projects have you worked on used object serialization? I personally never came across a scenario where object serialization was used. One use case i can think of is, a server software storing objects to disk to save memory. Are there other types of software where object serialization is essential or preferred over a dat...

Pointers and Addresses in C

The following code manipulates pointers to point at the same location; I'm puzzled about why when I ran the code, the output didn't show value coinciding. #include "stdio.h" main() { int i=3,*x; float j=1.5,*y; char k='c',*z; x=&i; y=&j; z=&k; printf("\nAddress of x= %u",x); printf("\nAddress of y= %u",y); printf...