▲ | datameta 2 days ago | ||||||||||||||||||||||
Even re-typing code verbatim will teach you much more than copy-pasting. | |||||||||||||||||||||||
▲ | zer0tonin 2 days ago | parent | next [-] | ||||||||||||||||||||||
There used to be a series of book called "Learn code the hard way". It was basically exactly this, you would have a bunch of code, and you were expected to retype it. The examples would progressively increase in complexity. It helped me learn C 10 years ago when I was a student. Sadly, I doubt it's still relevant nowadays. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | jedimastert 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||
When I was tutoring freshman computer science, I used to do some live coding demos on their computer, but use swear words for pretty much every variable and string. They saw the code, they would have to attempt at least to understand the code, and then they would have to destroy the code so they wouldn't accidentally send the professor something laden with swear words. Good times | |||||||||||||||||||||||
▲ | sunrunner 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||
I've always wondered how much is gained through the act of re-typing (in a positive sense). For example, does the process itself help embed the concepts? I've always liked the idea that familiarity doesn't breed repetition, rather repetition breeds familiarity (I think this is a quote but can't find the source now) and it's always made me wonder how much is gained from some of the repetitive parts of re-typing, such as does this help embed concepts? | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | layman51 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||
I was wondering about this because there is a part in the blogpost that specifically says his developer friend would not even do real-time copying from the other screen. Personally, I think that makes more sense to try to learn because I think if I am good enough at typing, I can get into a flow state where I’m just typing code that I’m not really making much sense of. There are moments where I realize that I don’t understand what I’m typing and that’s when I have to decide to keep transcribing or to slow down and read documentation. It is also just a little bit tricky to do this if you are working with an LLM that is able to add additional code or do some other kind of refactoring. | |||||||||||||||||||||||
▲ | dhosek 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||
That was what we had to do back in the day: Most computer magazines would have pages of code listings that you were expected to type into your computer to get the software to work. When SoftTalk came out in the mid-80s, it was revolutionary in that it only talked about software, it didn’t include program listings. | |||||||||||||||||||||||
▲ | nonhaver a day ago | parent | prev | next [-] | ||||||||||||||||||||||
100% - mixed with intellisense you get to explore a lib a lot more than just pasting a whole section | |||||||||||||||||||||||
▲ | svaha1728 2 days ago | parent | prev [-] | ||||||||||||||||||||||
I grew up in the Amiga era when we would type code from magazines to write games. I learned a ton debugging those programs. |