# What programming language should I learn?

**URL:** <https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651>\
**Category:** In My Humble Opinion\
**Created:** [June 22, 2013, 8:55pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651 "2013-06-22T20:55:09Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![OldOlds](https://avatars.discourse-cdn.com/v4/letter/o/a3d4f5/32.png) [@OldOlds](https://boards.straightdope.com/u/OldOlds)\
**Post date:** [January 29, 2025, 10:38pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/21 "2025-01-29T22:38:27Z")

</div>

> [@Spiderman](#):
>
> Doesn’t python crush zombies?

But, if they get bit, do they become zombie pythons?

OK, so can Python do “anything?” Meaning, could I re-make space invaders in python? Or does it have specific things its good for, like batch processing credit card payments and others it’s not, like video games?

Again, my knowledge is Basic (heh), and I’m sort of aware of what C looks like because back in my Amiga days a lot of shareware would be distributed with the C source code and I’d sometimes read it.

---

<div class="post-metadata">

**Author:** ![markn\_1](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@markn\_1](https://boards.straightdope.com/u/markn_1)\
**Post date:** [January 29, 2025, 11:20pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/22 "2025-01-29T23:20:34Z")

</div>

Yes, you could certainly write a Space Invaders game in Python. You’d probably use the PyGame library for the graphics. If you Google for “python space invaders” you will see some examples.

You could also do it in JavaScript. JavaScript would probably be somewhat easier for you to learn if you come from a C background because JavaScript syntax is a little closer to C than Python is.

---

<div class="post-metadata">

**Author:** ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)\
**Post date:** [January 29, 2025, 11:43pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/23 "2025-01-29T23:43:33Z")

</div>

> [@OldOlds](#):
>
> Meaning, could I re-make space invaders in python?

Oh, absolutely. As mentioned above, pygame is the library you’d most likely want for that. I’ve made a few basic games in that just for fun, and it wasn’t too difficult. I made a version of Wordle (before Wordle was a thing – I was basing it off the game show Lingo), as well as a Dragon Warrior 8-bit-style RPG level (not a full game), and a Breakout-type game. Python is very well supported in its libraries. Like I said, my wife does pretty much all her machine learning coding in it (and she uses a smattering of SAS and R, two statistical languages.) Plus you’re able to call stuff in C or C++ from it, if you’d like.

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [January 29, 2025, 11:53pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/24 "2025-01-29T23:53:34Z")

</div>

For the last couple years the programmers-in-the-trenches types seem to be very in love with Rust. Python is now considered an “ancient” language by them.

---

<div class="post-metadata">

**Author:** ![TroutMan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/troutman/32/6721_2.png) [@TroutMan](https://boards.straightdope.com/u/TroutMan)\
**Post date:** [January 30, 2025, 12:36am UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/25 "2025-01-30T00:36:53Z")

</div>

If the OP were looking for their next job, Rust might be better. It’s a little more powerful and performant.

But for hobby programming? Python all the way. There’s way more support, code samples, and libraries out there.

Eta: by OP, I mean @OldOlds who revived this.

---

<div class="post-metadata">

**Author:** ![N9IWP](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/n9iwp/32/3154_2.png) [@N9IWP](https://boards.straightdope.com/u/N9IWP)\
**Post date:** [January 30, 2025, 12:20pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/26 "2025-01-30T12:20:36Z")

</div>

Because I have a potential job\* that uses c# I have been messing with that. No clue how popular it is. If you are interested in writing a game, monogame is a popular framework.

> **[MonoGame | MonoGame](https://monogame.net/)**
>
> One framework for creating powerful cross-platform games

Brian  
\* I had my tech interview NYE. Have not heard anything so don’t have high hopes, but messing with some sort of programming is probably not the worst way to not atrophy too much

---

<div class="post-metadata">

**Author:** ![Voyager](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/voyager/32/133_2.png) [@Voyager](https://boards.straightdope.com/u/Voyager)\
**Post date:** [January 30, 2025, 6:58pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/27 "2025-01-30T18:58:56Z")

</div>

12 years after my previous reply, I also say python. That seemed to be the language most of the grad students I hired before I retired used.  
An indicator: the used bookstore I frequent has lots of Perl books, lots of Ruby books, lots of Javascript books, but no Python books, I conclude either they sell fast or no one wants to get rid of theirs.

---

<div class="post-metadata">

**Author:** ![thelurkinghorror](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@thelurkinghorror](https://boards.straightdope.com/u/thelurkinghorror)\
**Post date:** [January 31, 2025, 5:15pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/28 "2025-01-31T17:15:17Z")

</div>

Yes, Python is the most popular taught in schools these days. It’s easy to access and learn. CS majors will get into C, possibly before or after Python, and certain industries and majors use different ones, e.g. C#, Java, R, MATLAB, SAS.

---

<div class="post-metadata">

**Author:** ![leahcim](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@leahcim](https://boards.straightdope.com/u/leahcim)\
**Post date:** [January 31, 2025, 5:44pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/29 "2025-01-31T17:44:30Z")

</div>

> [@OldOlds](#):
>
> This is to play with as a hobby, so part of the issue is I don’t even know what I want to do with it.

Everyone is going to say “Python” and they are not wrong. It’s the standard “beginner” language these days, and also certain types of professional programmers (e.g. data scientists) make a living using it exclusively.

BUT… I was recently introduced to [https://rooms.xyz/](https://rooms.xyz/) which includes scripting based in the [Lua language](https://www.lua.org/), which is described as “javascript without the javascript weirdness”. It’s less popular that the other suggested languages, but if you’re looking for an environment to play around in and practice some basic programming without an expectation that it will be a career-transferrable skill, that might be a good spot.

---

<div class="post-metadata">

**Author:** ![filmore](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@filmore](https://boards.straightdope.com/u/filmore)\
**Post date:** [January 31, 2025, 5:46pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/30 "2025-01-31T17:46:59Z")

</div>

> [@Saint\_Cad](#):
>
> Eventually I hope to transition to IT security. Does that indicate one language over another?

If you’re wanting to be an IT security admin, then programming language isn’t really all that important. IT admins don’t really write programs. It’s more about configuring systems to have proper security settings and the latest applications.

Admins may use high level scripting languages to help them perform tasks. On Linux systems, they’ll probably use Python and Bash. On Windows, it will probably be Powershell. These scripting languages are used by admins to help them automate tasks, such as updating security keys. But admins aren’t really writing security programs themselves.

If on the other hand you want to do development of security infrastructure, like the SSL library used to secure network communication, then it would be good to know languages like C, C++, and Python. And you’ll likely need to know a lot about Linux, as that’s the operating system typically used by many server systems which run the security infrastructure.

---

<div class="post-metadata">

**Author:** ![scudsucker](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scudsucker/32/14101_2.png) [@scudsucker](https://boards.straightdope.com/u/scudsucker)\
**Post date:** [January 31, 2025, 6:42pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/31 "2025-01-31T18:42:46Z")

</div>

This is beyond late, but Python

It’s really easy to pick up, even though it has a very different paradigm to Java. I am a .NET/Java dev guy and found it very easy to learn.

---

<div class="post-metadata">

**Author:** ![scudsucker](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/scudsucker/32/14101_2.png) [@scudsucker](https://boards.straightdope.com/u/scudsucker)\
**Post date:** [January 31, 2025, 6:49pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/32 "2025-01-31T18:49:37Z")

</div>

> [@leahcim](#):
>
> which includes scripting based in the [Lua language](https://www.lua.org/), which is described as “javascript without the javascript weirdness”.

Ja, Lua is pretty cool too. But is it mainstream enough to get a job? I’m sticking with the devil I know.

---

<div class="post-metadata">

**Author:** ![leahcim](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@leahcim](https://boards.straightdope.com/u/leahcim)\
**Post date:** [January 31, 2025, 8:58pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/33 "2025-01-31T20:58:28Z")

</div>

> [@scudsucker](#):
>
> Ja, Lua is pretty cool too. But is it mainstream enough to get a job?

Almost certainly not (unless you can land a job at, “quirky startup whose product has an embedded scripting language” or “World of Warcraft UI developer”). But OldOlds’ original requirement is “to play with as a hobby” which opens up some more possibilities.

---

<div class="post-metadata">

**Author:** ![thelurkinghorror](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@thelurkinghorror](https://boards.straightdope.com/u/thelurkinghorror)\
**Post date:** [January 31, 2025, 9:09pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/34 "2025-01-31T21:09:39Z")

</div>

A variant of Lua is used in Roblox, which is super mainstream, but maybe of limited lucrativeness. Other video games have used it too. So it’s not exactly the first one you should learn, but also not useless.

---

<div class="post-metadata">

**Author:** ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)\
**Post date:** [January 31, 2025, 9:56pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/35 "2025-01-31T21:56:35Z")

</div>

Pretty sure Adobe Lightroom and maybe even Photoshop use it to build plug-ins.

---

<div class="post-metadata">

**Author:** ![markn\_1](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@markn\_1](https://boards.straightdope.com/u/markn_1)\
**Post date:** [January 31, 2025, 10:05pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/36 "2025-01-31T22:05:43Z")

</div>

Wikipedia has a list of applications that use Lua. The non-video-game section alone has about 100 entries, but quite a few of them are pretty niche applications.

> **[List of applications using Lua](https://en.wikipedia.org/wiki/List_of_applications_using_Lua)**
>
> The Lua programming language is a lightweight multi-paradigm language designed primarily for embedded systems and clients.
> This is a list of applications which use Lua for the purpose of extensibility.
> In video game development, Lua is widely used as a scripting language by game programmers, perhaps due to its perceived easiness to embed, fast execution, and short learning curve.
> In 2003, a poll conducted by GameDev.net showed Lua as the most popular scripting language for game programming. O...

---

<div class="post-metadata">

**Author:** ![N9IWP](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/n9iwp/32/3154_2.png) [@N9IWP](https://boards.straightdope.com/u/N9IWP)\
**Post date:** [January 31, 2025, 10:16pm UTC](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651/37 "2025-01-31T22:16:47Z")

</div>

Fun LOGO tidbit. A dorm-mate was taking a Mechanical Engineering class, and the assignment was to write a program to get a specific gear ratio. IIRC there were constraints so it could not always be done with only two gears.  
I think the algorithm was something like find a fraction close to the desired ratio, then do prime factorization of the numerator and denominator .  
The students could write it in any programming language and computer - he wrote his in LOGO on a commodore 64

Brian

[Previous page](https://boards.straightdope.com/t/what-programming-language-should-i-learn/661651.md?page=1)
