5 ms·
"We create a NextJS app " Are you considering adding other languages in the future ? I would like to try but not with NextJS. I have a special hate for JavaScr
by codegeek 2y ago
"We create a NextJS app "
Are you considering adding other languages in the future ? I would like to try but not with NextJS. I have a special hate for JavaScript so I try to avoid it as much as possible except for Frontend.
- smt88 2y agoTypeScript is one of the few languages (Rust being another) that should be a target of LLM-generated code, just because the static analysis is so strict you'd actually catch a lot of bugs before runtime.
- maleldil 2y ago(Strict) Typed Python isn't that bad either, and LLMs seem to be quite good at generating that, given how popular Python is. Unfortunately, it tends to generate outdated types (e.g. `List` instead of `list`, `Optional[T]` instead of `T | None`, import `Iterable` from `typing` instead of `collections.abc`), so you always need to tell it to use the right one.
- kdamica 2y agoI still use Optional[T] so definitely not just the LLM :)
- notpushkin 2y agoShould be possible to fix automatically though? Something like https://github.com/PyCQA/modernize https://github.com/PyCQA/modernize, but for type hints. Edit: there is pyupgrade which can do this: https://github.com/asottile/pyupgrade#pep-585-typing-rewrites https://github.com/asottile/pyupgrade#pep-585-typing-rewrite...