code-standards

Powershell verb for destroying a resource

I've been trying to stick with the approved list of Powershell verbs when naming my cmdlets. I have a function which creates a resource, so it's called New-ClearCaseView. I'd also like to make a function which destroys this resource once it is no longer in use. However, I don't see any pair verb to...

How to use @Nullable and @Nonnull annotations more effectively?

I can see that @Nullable and @Nonnull annotations could be helpful in preventing NullPointerException s but they do not propagate very far. The effectiveness of these annotations drop off completely after one level of indirection, so if you only add a few they don't propagate very far. Since these...

jQuery best practices in case of $('document').ready

I was researching on jQuery best practices and found this article by Greg Franko Normally, I do: $("document").ready(function() { // The DOM is ready! // The rest of the code goes here }); But the article recommends to use: // IIFE - Immediately Invoked Function Expression (function($, window,...