73
votes
19answers
34k views

Should I learn Ruby or Python? [closed]

I'm a C(++)/C# programmer and I would like to learn a scripting language to create small tools (text processing, build scripts, a little web development, etc). I would like to learn either Ruby or ...
64
votes
13answers
30k views

Which game scripting language is better to use: Lua or Python? [closed]

I have to program a game engine starting very soon for a 3rd year Games technology project. As a part of our project we have to integrate a scripting language for scripting our NPCs and other elements ...
29
votes
7answers
10k views

Compiled vs. Interpreted Languages

I'm trying to get a better understanding of the difference. I've found a lot of explanations online, but they tend towards the abstract differences rather than the practical implications. Most of my ...
29
votes
8answers
8k views

Python for a Perl programmer

I am an experienced Perl developer with some degree of experience and/or familiarity with other languages (working experience with C/C++, school experience with Java and Scheme, and passing ...
28
votes
12answers
2k views

Programming in Python vs. programming in Java

I've been writing Java for the last couple of years , and now I've started to write in python (in addition). The problem is that when I look at my Python code it looks like someone tried to hammer ...
27
votes
10answers
3k views

What statically typed languages are similar to Python?

Python is the nicest language I currently know of, but static typing is a big advantage due to auto-completion (although there is limited support for dynamic languages, it is nothing compared to that ...
25
votes
6answers
10k views
24
votes
12answers
2k views

Which programming language or a library can process Infinite Series?

Which programming language or a library is able to process infinite series (like geometric or harmonic)? It perhaps must have a database of some well-known series and automatically give proper values ...
24
votes
6answers
986 views

why does python `any` return a bool instead of the value

and and or return the last element they evaluated, but why doesn't Python's built-in function any? I mean it's pretty easy to implement oneself like this, but I'm still left wondering why. def ...
21
votes
8answers
3k views

Why are Python Programs often slower than the Equivalent Program Written in C or C++?

Why does Python seem slower, on average, than C/C++? I learned Python as my first programming language, but I've only just started with C and already I feel I can see a clear difference.
21
votes
14answers
4k views

Simplest language to make an interpreter for

I want to make an interpreter of a very simple language for practice. When I say simple I don't mean easy to use, I mean simple. Brainf**k is a good example of a language I want. I already have made a ...
20
votes
13answers
8k views

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 ...
20
votes
6answers
521 views

Is python exception handling more efficient than PHP and/or other languages?

I have it drilled into my head that (at least in PHP) it is badbadmojo to use try... catch blocks for flow control. What I've learned is to use them only to handle unexpected errors, not determine ...
19
votes
24answers
23k views

After C++ - Python or Java? [closed]

I'm fast approaching the point in my coding where I would like to quickly write object oriented code in languages other than C++ for a variety of reasons. After a lot of research, my choices have ...
19
votes
17answers
3k views

What should a software engineer (web) start by learning - Erlang, Haskell, Python, C++, F# [closed]

What would you suggest what will be the next choice of language that could benefit an engineer in his career utmost? I am a Software Engineer and almost everything I engineered is for WWW. I have ...
19
votes
5answers
10k views

JavaScript parser in Python

There is a JavaScript parser at least in C and Java (Mozilla), in JavaScript (Mozilla again) and Ruby. Is there any currently out there for Python? I don't need a JavaScript interpreter, per se, just ...
18
votes
4answers
594 views

Implementation of functions with very basic scripting

I've been playing around with python for some time and decided to better my generalized understanding of programming languages by writing a custom script handler in python. I have so far successfully ...
16
votes
13answers
1k views

What Python features will excite the interest of a C# developer?

For someone who’s been happily programming in C# for quite some time now and planning to learn a new language I find the Python community more closely knit than many others. Personally dynamic ...
15
votes
9answers
1k views

Python generators in various languages [closed]

How do you emulate Python style generators in your favorite language? I found this one in Scheme. It must be interesting to see other implementations, especially in those languages that don't have ...
15
votes
4answers
300 views

Design tips for a program to be run in 25 years [closed]

If creating an application (that does mostly data processing) that needs to be run now and maybe (maybe not) 10 or 25 years later, what design tips are out there for such applications? The general ...
14
votes
3answers
214 views

design of python: why is assert a statement and not a function?

In Python, assert is a statement, and not a function. Was this a deliberate decision? Are there any advantages to having assert be a statement (and reserved word) instead of a function? According to ...
13
votes
12answers
1k views

Python 3.0 and language evolution

Python 3.0 breaks backwards compatibility with previous versions and splits the language into two paths (at least temporarily). Do you know of any other language that went through such a major design ...
12
votes
11answers
2k views

Is Python a beginner language or is it robust? [closed]

I am already working on some software in Python but I'm having one of those days where I step back and reflect just to make sure I'm not spinning my wheels. I know that Twitter launched with RoR ...
12
votes
13answers
608 views

Learning to program, is python right for me?

I thought I'd start learning a real programming language from scratch. I can manage to code in C++, but I haven't been brushing up on my C++ skills at all. This time I'm teaching myself. And I've ...
12
votes
6answers
4k views

Why are dates calculated from January 1st, 1970?

Is there any reason behind using date(January 1st, 1970) as standard for time manipulation? I have seen this standard in Java as well as in Python. These two languages I am aware of. Is other popular ...
12
votes
3answers
3k views

Is Python interpreted or compiled or both?

From my understanding : Interpreted : A high level language run and executed by an Interpreter(a program which converts the high-level language to machine code and then executing) on the go; It ...
11
votes
19answers
2k views

Game Development, the language for beginners?

I have been searching through the website looking for the best language for beginner game development. Many people say a C based language, others suggest Python. Normally I would just pick one, but ...
11
votes
5answers
3k views

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?
11
votes
3answers
649 views

Python equivialent of C programming techniques (while loops)

In the C programming language, I often have done the following: while ((c = getch()) != EOF) { /* do something with c */ } In Python, I have not found anything similar, since I am not allowed to ...
0
votes
1answer
15 views

threading.Timer()

i have to write a program in network course that is something like selective repeat but a need a timer. after search in google i found that threading.Timer can help me, i wrote a simple program just ...

1 2 3 4 5 7
15 30 50 per page