r/programminghelp • • Aug 06 '21

Other What's the best programming language?

I'll try to be a bit more specific, since I'm pretty sure many feel there isn't a best programming language since they're all meant for different things. By best, I mean a programming language that is good for automating tedious tasks such as sorting google/computer files. A language that will perform monotonous, repetitive and boring tasks that usually take a long time instantly.

I'm pretty sure most languages can do these things, but which one is best for it in your experiences?

5 Upvotes

6 comments sorted by

7

u/jddddddddddd Aug 06 '21

Python. There's even a book on it titled Automate the Boring Stuff with Python: Practical Programming for Total Beginners

2

u/PM_ME_MII Aug 06 '21

It depends on your application. Want to do web development? JavaScript is one good option. Want to work on Linux? C/ C++. Just want something easy and lightweight to make some web crawlers or other easy beginning applications? Python is one of the easiest. Any language can do anything, but each one is better at some things and worse at others, and the amount of documentation about each application of each language will vary.

3

u/skellious Aug 06 '21

Want to work on Linux? C/ C++.

Rust has entered the chat.

2

u/ConstructedNewt MOD Aug 06 '21

I'll chip in with go. It's way faster than python (runtime) is pretty easy to pick up as a language. And far easier to program in than C++ (especially wrt. dependencies), but it's (for many tasks) just a bit faster than java (at least on Linux, depending on program architecture and java implementation)

Python is relatively slow (but many libraries use C compatibility; so are fast), java is pretty fast, but for programs that needs to start to do a simple small thing these are both really slow. (They are interpreted - requires a long time to start up). Javascript is the same, but the regex implemention for v8 is super fast, so if you are designing a ui-thing with a lot of regex interaction. That might be a good match.

Go's runtime is fast to start up, so for binaries that need to be really responsive its a good match, I would say. (Along with rust, c/c++, which are faster -- and maybe c#(native) then swift, dart, kotlin-native and java using graalvm of you are feeling daunty)

1

u/SaylorMan1496 Aug 07 '21

There’s a couple people here saying no to python because it’s slow, i think it’s a mute point because it’s fast enough. For what you are looking for, automating things, python is great, you can webscrape easily, you can deal with files easily, there is a lot of things you can do with python and it does it well enough.

And you don’t get bogged down in boiler plate code in other languages

0

u/[deleted] Aug 06 '21

[deleted]

1

u/SadLow2 Aug 14 '21

Automation doesn't need to be extremely fast, just fast. If we're talking about algorithms, c++ is better, but when it comes to moving some files around and running some commands. perceivably instant is more than good enough.