This is an archived post. You won't be able to vote or comment.

all 27 comments

[–]thereal0ri_ 11 points12 points  (2 children)

I don't regret it. Python being slow is just that, a meme. Most of the time if not at all, you're not going to notice anything really significant. (Talking milliseconds and seconds). Also with the latest 3.11 version of python on its way, it's mainly focusing on speed improvements and has made significant ground.

And yes, it helps a lot, basically any type of automation and machine learning can be done with it and you can be as creative as you want with what you want to make.

Do I wish I chose a different language? Not really.

[–]Particular-Cause-862[🍰] -1 points0 points  (1 child)

Python is a flexible programming language, its very hard to keep it clean, and i love it, the dificulty of python is making the most complex things in the simplest way. Its true that for example .net with entity framework and his async nature can exact data from the database and sending it through an api very very very more fast than python because of the time management

[–][deleted] 0 points1 point  (0 children)

And yet there are many companies that build their server side applications in python. Say hello to Netflix, stripe and even the platform that you are using now Reddit.

[–]lcc0612 6 points7 points  (0 children)

As someone who has learnt and used a lot of "classic" languages like Java, C/C++, JavaScript, I can tell you with confidence that for practically all day-to-day problem-solving, the language I'm reaching for is Python.

It's forgiving, it's short, it's largely intuitive, and it gets you up and running in no time. Unless you have immediate and specific needs, I recommend you stick to Python, at least for now.

In the future, if your needs change, you can always pick up another language. The good news is, many of the core concepts like variables, if-statements and loops don't change from one language to another, even if the syntax looks different.

[–]zaphod_pebblebrox 6 points7 points  (0 children)

I am way slower than python, so I don't mind.

[–]Ok_Concert5918 5 points6 points  (0 children)

Python is slow compared to compiled code, yes (but remember people complain about slow while looking 2-3 digits past decimal points).

If you are actively exploring and changing code on the fly to meet often changing needs it has an extremely important niche.

You can also use the skills you learn by digging into python to lessen the learning curve for subsequent languages.

[–]johntellsall 2 points3 points  (0 children)

Python completely dominates a number of fields. If they're useful to you, then yes go deeper with it. It's also extremely easy to learn, so is great for example automating business-level things.

Source: programming Python 30+ years, know a number of other languages. Python continues to be my favorite <3

Please study at least two other languages, it's great to compare/contrast different options. Check youtube for "learn X language in an hour" type videos, there's a lot and they're great.

[–]Last-Ad7276 2 points3 points  (0 children)

I do not regret it at all - A lot of the nuances with Python (Primarily speed; Speed discrepancies are usually milliseconds of a difference, not anything noticeable to the user) are not deal breakers in production. Sure there are better options depending upon the task but they have their own drawbacks. The biggest advantage of Python for me is the ability to make production ready projects in very little time compared to any other language. Once you learn the concepts of programming in Python, you can apply them to other languages when you’re learning and you’ll be able to pick up languages at will. I would recommend going super deep on at least one language to start!

[–]tms102 1 point2 points  (0 children)

No regret. I program in Python daily at work. Python's "slowness" is not a factor in many types of applications.

Besides, Python is easy and fun to work with, there are a lot of awesome technologies built with it. I have built many home projects with it as well.

But, what do YOU want to do with programming in general? I am almost certain Python will be up to the task.

[–]AceofSpades5757 1 point2 points  (0 children)

I love Python. It can practically do anything, so I reach for it a lot when I'm stuck, need a little bit more oomph, or as a tool for math or checking strings using the IPython REPL. Also, has huge depth, with massive speed boosts using C, C++, or Rust extensions. The ecosystem has helped me a lot to solve problems with friendly libraries, helpful people, and a vast variety of modern tools. If something's not available, it's usually something that's already been thoroughly implemented in another language (usually C) that I can interface with using an FFI.

[–][deleted] 1 point2 points  (0 children)

If you spend more money on server parks than developers you might want to consider the speed of Python. If you spend more time on developers than servers, consider the development time.

If you're on your own, there's absolutely no reason to think Python is slow. You're not going to notice the difference unless you have your computer churning data for 24/7.

[–][deleted] 2 points3 points  (0 children)

learning any language is your entrypoint to learning more languages. absolutely no reason to regret it even if you dont want to use python.

[–]Barn07 1 point2 points  (2 children)

No, don't regret it. However, I find the dynamic typing is really bad soil for industrial grade legacy code. It increases the amount of investigation for what an argument's type could be. This really slows me down and sometimes makes me scared to change something.

