Ask HN: Programming Without Files and Folders
What are my options?
What are my options?
I think your best option is not to swim against the current. The vast majority of developers organize code in files and folders because people can easily understand hierarchies. Developer tools (IDEs and editors) have good search and fuzzy find built-in so you don't have to click through folder hierarchies to find a file, or find where a function gets defined.
They have an "image" which contains everything (including the system-provided libraries), in a single file, and rely on the development environment to navigate to classes,functions, etc.
Maybe a virtual file-system...
However, it makes sense to have things like web site routes match your FS structure...
Vite has this concept of path aliases[1]. So you can give a folder an alias like `$data`. If you want to change that folder's location in the hierarchy later, it's just a matter of moving the folder and updating the alias. So you could start with all your folders in the project root and worry about the folder structure later.
[1]: https://dev.to/tilly/aliasing-in-vite-w-typescript-1lfo
Java, OTOH, enforces a lot of directory structure. It's a bit of a nightmare to use without an IDE or a fuzzy-find for that reason.
A fuzzy-find system could be more-or-less viewed as a virtual filesystem?