I spent more time than I’d have liked last week fixing an issue related to the intermittently incorrect appending of UTM parameters to URLs. Basically, the code worked fine if the link was “basic”, but if it already had parameters, a second question mark would get added. Since URLs cannot have two question marks, the link would break.
I hope you’ll find this useful– both in the sense of finishing a coding task faster, and having fewer issues to resolve after deployment.
I’ve found the “Add From Selection” functionality of the Code Snippets plugin has a tendency to crash Notepad++. It had been reported as an issue but does not appear to have been resolved or assigned yet, unfortunately.
The good news is, there’s a fairly trivial workaround for it in the interim. Instead of using “Add From Selection”, use the Copy command (Ctrl + C on Windows) to copy the selection into the system Clipboard, and then use the “Add From Clipboard” option instead.
I picked up Zachary Kessin’s book, HTML5 Applications, at a used bookstore and tried to read it recently. It was not a pleasant experience.
To be fair, this book was published in 2011 and a lot of the specific details have changed in the seven intervening years. The BlobBuilder() function, for example, has been subsequently deprecated. It would be unreasonable to expect a printed book to anticipate and adapt for this kind of change, obviously, and I don’t fault the author for this.
Here’s an example of the kind of frustrating problems I had with the book in addition to the material being changed:
Similarly, in a later portion of the book where Kessin is explaining the filter() method, an even function is referenced– even though it is never defined anywhere else on the page. Again, an experienced JS developer will be able to infer the need to define an even() to make the code work, but expecting readers to “just know this” and “fill in the blanks on their own” doesn’t contribute to a positive reader experience. It’s precisely these sorts of omissions which make learning new material frustrating instead of enjoyable, because you feel like you’re spending more time fixing someone else’s code rather than learning new material.