programming-languages

Doesn't the ability to cast defeat the purpose of typed variables?

So, I'm working under the assumption that we have typed languages because we make a lot of mistakes... so typing is one way to have the compiler do a lot of checks for us and help us out a bit (please let me know if it is my assumptions that's incorrect). However, if we introduce casting to a typed language, don't we re-introduce most t...

Game project development

Hi, this is my first post here. I am 22 years old from Spain and I have finished university where I studied I.T. A group of friends and I want to develop a game which will consist of a 3D world in which simple 3D shapes interact with each other where "real" like physics is involved. I have no experience in the programming of video games,...

Simple but powerful programming language for a hobby software project

Long time back, I used to do some home projects in Basic. It was fun and I could get things done without reading tons of documentation (or whatever documentation was available at that time). I guess it is the not the same anymore. Nowadays, programming languages comes with a heavy baggage of framework, environment setup etc. Even for w...

Equivalent of Class Loaders in .NET

Does anyone know if it possible to define the equivalent of a "java custom class loader" in .NET? To give a little background: I am in the process of developing a new programing language that targets the CLR, called "Liberty". One of the features of the language is its ability to define "type constructors", which are methods that are e...

What is your favorite esoteric programming language?

In the spirit of "fun polls"... What is your favorite esoteric programming language? Guidelines: One language per response, upvote to echo others' responses If you can, describe what makes it your favorite Provide a code sample (if practical) See Also: Is it worth it to learn an esoteric programming language? What is the stranges...

What is a trampoline function?

During recent discussions at work, someone referred to a trampoline function. I have read the description at Wikipedia. It is enough to give a general idea of the functionality, but I would like something a bit more concrete. Do you have a simple snippet of code that would illustrate a trampoline? ...

What language is best for a beginner to learn?

What do you guys think would be the best language for someone who is new to programming or has little programming experience to learn? ...

What is a good embeddable language I can use for scripting inside my software?

What mature embeddable languages are available (or reversed, which popular languages have as a stated feature the ability to be embedded in other software) and more importantly What embeddable languages have a really good tutorial on embedding their language and extending it for your specific software Bonus points: Embeddable la...

Can you monkey patch methods on core types in python?

Ruby can add methods to the Number class and other core types to get effects like: 1.should_equal(1) But it seems like python cannot do this. Is this true? And if so, why? Does it have something to do with the fact that type can't be modified? Update: Rather than talking about different definitions of monkey patching, I would like t...

What are the utilization rates for each of the major languages and platforms?

I'm interested in knowing how many developers use each of the major languages/platforms, but I haven't been able to find any good recent surveys. If you know of any good data, please provide a link along with a brief synopsis of the survey's methodology (who they surveyed and how etc.) and its conclusions (16% of developers use Java, 12...

Is it possible to teach several languages/paradigms at once?

If you had the opportunity to teach new students how to program for a year, what would you teach? I've always found that a multi-paradigm approach to teaching programming works best, but is it too much for first-year students? Is it better for a student to be great at one or good at 3-5? At the moment I am looking to help tutor students...

What is the technical term for C# or Java type languages?

This is probably a very simple question, but what is the technical term for this class of language? They use an "intermediate" assembly type language which is sent through the JVM or CLR. They both are object oriented and they both depend on an intermediary such as the Java Virtual Machine or the Common Language Runtime to compile in...

Most interesting non-mainstream language?

I'm interested in compilers, interpreters and languages. What is the most interesting, but forgotten or unknown, language you know about? And more importantly, why? I'm interested both in compiled, interpreted and VM languages, but not esoteric languages like Whitespace or BF. Open source would be a plus, of course, since I plan to st...

What exactly is Intentional Programming

On my reading spree, I stumbled upon something called Intentional Programming. I understood it somewhat, but I not fully. If anyone can explain it in better detail, please do. Is it being used in any real application? ...

Why did you start using Python?

Why did you start using Python? I was using Perl for my programming needs, and was often frustrated. I hated reading other people's Perl code and basically would often result to re-writting entire functions rather than trying to debug someone else's code. Also, coming back to code I'd written months before was a headache. (admittidl...

What are the developments going on in all languages in parallel programming area

As we are nearing the 8-Core and 16-Core CPUs, what are the various advances going on in parallel programming area in all the languages? I am aware of a parallel task library in .Net, and also of a language Erlang which I think is inherently parallel. But what is the state of various other mainstream languages. ...

Is it wise to buy books on programming languages?

(I'm starting this stack on the way to the bookstore...) Programming languages seem to change often. In this case, is it wise to buy a book on a programming language? After all, the book might be useless (even as a reference) in a few year's time. Duplicate question: Are programming books a necessity nowadays? ...

Favorite (non-esoteric) Programming Language

What is your favorite programming language? This is not the one you use at work, but the one you tend to use for personal projects... the one that you first go to because it most matches your way of thinking / programming style, etc... List the reasons for it, too. ...

Whats a good language to learn to program Windows applications?

Currently, Im only proficient in php, and would like to learn something new. The only thing I can think of, is the obvious C# and .NET, and I just wanted to know if there are any alternatives. Can it be done in Python? ...

What is the exact problem with multiple inheritance?

I can see people asking all the time whether multiple inheritance should be included into the next version of C# or Java. C++ folks, who are fortunate enough to have this ability, say that this is like giving someone a rope to eventually hang themselves. What’s the matter with multiple inheritance? Are there any concrete samples? ...