@mary not sure about what specific generative tool you are referring to but the ones I tried are barely able to generate longer code than a method and have terrible contextual awareness. I still find that useful and faster than typing the method myself. They are also nice to learn new languages where you are not yet familiar with the standard library or syntax.