Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* 2025/26/2
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Nim2
* Scala


[ edit | logout ]
[ sandbox | passwd ]

Using AI for learning Nim

I'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 var, let or const. You can ask the LLM to explain the differences between them.

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 avoid

Don'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.

Note

Just to be clear, these Nim notes here are written by myself. These notes are not AI-generated :)

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2026 April 04, 10:45