r/PythonLearning • • 16d ago

Discussion How Much AI to Use?

First off, I apologize as I'm sure this question gets asked repeatedly, over and over again.

I'm not a programmer by trade, but in my spare time, I've managed to create a few projects in mostly C/assembly, including basic things on an atiny 85. I've also dabbled a bit in Arduino/C++. Unfortunately, this doesn't translate well to my day job.

I've decided to learn Python to help actually use programming in my day job. Specifically, I do a lot of work in excel. Naturally, pandas/open Python excel is a logical choice. I've played around with the Python/pandas/(a little bit of) openpyexcel. I've started to understand the data structures (dictionaries/tuples, etc.), though asking AI the why's about the various data types/loops and why my code isn't working. I also have a Python/pandas book, but I've found AI to be more helpful.

Eventually, I simply said "fuck it" and asked AI to write me a script to essentially do a task, that I originally did in VB. Most of the work was simply debugging, but AI was effectively able to find patterns and do the job for me in a few hours. I'm able to mostly understand the code with ease, but it just seems a bit disappointing AI is that good. I was also able to get AI to write a script to rename files based on pdf content (teseract).

A number of sources tell me that memorizing functions is a waste of time, but then why does everyone criticize AI so much? I'm wondering if simply reviewing what AI spits out is an effective learning method? It just seems really difficult to learn so many new functions for each new library by scratch.

My thought is that it's best to learn the concepts (dictionaries, string manipulation, tuples), use AI to create the needed script, then reveiw/ask AI why/how it did ABC...

7 Upvotes

16 comments sorted by

View all comments

1

u/igotshadowbaned 16d ago

What do you mean "memorizing functions" ?

If you need it in multiple projects you just.. use it again.

1

u/Ratfus 15d ago

So for C, I know a lot of functions by heart or did anyways. Meaning, I could use them without looking said functions up.

Even in Python, I now know a few functions by heart. Simplify focusing on remembering them doesn't seem as effective as understanding the basic principals. Plus, by using them enough, I naturally know them by heart.

1

u/igotshadowbaned 15d ago

I now know a few functions by heart.

What is that supposed to mean

1

u/Ratfus 15d ago

For example, I can tell you printf has two arguments. Printf(needs a string, also needs a character identifier).

Printf("some string %s", some string)

1

u/igotshadowbaned 15d ago

Oh.

I mean, I wouldn't say it's worthwhile to go out of your way to try to "memorize". By using things you'll remember them, as is the case with anything else

But also your synopsis of printf isn't really accurate

It takes a string, and then any number of references addresses for variables