language-comparisons

bash equivalent of python pass

Is there a bash equivalent to the python pass statement? Thanks. ...

Exhaustive (or even just large) list of languages/stacks used for popular sites?

As a result of a conversation with a colleague today, I've been searching (unsuccessfully) for a large'ish list of what technology stacks are being used popular websites and standalone applications today. We're aware of the big ones like Facebook (php/ ), Twitter (scala/cassandra), Youtube (python/?), Digg (php/cassandra), stackoverflow ...

Modern alternatives to Java

I have been a Java developer for 14 years and have written an enterprise-level (~500 kloc) Swing application that uses most of the standard library APIs. Recently, I have become disappointed with the progress that the language has made to "modernize" itself, and am looking for an alternative for ongoing development. I have considered mo...

How to detect if 2 news articles have the same topic? (Python language-comparison)

I'm looking for ideas on recommended approach. I'm trying to scrape some headlines and body text from articles for a few specific sites, similar to what Google does with Google News. The problem is across different sites, they may have articles on the same exact subject, worded slightly differently. Can anyone point to me what I need ...

Python features

Is there any article/paper on what features the Python language has to offer? Why should one go with Python instead of any other language? What are the strong and the weak points of Python? ...

Passing an array for setting variable

Hi, I often see this idiom when reading php code: public function __construct($config) { if (array_key_exists('options', $config)) { ... } if (array_key_exists('driver_options', $config)) { ... } } Here I am concern with the way the parameter is used. If I were in lisp I would do: (defun ct (&key optio...

What types of projects is Mathematica good for?

I once saw a dismal comparison of Matlab vs Mathematica. As you can see Matlab achieves the same with very little code. It looks highly efficient to an untrained eye, so I ask, what types of projects is Mathematica good for? Are there any scientific research problems that are easier solved with it? or is Matlab better for almost every co...

Bash scripting "common gotchas" for Python/Perl/Ruby programmers

Background: I grew up on using Perl/Python/Ruby for sysadmin-type tasks and shell scripting. I always avoided Bash scripting whenever I needed anything programmer-ish, like functions, looping or control structures. Back then, I could pick my favorite tool for whatever the job. Problem: Now I am working in a situation where the preferr...

Verbally format a number in Python

How do pythonistas print a number as words, like the equivalent of the Common Lisp code: [3]> (format t "~r" 1e25) nine septillion, nine hundred and ninety-nine sextillion, nine hundred and ninety-nine quintillion, seven hundred and seventy-eight quadrillion, one hundred and ninety-six trillion, three hundred and eight billion, three hu...

Iterate a format string over a list

In Lisp, you can have something like this: (setf my-stuff '(1 2 "Foo" 34 42 "Ni" 12 14 "Blue")) (format t "~{~d ~r ~s~%~}" my-stuff) What would be the most Pythonic way to iterate over that same list? The first thing that comes to mind is: mystuff = [1, 2, "Foo", 34, 42, "Ni", 12, 14, "Blue"] for x in xrange(0, len(mystuff)-1, 3): ...

Why do Java programmers love Scala and shy away from Clojure?

I've just started to learn Clojure by reading some tutorials and watching every presentation by Rich Hickey, and I'm totally impressed by the language... so different from any C-like language (actually any language I've seen so far), yet so elegant... So I started to wonder... why is everyone so thrilled by Scala but not by Clojure? Is i...

Comparison of Groovy and Scala against Java

I have recently come across the languages Groovy and Scala which are built on the JVM. But I dont know much beyond that. Are those languages going to overtake Java at some point? Do these languages serve for any special purpose? Which of them is faster and more powerful? For what type of applications should I choose Groovy/Scala? Will it...

what is difference between C# and vb.net

Possible Duplicate: What are the most important functional differences between C# and VB.NET? What are the basic difference between c# and VB.net? ...

Design Patterns, A New Criterion for Comparing Languages?

I've been reading through Code Complete, and I just got to the part about Design Patterns. I thought I'd see what questions were popular and tagged design-patterns. I was reading this question, and I agree with what seems to be the consensus there, that Design Patterns exist to address the limits of a paradigm (Functional, Object-Oriente...

Mono c# vs c++ in opengl game development?

Which of these languages is better for opengl game with primary platform linux? I would like if you compared them in performance and libraries support. ...