6
iceb
2y

python + rename == nightmare.

I cannot be fully confident every rename is safe. Because there's no compiler check to tell me o.o

Comments
  • 0
    Same for Elixir
  • 1
    @aviophile another language to avoid lol
  • 5
    pycharm?
  • 5
    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.
  • 0
    @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.
  • 0
    @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
  • 2
    @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
  • 1
    @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.
  • 3
    @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.)
  • 1
    @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
  • 1
    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.
  • 1
    @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)
  • -1
    @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
  • 1
    @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
  • 0
    @TheCommoner282 ah gotcha gotcha
  • 0
    @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
  • 0
    @AndroidJester so it's basically python but rewritten in Rust
Add Comment