|
Oktatás * Programozás 1 * Szkriptnyelvek Teaching * Programming 1 (BI) Félévek Linkek * kalendárium |
Nim2 /
Using AI for learning NimI'm not a big fan of AI and the idea of vibe coding sounds terrible to me. However, when you learn a new language, LLMs can be very useful. I also use them for asking specific questions, or ask them to explain some details. Of course, whatever they say, that must be tested. Don't believe anything blindly :) They are also very useful to rewrite a code snippet from one language (that you know) to another (that you are learning). Examples: You see that in Nim a variable can be declared as a Or, you want to write a loop in Nim but you don't know yet what it looks like. However, you know very well how to do that in Python. You can ask the AI to rewrite your Python snippet to Nim: for i in range(5): print("hello") Prompt: rewrite this Python code to Nim. What to avoidDon't copy the description of an exercise and ask the LLM to write a complete program for you that solves this exercise. You'll learn nothing from that. And if you don't know the language yet, you'll understand nothing from it. Which LLM to use?For Nim, I found Claude AI (via the web interface) to be quite good. But I haven't really tested all the others. You should decide yourself which one you prefer. NoteJust to be clear, these Nim notes here are written by myself. These notes are not AI-generated :) |
![]() Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |