Top "Language-comparisons" questions

Questions comparing two or more programming or markup languages against each other.

Is there a Python equivalent to Ruby's string interpolation?

Ruby example: name = "Spongebob Squarepants" puts "Who lives in a Pineapple under the sea? \n#{name}." The successful Python string …

python string-interpolation language-comparisons
What is C# equivalent of <map> in C++?

I have defined a class myComplex. I need to map it to integers. In C++ I would have created a …

c# c++ dictionary visual-c++ language-comparisons
Scala vs. Groovy vs. Clojure

Can someone please explain the major differences between Scala, Groovy and Clojure. I know each of these compiles to run …

scala groovy clojure language-comparisons
Python: Assign Value if None Exists

I am a RoR programmer new to Python. I am trying to find the syntax that will allow me to …

python python-2.7 variable-assignment language-comparisons
XSLT equivalent for JSON

Is there an XSLT equivalent for JSON? Something to allow me to do transformations on JSON like XSLT does to …

json xslt equivalent language-comparisons
equivalent of vbCrLf in c#

I have a to do this: AccountList.Split(vbCrLf) In c# AccountList is a string. How can i do? thanks

c# list split language-comparisons
is there an virtual environment for node.js?

I've searched the wiki modules page, but I can't find anything similar to virtualenv (python) or rvm. Anyone here separates …

node.js virtualenv language-comparisons
What are the differences between Perl, Python, AWK and sed?

just want to know what are the main differences among them? and the power of each language (where it's better …

python perl sed awk language-comparisons
C# vs Java Enum (for those new to C#)

I've been programming in Java for a while and just got thrown onto a project that's written entirely in C#. …

c# java enums language-comparisons
Initialize dictionary at declaration using PowerShell

Given this powershell code: $drivers = New-Object 'System.Collections.Generic.Dictionary[String,String]' $drivers.Add("nitrous","vx") $drivers.Add("directx","…

c# powershell dictionary initialization language-comparisons