A very exciting history of personal and BeeDragon gravatars from 2008-2018.
I just wasted nearly an hour troubleshooting a shortcode for a project because I did not know that WordPress shortcode attributes are passed through PHP’s
strtolower() function (view source).
I rarely use camelCase in PHP, and am also not a huge fan of shortcodes, so have easily managed to get through 15 years of developing WordPress sites without this issue ever popping up.
The use case of the shortcode I was building is to allow the user to display a HubSpot form inside of a WordPress post or page by providing a couple of required attributes, and optionally some additional attributes. The shortcode attributes directly correlate to the HubSpot form parameters. HubSpot forms use camel case for the parameter names, and I matched the shortcode attribute names to the HubSpot form parameter names without thinking much about it. I spent the next 45 minutes trying to figure out why the forms would only display using the default parameters and were ignoring the user provided parameters.
Of course, it turns out that the user parameters were being ignored because they no longer matched the expected attribute names after being converted to lowercase by the aforementioned
Don’t be like me. Use lowercase/snake_case attribute names in the
I am in a bad place. Not the worst place by far, but it keeps getting worse. My brain is starting to shut down and it is getting harder to come back. It happens whenever there are too many things. It has always happened, and no matter what kinds of medicines I take, or therapy I do, I am pretty sure that there is nothing that can stop it. Except for the obvious, which is to not have too many things. I don’t think that is possible. Life is things.
Sometimes, writing helps to sort out the things. I have not written here much in a while, but have many spreadsheets and Evernote notes filled with attempts at making order out of the things. Somehow, my attempts at figuring this out have led to more things, such as working with the Maryland DORS to get help finding a job working for someone else instead of myself. I don’t know if I even want that, or would be able to do it if given the chance, and going through this process is stressing me out. I am pretty attached to my business, even though it drives me crazy.
I want a business partner. I can’t seem to give up that idea even though I can not figure out how to make it happen. It is a miracle that I make money each year. It is not much, and no matter how much better I get at making estimates and charging the right amount of money, I still end up working all the time for very little in return.
Sometimes, I think finding a few other people and starting an agency would be better than finding a single partner, but that is even more confusing. I have no idea how to make that work. There are so many details — the same details that I already can not figure out in my own business, only more so.
I am a coder, and when necessary, a designer, but a web business needs more than that. Thankfully Karen helps me with billing. Having a project manager on retainer has also helped a lot, but it is very hard for me to be organized enough to even give the PM what she needs to be able to organize my projects. I would not need to do that if I worked with other people. We would all do what we were skilled at.
I am so tired of trying to do all the things all the time. It is wearing me down and it makes me tired and it is hard to sleep and I dread the next day. Stupid money.
I don’t know what to do. There are too many things and I have a ton of work to do and I can’t think. I need to send estimates for projects, and do research for other projects, and work on my current projects. I spent half the day working and then had to escape. Went to the PO Box to check for checks. It was empty, but it was nice to take a walk and listen to my new favorite podcast of the moment for a while. Now I should work again, but I am here rambling. That is what I come here to do.
I will stop rambling for now. Some things are good. Awesome even. Karen and the cats and my family ♥ They are the best, and they make me very happy, and I am lucky to have them all!