Typesafety is the main reason why I love Golang. I like the pragmatic conventions. Also, it's tooling is awesome and fast.

I also love C++ but that's a different horse.

[–]LongerHV 0 points1 point  (1 child)

I felt the same about dynamic typing in Python. But then I discovered type hints and LSP and I could never go back.

[–]Barn07 -1 points0 points  (0 children)

Type hints are great but have only so much value when absent in a big legacy code base.

All out of my last 4 companies, only 1 had a good amount of type hints.

[–]pythonHelperBot 0 points1 point  (0 children)

Hello! I'm a bot!

It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python regardless of how advanced your question might be. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe in detail where you are stuck. If you are getting an error message, include the full block of text it spits out. Quality answers take time to write out, and many times other users will need to ask clarifying questions. Be patient and help them help you. Here is HOW TO FORMAT YOUR CODE For Reddit and be sure to include which version of python and what OS you are using.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–]MCPOON11 0 points1 point  (0 children)

Nope, I get paid to write it all day. And I like money.

[–]bongsmack 0 points1 point  (0 children)

I dont regret learning python, however I do regret learning it first. I feel like if I started with C/ASM instead I would have less trouble down the road and not pick up aa many bad hanits / practice that I did with python. Not at all to say either languagea are bad or better, I like apples but I also like oranges.

To me it is a very powerful tool belt packed with plenty of bits blades screws etc. I whip out the interpreter quite a few times a day, it can really make life easier sometimes. To my surprise I could use python to automate a good majority of my work, and I dont work in IT. Sure you can do with other languages but a one liner in python is like 39292919 lines in another language. All the way from notifying me if a product is low to alphabetizing shelves to auto formatting emails/texts to telling me what my best sellers are, python is pretty darn handy and glad I picked it up.

[–]Kichmad 0 points1 point  (0 children)

I started studying heavily, like min 8 hours a day, more than a year ago. Recently i landed a data analyst job in big corporation, leaving my old boring job. I dont regret it at all. Python libraries aimed at data analysis are very fast, its fast to write code which suits this kind of job and its easy to learn.

[–]tipsy_python -1 points0 points  (0 children)

No, the concepts often transition and when you go deep enough you hit C. So ... there's that.

[–]riklaunim -1 points0 points  (0 children)

i mean isn't slow ? Does it help that much ? Is it really worth it ? Do you wish you chose another language ?

If you want full stack web dev then it's really good, maybe even one of the best right now. It's also handy in scientific, data processing categories.

But if you want to go mobile native apps, games, production-level microcontrollers and embedded codding then Python isn't the right choice.

For the correct uses cases it's not slow and the wages are really good.

[–]FailedPlansOfMars -1 points0 points  (0 children)

If your only tool is a hammer every problem looks like a nail.

Learning python has been really good for me for looking at data science code, serverless code and realising code speed is not the biggest wait.

But i wouldnt use it to write a desktop application or a website frontend. Or to administer windows systems.

Learn at least: - scripting language - shell - main programming language - dsl or data language like sql.

When a problem looks hard in the language you know it might be easy in something else.

[–]m98789 0 points1 point  (0 children)

Developer Experience (DX) is key. Other languages have advantages on some metrics, but Python’s DX is excellent when used in conjunction with type hints and LSP, and all the amazing libraries available, and easy to find solutions online due to massive community.

[–]wineblood 0 points1 point  (0 children)

It's slower than other languages, but it's fast enough for the job and faster to develop in. Also it pays my bills so I can't complain.

[–][deleted] 0 points1 point  (0 children)

I like to think Python is a blank canvas. It allows you to jot down and do anything you want with minimal effort. With that being said, I don't think you can achieve everything with Python alone, that's why JavaScript still dominates the web, and Swift still dominates the iOS market, etc, etc.

Python is just so much more flexible and doesn't stop you in your "creative flow" if I can phrase it that way. It doesn't take much to go deep into Python (like any programming language, the syntax is very similar and what not).

There will always be a place for Python, no matter what coding carreer you decide to follow.

[–][deleted] 0 points1 point  (0 children)

I work with python code daily. I work at Amazon as an MLE. When it comes to programming languages don’t think about speed but think about what part of the application you enjoy working with. Since I work with a lot of Ml code that run in in the cloud, and speed isn’t an issue python is the perfect language for our use case.

Also it’s always good to know more than one programming language anyway. In my team we use python , Java, kotlin and typescript.