In reply to
@pier @shredder7579 @martin @jk I decided to try out some code generation to see how it works lately. To do this, I built a small, composite view in AppKit (the macOS UI framework). In my case, this involves subclassing NSView, then setting up my subviews in the initializer. AppKit uses “constraints” to specify how views should be arranged relative to their container and to other views within the container. When laying out views in code, these are generally a *long* line to specify each of top, bottom, leading, and trailing.
I built my first subview, and the model recommended adding the constraints for that view. The recommendations were all correct. Incidentally, they looked exactly like constraint sets I had written for views elsewhere in the application (same order, style, etc.). I was impressed.
Then I added a second subview, and it recommended some incorrect constraints. I went on for a while, but it never got better than ~30% correct recommendations. It recommended variable names which don’t exist, methods which don’t exist, incorrect property names and parameter names, logic errors, all kinds of stuff. Definitely not worth the resources being thrown at it.
View full thread on infosec.exchange
2
1
0
Conversation (1)
Showing 0 of 1 cached locally.
Syncing comments from the remote thread. 1 more reply is still loading.
Loading comments...