3 ms·
And in times of Copilot & others writing become less and less a problem, as code completion works very well. Like this example: https://civet.dev/#everything-i
by progx 2y ago
And in times of Copilot & others writing become less and less a problem, as code completion works very well.
Like this example: https://civet.dev/#everything-is-an-expression https://civet.dev/#everything-is-an-expression
`items = for item of items`, in js you type `for`and copilot wrote nearly the full correct for-code. So you have to type not much and can read it easy.
- nine_k 2y agoTo reiterate the point above: writing is not the biggest problem. reading is. (Terse Perl may be delightful to write, as long as you still remember exactly what you wrote and why. But not after that.)
- mplewis 2y agoFrom my experience, I predict that LLM code completion will not work very well when using a language like Civet. Copilot is good when working with something where the idiomatic patterns are common, widespread, and hard to screw up. Civet has low adoption, uses much looser syntax (bracing, whitespace), and lacks the rigor of common TypeScript code.
- Yahivin 2y agoI was pleasantly surprised with how well Copilot picked it up. Civet doesn't have that many truly new language features, most of them are from existing languages and used in a similar way. Copilot is really good at matching what you are doing near the completion so I was impressed with how well it did with a new language.
- diatone 2y agoIt’s interesting in this example that the docs try to show that a for loop is useful, when there’s already an idiomatic approach here: ``` const result = items.map( i => i.length ? i.toUpperCase() : ‘<empty>’) ``` I think things get interesting here when different kinds of iterators come into play (eg generators, async-await for loops, non-array iterables). Shame the landing page doesn’t touch on that at all.
- croes 2y agoIf you don’t understand the code code completion becomes cargo cult programming.
- wruza 2y agoI think it’s time to reveal the shocking ancient knowledge people weren’t ready to deal with before: textmate snippets. foro for ($1 of $2) { $0 } touc toUpperCase() le length map map(x => $0) And so on. Seriously, typing code is some '90s activity since forever. Using copilot for this is akin to hitting a nail with a microscope.
- chrisandchris 2y agoWe must be living on different worlds. Code completion is sometimes interesting, but being 50% of the time correct still means 50% of the time I have to fix the code that just got written. And it just gets horrible, if I can't trust the good 50% - nothings harder than reading code.