I take my shitposts very seriously.

  • 0 Posts
  • 1 Comment
Joined 3 years ago
cake
Cake day: June 24th, 2023

help-circle
  • let you build faster like Python

    I have to write so much boilerplate code to make sure my objects are of the correct type and have the required attributes! Every time I write an extension for Blender that uses context access, I have to make sure that the context is correct, that the context has the proper accessor attributes (which may not be present in some contexts), that the active datablock is not None, that the active datablock’s data type (with respect to Blender, not Python) is correct, that the active datablock’s data is not None… either all that or let the exception fall through the stack and catch it at the last moment with a bare except and a generic error message.

    I used to think that static typing was an obstacle. Now I’m burning in the isinstance/hasattr/getattr/setattr hell.