programming-languages

How to get started with Visual Basic for Applications?

Hello Everybody, I'm a little intimidated by the wealth of knowledge displayed on the front page of this website, but it gives me hope that I'm talking to the right people. I had a pretty rotten experience with one of our programmers today, and I'm hoping that you might be able to offer some advice. I'm an office admin (primarily cler...

when is it inappropriate to reuse program code?

I cant find a good answer for this question! Thanks in advance! ...

First programming language to be taught - C or Python?

I know that there is a long debate regarding this matter. I also understand that this is strictly not a programming question. But I am asking here as this platform contains wide range of experts from different realms. When we got admitted in a Computer Science and Engineering(CSE) course in university, we were first taught C. The cours...

Which languages should be teached in schools?

Hi everyone, One of my old teacher recently contacted me because he wants to revamp that school software development program. He told me that he thought of C# and Java as programming languages, and ASP.net and PHP for web technologies. Since there are many employers out here, i'm asking: In 2011+, which technologies will you want your ro...

What's the most complex/powerful code you can write that's valid in a maximum number of languages?

What's the most complex/powerful code you can write that's valid in a maximum number of languages? So, for example, the following code is valid in both PHP and JavaScript. function foo($bar) { $var = 0; for($i=0;$i<100;$i++) { $var += ($bar + 2)/(1+$i); } return $var; } Why is this a useful challenge? I think its a useful way to t...

Design pattern as (missing) language feature

Sometimes people refer to design patterns as missing programming language features. To avoid the debate about what is a design pattern, let's say we only consider the original GoF patterns. For instance, the singleton pattern vanishes in Scala which supports singleton objects using the keyword object. There are few resources around abo...

How to understand scripting language like Ruby from a C/C++/VBNET programmer perspective ?

I have been C/C++/VBNET programmer for a long time. Now Ruby advanced concept is attracting me. So I decided to learn how to use it.But the "Behavior" of Ruby used to confused me. I usually feel like can't completely control my Ruby program. Can you help me get clearly about this ? (Maybe some of your favorite guide about "Ideas" and ...

What languages/internet protocols for controlling robots/electronics remotely?

I wonder what languages are used in robots and electronics. Is it low level languages like Java, C, C++ etc? And if these robots and electronics could be controlled from another place, what protocol is used? It couldn't be HTTP Rest, could it? :) ...

List of sites which pay for articles.

There are nice sites where to get information about javascript, html, css. I can think of some: http:// www.alistapart.com http:// www.smashingmagazine.com http:// www.sitepoint.com If you write an article for them (sharing some of your developer know-how) you are going to get paid. Can somebody add up similar sites ? I would li...

Why are polymorphic messages so much more powerful in practice than the combination of unification and backtracking?

One way of looking at the history of programming language design is that there was a revolution with the introduction of the subroutine. Twenty or thirty years later, two refinements of the subroutine call were seriously considered: Polymorphic messages Unification and backtracking I've just been programming in Prolog after a 20 year...

Suggestions for next language to learn

I figured its time to start learning another language, but I can't decide between Ruby and Python (I'd like to start using Rails or Django). Which one do you think would be both most helpful and fun to learn, and if possible, could you give me some sites/links that would help me get started? If you think there's another language that wo...

BitC programming language, what's your stance about it?

What is your opinion about BitC as programming language? Seems like a promising solution to "high level language with excellent performance that is pleasant to use" category. What to you like and dislike about it? Do you think it has a chance to find its niche, or it is just yet another obscure programming language noone cares about. ...

Avoiding Multiple If's in c# - Best practise

Scenario: Lets say we got to check for address lines. which includes addressline1, addressline2,Town,Country,Postcode If any one of the property is entered, all other fields are mandatory. If none of it is entered, the validation doesnt have to get trigged. To achieve it, I ended up with two lines of If statement. Like if(AddressLine1...

How do you describe new to a new CS student?

In OOP, there are entities (e.g. Person) which has attributes (e.g. name, address, etc) and it has methods. How do you describe new? Is it a method or just special token to bring an abstract entity to real one? ...

What are the conceptual changes that came from C to .net

5-6 years ago when i was in school, I had C as my programming language. And at that time, I read about struct and little bit about Classes. At that time I had a concept that under struct we cannot declare functions and other such things. Structure only allows value types and themself are also value types. And I was living under that s...

Knowledge sharing websites

Hi, I am looking for some knowledge sharing websites, related to sharing the knowledge on web programming languages/tools, like .NET, C#, Javascript, JQuery, Sliverlight, etc. Currently, i am using Twitter, Google Reader, LinkedIn for my knowledge up gradation. Please let me know, any other websites helpful for my knowledge upgradation....

What are the programming languages for GPU

I read an article stating that GPU are the future of supercomputing. I would like to know what are the programming languages used for programming on GPU's ...

Distributing classes or namespaces

Hello, I would have a question related rather to process of team programming than programming itselft. If you are a programmer working in a team and you are responsible for particular part of the software - you deliver namespace or classes? I mean, in reality, I think that programmer creates more than one class so creating a namespace to...

What second language to use besides Scala for LowLevel?

Hi I am absolutely happy with Scala and just love it :) But sometimes I really want to go a bit more "low level", without a JVM and using "cool" CPU-Features like SSE etc. So what would be a good second language besides Scala? It should be: Compiled to machine code Easy usage of C-libraries Possible to program very close to the har...

Book for type systems

Is there any book which explains type systems in programming languages? If it has mathematical account of type systems,that is much preferred. ...