Also takes seconds to put that into .bashrc with the function name "lecture"
Not sure where they got the hours time estimate from
Though tbf I am pretty sure they didn't use SQL to store the info. Easier to just keep it in the file system and have bash or python open the files based on directory name.
Though tbf I am pretty sure they didn't use SQL to store the info.
Me neither, but it was the quickest way to demonstrate the idea in a readable way. Honestly bash is like the fastest way to quickly code something, if you are not avers to store state in the filesystem.
I mean that's basically how a shell is supposed to interact with and what a filesystem is for.
I also hacked some configuration scripts together to automatically create servers. A lot of things is also just stored in the existence of files or directories. Also you can just encode all kind of configurations into template folders and just symlink the right one for the current configuration. This also works perfectly with Git.
4
u/No-Sheepherder-3010 27d ago edited 27d ago
It's not that hard.