User bio
404 bio not found
Cambridge,MA
Member since Dec 9, 2015
Replies:

Thanks for the clarification, Julian. So despite the fact that I don't have any problem with @Robert.Barbiaux's rules, my rules would be:

  1. Use #dim only when necessary for code completion, maybe even with a generic comment explaining that that's the reason, for newer developers. The cases I know of are:
    • Julian's case, where a method returns a particular object and the method's signature doesn't specify the exact class (it probably specifies a generic superclass, or the method doesn't exist yet.
    • The exception variable within a catch block.
  2. Since I'd use #dim sparingly, I would probably put the #dim right above the variable it applies to.
  3. No inline assignment.
Open Exchange applications:
Certifications & Credly badges:
Joel has no Certifications & Credly badges yet.
Global Masters badges:
Followers:
Following:
Joel has not followed anybody yet.