panda-code.hashnode.devIn Defense of Simple Lodash Functions"Hey, dumb question," the new guy said to me, "Why would you use a library for 'isString'? It's not really more readable"."I'm not sure what you mean," I replied. I hadn't even looked away from my screen yet."It seems like a very easy thing to check....Jan 14, 2024·2 min read
panda-code.hashnode.devSymfony: Injecting all the Classes from a FolderThis started out as a question about a tool that supports plugins. How can you just automatically inject all the classes in the plug-ins folder? When really a better question would have been How can Symfony's dependency injection automatically give ...Aug 30, 2022·2 min read
panda-code.hashnode.devFrailty, thy name is TypeScriptI have a growing love-hate relationship with TypeScript. I'm in favor of strongly-typed languages, they can save you a lot of grief, and they (typically) make the code easier to read for the next guy. Even if the "next guy" is just you a year later. ...Aug 9, 2022·2 min read
panda-code.hashnode.devMove the cursor to the END of your ContentEditableI needed to automatically focus a contenteditable div after the user had been granted permission to make edits - that part was pretty easy, however the cursor ends up at the start of the text in the div. Unacceptable! I did some googling and the most...Aug 3, 2022·1 min read
panda-code.hashnode.devPrevious Sibling Selector in CSSSorry, no previous sibling selector exists in CSS; so in pure CSS you can't target the sibling before an empty element - or can you? Rearrange the display order using flexbox and the order property and then use the next-sibling selector. Technically ...Jul 27, 2022·2 min read