I use Multipass as my VM orchestrator, which means that when I spin up a VM for any project, I’m generally getting some version of Ubuntu. There was a major change between Ubuntu 20.04 and 21.04: starting with 21.04, the user directory is set by default to 750 – where in 20.04 it is 755. This means that by default other users can no longer browse the files in your user directory. But it also means that if you symlink a directory under /var/www/ to a directory in your home folder (a thing I do while I’m doing development of web applications that would normally live somewhere under /var/www), the webserver won’t be able to access the symlinked directory unless it can access the containing home directory, regardless of how many ways you specify FollowSymLinks in the config. TIL. (this is as much of a reminder for me as for anyone else)
I’ve been studying up on writing automated software tests for a few weeks and finally sat down to try writing one today. Of the two I attempted to write, I got one to pass (testing a very simple function) and the other one never worked, and I’m scrapping the function it would test because I can live without it. I have two entire apps worth of code that was written without a thought about how to test it that I now need to write tests for. So, that’ll be fun. Okay, maybe not fun. But it’ll keep me busy.
I spent all day manually testing code before its handed over to actual users on a sandbox. Fixed some things that bubbled up. Added some more tickets for later. I’m gonna need a week-long nap when I’m done.
This web app I’m updating is now in the testing phase. And, back when I first wrote it, I was a baby dev and didn’t know about automated testing. Now I a) know about testing but not how to write tests, and b) don’t have time to both learn and write tests. So I’m manually testing everything.