programming-languages

Should a function be used in both static and object context

In my company's codebase, i see functions used in both static and object context. For e.g. a class A has a function b() which is called both using A::b() and/or object_of_type_A->b(). I know this throws an error if strict is turned on. But I wanted to know if this is a bad practice and if yes, then why? Thanks for any answers. Let me kn...

What language and tools were originally used to develop Sega MD/Genesis games?

Someone has suggested to me it was assembler, though I think there were some visual design tools, too. So how did they make it? ...

How to learn developing Android applications

Hi! I am a new Java programmer. I want to learn how to develop Android applications. If someone could name the best IDE, books and websites from where I can learn, it would really help a lot. ...

What languages can be compiled to javascript?

Possible Duplicate: What compilers target JavaScript runtimes? Like CoffeeScript. I don't really like javascript, and it will be nice if I could replace it. ...

Why are stack overflows still a problem?

This question is mystifying me for years and considering this site's name, this is the place to ask. Why do we, programmers, still have this StackOverflow problem? Why in every major language does the thread stack memory have to be statically allocated on thread creation? I will speak in the context of C#/Java, because I use them most...

Why other languages don't support something similar to preprocessor directives like C and its descendant?

Hi,I wonder why other languages do not support this feature. What I can understand that C / C++ code is platform dependent so to make it work (compile and execute) across various platform, is achieved by using preprocessor directives. And there are many other uses of this apart from this. Like you can put all your debug printf's inside #...

How to write reliable file management code on NFS

Please give me some general advises on how to write reliable file management code using NFS. How to avoid or handle ESTALE errors? Programming language doesn't really matter. Thanks. ...

What is a "real" programming language?

Recently a teacher said "PHP isn't a real programming language", but only gave, in my opinion, weak justification: It's not compiled. It's scripted. It doesn't run on every platform. Is PHP not considered a "real" programming language? What is a "real" programming language? Must a language be compiled to be taken seriously? Backgr...

What is the dominant reason for Python's popularity as a systems and application programming language?

Coming from an enterprise systems background (think Java and Windows) - I'm surprised at the popularity of python as a prototyping language and am trying to put my finger on the precise reason for this. Examples include being listed as one of the four languages Google uses. Possible reasons include: enables rapid systems application pr...

What is 'D' programming language?

What is 'D' programming language? People started developing application using this language? who found? Can I know more about this new programming language? ...

Language for back-end math-intensive sections

I have recently begun working at a company wherein there are very few (2-3) programmers and many more engineers. As a result, the default language of choice has become VB.net. I look at some of the math-intensive portions of the programs that have been written thus far and I'm certain that these portions could be improved considerably if...

Are there any languages that use PHP as a virtual machine?

Hi, I am wondering if there are any languages that extend PHP into something ahem "better"? They don't have to necessarily be able to interact with PHP, but it is certainly a benefit if they can (e.g. call PHP functions or even be called from PHP). ...

Learn a scripting language besides Python

Someone told me once, that programmers tend to learn one scripting language properly and ignore or dislike other scripting languages. Do you have similar experiences? I'm using Python as my choice for scripting for few years, however, I'm sure that there are many existing and emerging languages that could impress the Pythonistas. Can y...

why PL/I didn't make it in scientific computing?

Hi, PL/I is a very old language but seemingly haven't got much publicity and appreciation as Fortran for scientific computing. Why is that? A search on the web does show that there are many PL/I codes for scientific computing. There is among others a scientific computing library which was developed by IBM in PL/I. But I haven't foun...

Programming Languages that Make Use of Special Characters

I'm working on a general-purpose programming language. In addition to the modern requirement of Unicode support in strings and identifiers, I'm considering supplying alternate spellings of some operators, specifically: Relational ( for <= >= !=) Bitwise and Setwise ( for & |) Logical ( for && || !) Arrows ( for -> =>) I know th...

Why is Python faster than Ruby?

They seem to share a lot of the same characteristics but as far as I can tell, Python 2.5 is faster than 1.8.7 by a lot. Is there a deeper underlying reason behind this? ...

Does SAS Programming have a meaningful future?

I saw some job offers for SAS Programmer. I hear nothing about SAS at my college and I really dont know what to think about it. Is it a niche programming platform like Oracle Forms or Lotus Notes? How does SAS Programming compare to Java, C# ? ...

Can a second implementation of a programming language be written in that language?

This question is just something that I have been thinking about lately. Can a programming language be written in that language as a second implementation? e.g. Java. Is it possible to rewrite the java programming language using the java programming language? Apologies if this is a silly question but I need to know! GF ...

What language should i learn after PHP/JS ?

i have about 5 years of work in PHP/JS/CSS and other web technologies , as web developer , i feel i should move to learn another languages , other things , but there is huge stack of languages and technologies today : JAVA/( Modern JAVA frameworks ) , C/C++ , Python , Ruby/ROR , Perl , Mobile development ...etc , and this make me confus...

Suggested platform / tool / library for rapid prototyping of graphic design toolset

Looking to prototype a piece of software that works on a three dimensional canvas, with various tools and dialogs that manipulate the model. Looking for a platform with the basic set of user interface tools already available - basic model manipulation (selecting, moving, redimensioning) - dialog boxes, forms, modal windows, etc. On ...