programming-languages

primitives of a programming language

Hi, Which do the concepts control flow, data type, statement, expression and operation belong to? Syntax or semantics? What is the relation between control flow, data type, statement, expression, operation, function, ...? How a program is built from these primitives level by level? I would like to understand these primitive concepts a...

Learning about game development, any books recommended?

I want to write some games, but I don't have any game development experience. Any books are recommended? Is this necessary to have a good Maths skill when taking about some physical actions? Also, is it complex to do some AI design? thz a lot. ...

Does .dll and .lib differ by programming language?

Say,if the .dll or .lib is written in C,can it be used by other languages like PHP/Python? ...

Why are dates calculated from January 1st, 1970 ?

Is there any reason behind using date(January 1st, 1970) as standard for time manipulation? I have seen this standard in Java as well as in Python. These two languages I am aware of. Is other popular languages also follows the same standard? Please describe. ...

Folder View in C# Form

Hello, In an attempt to learn C#, I am trying to develop Picasa Like Application to display Photographs from my Library. Would it be possible to display folders as in Picasa Using C# ? Any help would be highly helpful. ...

What's the purpose of the empty string?

To me, as a developer and as a user, I find the empty string ("") useless and the cause of much confusion, it's like saying string == char[] Maybe computers need the empty string, so I'd like to learn why. See also: Default string initialization: NULL or Empty? Best Practice: Should functions return null or an empty object...

objective c coding guidelines

Is there any pdf which tells about coding guidelines in objective C. For Example... 1. Breaking the function names - checkIfHitTheTrack. 2. member variables must be like - mVariableName. 3. Giving better names to subclass - ? Please share the related links... ...

Statement hierarchy in programming languages

I quickly wrote an interpreter for some sort of experimental programing language i came up with, in PHP (yes, in PHP). The language itself doesn't have anything really special, I just wanted to give it a try. I got the basic things working (Hello World, input to output, string manipulation, arithmetics) but I'm getting stuck with the ma...

Typical tasks/problems to demonstrate differences between programming languages

Somewhere some guy said (I honestly do not know where I got this from), that one should learn one programming language per year. I can see where that might be a good idea, because you learn new patterns and ways to look at the same problems by solving them in different languages. Typically, when learning a new language, I look at how cer...

how to use quad core CPU in application

For using all the cores of a quad core processor what do I need to change in my code is it about adding support of multi threading or is it which is taken care by OS itself. I am having FreeBSD and language I am using is C++. I want to give complete CPU cycles to my application at least 90%. ...

Any ideas on How to search a 2D array quickly?

I jave a 2D array like this, just like a matrix: {{1, 2, 4, 5, 3, 6}, {8, 3, 4, 4, 5, 2}, {8, 3, 4, 2, 6, 2}, //code skips... ... } (The Array is not sorted) I want to get all the "4" position, instead of searching the array one by one, and return the position, how can I search it faster / more efficient? thz in advance. ...

What order are the programming languages derived in?

For instance, I know that basically all languages that are object oriented based are basically derivatives of C# or C++ correct? Does anyone know the order they came in? Like C -> C++ -> C# -> PHP, etc. ...

Learning multiple languages

Once you learn one language does it become easier to learn a second and are there pairs of languages that go together? Also is it even a good idea to learn more then one language? ...

regarding java programming language

Hi I am java professional since last one year. I am pretty familier with core java and JSP and SERVLET technologies.Now I am hired by a telcom company where java is not used.The question I like to ask here is how to keep java enviornment around me so that I should not be unfamiler with java. As I come from company I get much time to wor...

Programming Language Suggestion App / Database

Is there an website anywhere that allows you to select required facets of a programming language and then suggests matching options for you to choose from? For example, say I wanted an object oriented language that was functional its would suggest F#, Python, etc. ...

Which programming language or a library can process Infinite Series ?

Which programming language or a library is able to process infinite series (like geometric or harmonic)? It perhaps must have a database of some well-known series and automatically give proper values in case of convergence, and maybe generate an exception in case of divergence. For example, in Python it could look like: sum = 0 sign =...

Logic to skip repeating values in a variable

i have a loop where a variable value will change in each loop and display those values in each loop. i need to skip the display of the value if the same value repeats from second time ...

Is there a compiled* programming language with dynamic, maybe even weak typing?

I wondered if there is a programming language which compiles to machine code/binary (not bytecode then executed by a VM, that's something completely different when considering typing) that features dynamic and/or weak typing, e.g: Think of a compiled language where: Variables don't need to be declared Variables can be created doing ru...

Greenspun's 10th rule in Perl?

Greenspun's Tenth Rule of Programming is a common aphorism in computer programming and especially programming language circles. It states: Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp. The questions are, Would you consider this...

Commercial video games

What language are ps3 and xbox 360 game written in? Are the games written in the same language for both systems? Also is the code something you could run on a computer? ...