logoalt Hacker News

hnlmorgtoday at 11:21 AM3 repliesview on HN

Not the author but this seems a good approach to me because you learn more about a language from implementing a project in it. This is especially true when you already have experience in a language from the same paradigm (like Go and Rust are).

So getting an LLM to write an example project then dissecting the code and interrogating those choices, seems like a very good way to learn the idioms of another language.


Replies

2ndorderthoughttoday at 11:27 AM

Go and rust share very few similarities when you consider the syntax.

show 1 reply
saagarjhatoday at 11:31 AM

I would not say that Go and Rust have similar paradigms

show 1 reply
jdubtoday at 12:22 PM

Nah, it's an awful way to learn. Especially to learn to be good or great.

When you start reading, it helps to have some guidance towards good and relevant books, from e.g. school, mentors, criticism, etc. Then, when you encounter a "bad" book, you have some benchmarks from which you can build your capacity for analysis and critique. (Testing your analysis and critique with others helps, too.)

If you start with "bad" books, your concept of quality and what's possible is constrained. (Like when teenage boys read Atlas Shrugged.)

Reading slop code is a terrible way to build a mental benchmark for what's good, what's possible, what's elegant, and writing good code that is respectful to your fellow human beings.

show 1 reply