Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
python is great for simple, one-file scripts. but as soon as you're doing something more complex, all its bad design decisions and architectural flaws simply dwarf the few elegant properties.
however, it's still a better love story than twilight. -
iceb11752y@crisz I haven't been using pycharm because we have to do everything in a remote box and pycharm is quite slow with our setup.
So vscode + pylance + mypy is what I have
I'm not sure how pycharm works. If it uses mypy to check things like this. It's still not 100% since I've seen mypy miss things before. -
retoor120692y@tosensei if you're doing something complex python always have a FREE lib for it. Python is great for big projects; Youtube, dropbox, instagram..
About renaming: if you use pycharm you can do right click->refactor. Also unit tests should cover this -
iceb11752y@retoor That's the thing. If I was doing c# or Java or another compiles language. Doing rename is safe.
Even if it gets it wrong. I have confidence that if it messes up. It's still safe since nothing will run
With python. Sure you can have unit test. But how can you be sure? there's always a small chance that it'll mess something up -
hjk10157312y@iceb the JetBrains IDE's have quite nice refactoring tools that help with renaming etc.
The stuff used to suck big time for remote editing but now is quite all right. -
@retoor and if you use two or more libs, you spend way more time trying to fix their incompatibilities than you spend on writing code...
and: having a tool to prevent stuff breaking (smart IDE) is good, but not as good as stuff being _unable_ to break (by strict typing etc.) -
Jedidja10142y@iceb If you can access the box remotely you could work from your machine but with the code still on the remote box. If thats worth the hassle
I've used that one time to have my project only on a pi but the IDE on my PC -
While me too would definitely use PyCharm for Python no matter what, reliably renaming things seriously is just a matter of knowing how to use grep and find. A proper IDE makes it more convenient. But there is absolutely no reason for refactoring anxiety without it either.
-
@retoor i was ferwiting a tool i made in python a while ago with rust.
Writing it in python took me a few days.
Writing it in rust took me a few weeks. However the results speak for themselves.
Guess what is more stable, runs better, looks better and is more efficient lol 🗿
(This comparison might be a bit unfair, but good products are rarely written in python, prototypes are) -
retoor120692y@thebiochemic @retoor interny shitp more mosely out to making the pricks that contain the socomned to supposed to be they weren't fucking retarded up because of these people live
The said and you people will absoriesment place the bet about suy but gime again like of does conf -
iceb11752y@TheCommoner282 It's not though with compiled languages though for two reasons
1. Modern IDE can pick up all references to it 90% of the time. And do the rename across projects etc.
2. If you mess up, your code won't compile. Which is much better than having code going live and crash -
crisz82362y@tosensei I agree. And I mean, I love Python. But I really can't understand why they built fucking NEURAL NETWORKS with Python. Do we realize how complex neural networks are? Do we realize how how, after hours and hours of computations, your program can fucking crash just because you forgot to call .toNumpy() in the parameter of a function? That's crazy
Related Rants
python + rename == nightmare.
I cannot be fully confident every rename is safe. Because there's no compiler check to tell me o.o
rant
rename
python