programming-languages

Load music files on my iphone application

Hello all this is my first post here i have been working in an iphone application it sound like a small music instrument i've used this code to load my music notes : // get the path of the sound file NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"do" ofType:@"mp3"]; ...

profie designation regarding question

it may be irrelevant question but i am not finding any proper answer on net today i have been recruited to a software company but the designation they are providing is "Analyst Programmer" what is this designation could any body brief me. Being a analyst programmer what task are expected to do me. is it any thing to do with development b...

Which programming language is easier to support

Which programming language is it easier to support developers in (namely developers that have little professional experience (i.e. dealing with changes out of their control)). Edit: I would define support as not restrict the professional development of the developer and enable them to grow enable senior staff to work alongside them i...

What platform will require only one code and work for all smartphones in the world?

3 years from now, what will be the platform that will work in all smartphones and tablets, including but not limited to iOS, Android, RIM, Symbian, WebOS? Will it be Android, or MeeGo? And why. ...

Inconsistency in programming languages

Subjectively, What is the most consistent programming language? [why] What is the most inconsistent programming language? [why] Does the inconsistent language have any abstraction libraries to improve consistency? I believe C is the most consistent and organised language, as functions have generally the same argument ordering, as wel...

The difference between convert and parse.

Hi I could write the following to convert a object to and integer. Convert.ToInt32(myObject); But i could also write Int.parse(myObject.ToString()); Is there any difference? Which one should I be using? Thanks in advance. ...

Can a programming language itself be copyrighted?

I know that softwares can be copyrighted, and then you cannot copy them (as in copy the source), so you need to buy them. For example - Microsoft Visual Studio is a copyrighted IDE. But, that doesn't make C++, for example copyrighted. So, Microsoft does not own C++. Anybody can a) use C++, b) write compilers for C++, and c) sell applica...

Why do programming languages use commas to separate function parameters?

It seems like all programming languages use commas (,) to separate function parameters. Why don't they use just spaces instead? ...

Programming Language: What language has both Python & Ruby features?

I came across this great comparison chart between Python & Ruby. I'm looking for a programming language that is truly a blend between Python and Ruby (with a slight lean towards Python). I really like in Ruby that everything is an object (unlike Python). However, I really like in Python that things are immutable, so that code maintenan...

How to remove the things I don't like about Python?

Python is a great programming language, but certain things about it just annoy the heck out of me. As such, I: 1) wanted to find out how to remove these annoyances from the language itself, or 2) find a language that is Python-like that don't have these annoyances. I love Python for everything except: self: just seems stupid to me...

Why does Python require the "self" parameter?

Possible Duplicates: python self explained Why do you need explicitly have the self argument into a Python method? Why does Python require the "self" parameter for methods? For example def method_abc(self, arg1) And is there ever a date that the need for it will be removed? ...

What are the practical limitations of a non-turing complete language like Coq?

As there are non-Turing complete languages out there, and given I didn't study Comp Sci at university, could someone explain something that a Turing-incomplete language (like Coq) cannot do? Or is the completeness/incompleteness of no real practical interest (i.e. does it not make much difference in practice)? EDIT - I'm looking for an...

Which of these two IF Blocks is better coding practice?

User 2 offers to buy an item from User 1. User 1 can accept or reject. If User 1 accepts, then they will both be able to offer feedback about the transaction. I have 2 blocks of IF statements. They both work and do the same thing but which is better coding practice? IF BLOCK 1 checks if which user is there first and then checks if ...

Programmatically enabling/disabling hardware device

Possible Duplicates: [.NET] How do I disable a system device? Win32 API function to programatically enable/disable device Is there a way, in C#, to programmatically disable and re-enable a device? I'm looking for essentially the same functionality that occurs when you go into device manager and right click on a device and di...

Is C++ and .NET used together in Domains like Banking , Health Care and Telecom

This may seem relevant but it has some significance for me,may be few others like me. I just want to know ,How Important is it to Learn C++ , COM and ATL while you are a .NET programmer? I love programming with .NET and C# .Visual Studio just has it's own charm of intellisence ,Color Coding and other pretty features , which make us add...

A boolean variable name suggestion.

I have a Method name update, this will be called depending on the boolean variable. I need suggestion how should I name this variable. ...

Java Replacement

I may be posting a premature question, and maybe I'm just freaking out for no reason, but the way Oracle is handling Java is not very promising. I am a nerd who fell in love with Java from the first sight... and use it all the time in my personal/freelance projects but now I am thinking of a replacement. I am fluent in C#/VB.NET too but ...

Why is this code exiting prematurely?

#include <stdio.h> #define MAX 5 int stk[MAX]; int top=-1; main() { char ch; void push(); void pop(); void display(); do { printf("1. Push\n"); printf("2. Pop\n"); printf("3. Display\n"); ch=getchar(); if(ch=='1') push(); i...

What are the major difference between C# and C++?

Possible Duplicate: Differences between C++ and C#/.Net I'm looking for things like: C# can use strings for case statements whereas C++ can only use integers. C# can only inherit from one class and multiple interfaces. What are some other differences? This seems like I should have found this question in SO but I couldn't....

Example problems for concurrent computation

There's a plethora of paradigms and methods for concurrent programming in use today. Software transactional memory, actors, shared state concurrency, tuple spaces and many, many more. What I find lacking, however, is a library of interesting test problems for concurrency. One well known example is the "Dining Philosophers Problem", whic...