How does AI help me work with programming languages I'm not familiar with?

Words
403
Reading
2 min
5d
Listen to this post
~3 min

I was recently working on a project where the team already had a codebase. The codebase was partially in Python and partially in TypeScript. The TypeScript part of the code was familiar to me because I have enough knowledge of TypeScript. But I was not fully comfortable with Python. I can read and understand the code, but I don't feel very comfortable with it. What I did was took to Code to AI and asked it to convert it to JavaScript and give me. Python and JavaScript are similar asynchronous programming languages. Today, with the help of AI, we can do wonders. This is when I understood that even without knowledge of the programming language, I can continue working on it and fix issues. This was an interesting experience, I should say.

Source - Gemini

Similar to this experience, I also got a chance to review code that was written in PHP. The payment gateway logic was written in PHP, and I had to review the code to understand the logic and replicate the same in TypeScript. I think this was back when AI was still maturing. I still did it because I gave part of the code to AI and asked questions to get answers. I cannot imagine how programming is becoming technology-agnostic now, where we can choose any comfortable programming language to build something. We know for a fact that low-level programming languages are faster, but we may not have that expertise. Today, with AI, it is becoming possible because AI knows everything, so we can make use of it to write our code in a suitable language so that it can be a better experience in all respects.

People say that after AI, many people have considered developing more in C and C++ which is low level language compared to the modern languages. The reason is that, for example, if we don't have a library or feature in these low-level languages, we have to write one, but now we just explain the logic to AI, and AI takes the pain of writing one. Our task will only be to review the code written by AI, which is far better than sitting and writing the logic all by ourselves.

If you like what I’m doing on Hive, you can vote me as a witness with the links below.

Vote balaz@balaz as a Hive Witness
Vote kanibot@kanibot as a Hive Engine Witness