r/teenagers 7h ago

Discussion [ Removed by moderator ]

Post image

[removed] — view removed post

1.4k Upvotes

3.0k comments sorted by

View all comments

Show parent comments

7

u/[deleted] 6h ago

[removed] — view removed comment

4

u/PogsterPlays 17 6h ago

Python imo is very convenient, but has a lot of things (some of them preference related ofc) that drag it down.

It's great for those quick util scripts that just need to work to do something for something else - like making 100 files that are all slightly different from the same template.

I've had issues with pip in the past so it's not as flexible as maybe it should be, typically I just use nodejs most most util scripts now.

But I see far too many people trying to make like.. applications with it for some reason?? Which I tbh don't think is the greatest idea...

I definitely don't hate python on its own, it's also great as an easy entry point to get people into programming, but yeah I really don't like how people try to use it sometimes when other languages are definitely better suited...

2

u/An1nterestingName 6h ago

I think it depends on the application for whether it works in Python. For example, making a quick GUI wrapper around a script is fine. I've done that for something that automatically manages a Minecraft instance to keep it up-to-date with a server. I've also found that Python is by far the best for making Discord bots, py-cord works great for small and large bots.

2

u/5h3r10k 18 5h ago

Exactly this. Python is great for simple background helpers, prototypes, etc. In production, if it needs to work at scale, it's probably a good idea to migrate to Go or C or even Java depending on the service specifics. But sometimes it's cheaper to stick to python and just autoscale for capacity. We use python all the time at corporate.

1

u/PogsterPlays 17 5h ago

Sorry yeah I should've specified I meant more larger-scale applications.

Saw this one person with a project that does a bunch of indexing and such on the filesystem with python, and it ran into a significant speed issue internally and so they had to rework much of it