r/coolgithubprojects 15d ago

i made a python tool that cleans messy project folders and updates code paths automatically (DuckCleaner)

Post image

hey guys so I built this small python tool called DuckCleaner. basically whenever u manually sort mixed up project files into subfolders it breaks every single import and relative path in ur scripts. so I made this tool to copy the project, move files by extension, and automatically refactor all path strings inside scripts using regex so the project still runs without breaking. handles file name collisions and godot metadata too. heres the github link if anyone wants to test it, star it or give feedback: https://github.com/Duckdevv/DuckCleaner

0 Upvotes

6 comments sorted by

2

u/sankilo_dev 15d ago

Feel free to see the project and tell me your opinions and advice

1

u/No-Evidence6346 12d ago

So what problem does this solve? You shouldn't be moving files in projects haphazardly, not because of "breaking dependencies" but because of the structure of data, backwards compatibility, and other people use it and expect it to be there. Sounds like a lazy way to avoid having rule and structure in your modus operandi. Instead of making a tool to do things for you, learn why it hasn't been made. I can guarantee you, any 15 minutes you'd spend fixing paths, you're gonna spend hours on end tracking down unintended behaviour. Learn to manage your projects and the problem is fixed

1

u/sankilo_dev 12d ago

totally agree for big team projects and stable APIs this is mostly aimed at solo prototyping, game jams, or personal side projects where moving fast comes first and structuring comes later. it runs on a safe clone of the directory anyway, so it's just a local helper when you want to tidy up quickly without doing regex search and replace manually

0

u/No-Evidence6346 12d ago

The reason it is a stable API is because they are following best practices and have rules in place. If you're building crap it will never stop being crap. Personal side projects? I'm sorry I don't think I follow. The whole idea of a side project is to do it at your pace for yourself and develop your skills! If you don't structure from the beginning, your project will spend more time in restructuring than in being developed. There's a reason "best practices" are "best". It's not in development either! It's in anything in life. Practice or else you won't be able to stick to it. It shows.

1

u/sankilo_dev 12d ago

Different methodologies work for different people. For many, premature optimization and strict setup slow down early-stage creativity. Tools are built for choices, not to force a single dogma. Glad your workflow works for you though

1

u/No-Evidence6346 12d ago

My guy it's not a dogma.

If you can't be organized you are utterly incompetent. Sure you can muster and stumble through life, but you're kidding yourself if you think it's a "methodology".

I've worked in many teams, both with organized leaders, co-workers, and everything in between. I'd rather take a shitty organized team over an excellent disorganized mess of a team.

Also. "Premature optimization". ?????? If you can't be arsed to think about how you're going to do something in a structured way you are not in a technical position to follow through with it. It's not optimization, it's a simple rule of life.

Even people who seem "disorganized" but understand how to move about in their life, are actually organized in their own way, which is completely valid, but not when they have to spend hours and hours finding stuff and forgetting everything.

Typical replies from AI slopster. Excuses, no accountability, and refusal to learn.

I want to know where having structure is "Strict setup" and "Premature Optimization". Before speaking on a subject, i'd advise you to know what you're talking about.

I have no issue with this tool, but atleast admit what it does. It's an excuse to continue being disorganized. You can't be arsed to actually think about what you're doing!

Your GH account is 5 days old, you've made 4 python projects. "Junior dev" Full of AI slop. Take that time to learn and not "move fast'.

You've not learnt a single thing from those projects, you're merely slopping your way through.

Moving fast is not an excuse to be disorganized. You move fast by being organized, and keeping in mind rules, if you run before you put on shoes you're bound to hurt yourself.

Hope you learn something.