r/PythonLearning • u/Big-Ad-2118 • May 23 '25
i realized how inefficient my code in python until it was refactored lol
i have a very long and messy python code because every time that i study programming all my learnings will be inserted int any part of a single file like an "all in one" type of code, i cant ignore that fact that its soo long and inefficient, the logics are just randomize and it doesnt have any goal that throwing every learning in one part of my code and i just used blackbox AI to refactor it for me and i was shocked on my simple it was so far it took my minutes
4
u/the_bups May 23 '25
The issue of you being inefficient will remain if you continue to use AI tools to refactor for you.
I recommend that you investigate the differences and make mental notes of the changes you enjoyed such that next time you code you use it from the get-go. This way you will be an effective developer. :)
3
u/JaleyHoelOsment May 23 '25
the bot refactored it, not you. did you check if it still works?
you should learn how to refactor though!
1
u/fried_egg_jellyfishh May 23 '25
> Line 635: print("Remember: This code is intentionally terrible for educational purposes!")
Quit your bullshit brother. No one using stupid wrapper.
1
u/ConquistadorCan May 23 '25
It is a very normal process. Every programmer feels like this. You will refactor that refactored code in the future. Great job. Keep work!
3
May 23 '25
[removed] — view removed comment
2
u/twoberriesonejourney May 23 '25
As someone just getting started, what does refactoring mean in your context? I know sometimes if I rename something pycharm asks if I want to refractor and it will sift through the scripts to update the names. However, that doesn't sound like this.
1
u/snmnky9490 May 24 '25
Unfortunately it's just a shill account for whatever bullshit "black box AI" is
9
u/ReallyLargeHamster May 23 '25 edited May 23 '25
Another of these... This time the "I use Blackbox AI" snuck up on me like shittymorph.
(They even have three different posts about microwaving milk that awkwardly shoehorn in a Blackbox AI reference.)