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

in Indiaunited • 50 minutes ago

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 as a Hive Witness
Vote @kanibot as a Hive Engine Witness

Sort:  

This post has been manually curated by @bhattg from Indiaunited community. Join us on our Discord Server.

Do you know that you can earn a passive income by delegating to @indiaunited. We share more than 100 % of the curation rewards with the delegators in the form of IUC tokens.

Here are some handy links for delegations: 100HP, 250HP, 500HP, 1000HP.

image.png

100% of the rewards from this comment goes to the curator for their manual curation efforts. Please encourage the curator @bhattg by upvoting this comment and support the community by voting the posts made by @indiaunited.

The Python to JavaScript jump is the part I know too well. I can read Python fine, but writting it from scratch still slows me down. Converting with AI and then checking the tricky bits is exactly how I work now.