4 ms·
All the code examples on this page are doubling any brackets ([], {}, ()). How have they managed that? Not a fantastic first impression of its capabilities...
by ases 3y ago
All the code examples on this page are doubling any brackets ([], {}, ()). How have they managed that? Not a fantastic first impression of its capabilities...
- mmcclure 3y agoI'm going to give them the benefit of the doubt and assume this is a marketing site problem and not a product problem, but either way, not a good look. Reminds me of Google's big Bard announcement including a wrong answer in the image.
- SparkyMcUnicorn 3y agoGitlab is using Google's Vertex Codey models/API for the code completions. Showcasing innacuracies in AI responses must be a Google requirement.
- Chiron1991 3y agoNot only that, but the Golang example is full of errors. Parameter definitions don't have colons between name and type. The map for seen elements is declared as a, but later referenced to as m. The append instruction references uniques, which is undefined. The return statement also references uniques.
- blibble 3y agoah yes, so a typical example of generative AI output
- 0xjnml 3y agoThe Go code shown now is both syntactically valid and semantically correct: https://go.dev/play/p/GDki9v78jMM https://go.dev/play/p/GDki9v78jMM I can't check how it looked 15 hours ago. Makes me wonder if it was manually corrected and is thus a fake example now.
- john_cogs 3y agoGitLab team member here. Thanks for flagging. Our web team is working to resolve this issue here: https://gitlab.com/gitlab-com/marketing/digital-experience/buyer-experience/-/merge_requests/2546 https://gitlab.com/gitlab-com/marketing/digital-experience/b...