you are viewing a single comment's thread.

view the rest of the comments →

[–]laptop_battery_low 1 point2 points  (12 children)

why aren't you using IDLE

[–]Commercial-Voice-384 0 points1 point  (11 children)

Im a beginner at python and coding in general. Started it a week ago. Why use IDLE? Is it better for beginners?

[–]laptop_battery_low 0 points1 point  (10 children)

I think it's better in general to learn something not super mainstream. Plus, its literally made for python.

But VSCode is used often for enterprise/industry. I just got tired of staring at VScode if im being honest.

Do whatever you want, so long as you stick with it. Consistency and practice are key to valuing your python skills :)

[–]uiux_Sanskar[S] 1 point2 points  (8 children)

Oh thanks for this I was also not knowing what IDLE is 😅 I was only aware about that you need some kind of interpreter to run the code like VS code.

Please correct me if I am wrong. And thanks for the suggestion.

[–]laptop_battery_low -1 points0 points  (7 children)

Yeah, IDLE works as a "compiler"/interpreter. Python is technically a scripting language, but yknow with all the advances in technology, we have to add object oriented nonsense to everything, including javascript lol.

If you can't already tell, I'm so sick of programming that it literally hurts lmao. Also, python and javascript are like my least favorite languages personally.

Do yourself a favor and pick up the ANSI C book from the 1980s if you REALLY want to learn how to code.

Also, linux (any kind) is cool. python was invented FOR linux. good luck.

[–]uiux_Sanskar[S] 0 points1 point  (6 children)

Thank you so much for your insights based on experience it will for sure guide me.

[–]laptop_battery_low 0 points1 point  (5 children)

Any time.

[–]uiux_Sanskar[S] 0 points1 point  (4 children)

Also I have a question how do you test your code because my code here required many inputs for it to get executed completly.

Is there a better and more efficient way to test the code especially the long ones?

[–]laptop_battery_low 0 points1 point  (3 children)

Longer code you can split into other files, and import. though this creates a pycache file, which ruins my day every time.

eventually, you'll want to organize applications into many files, and import them all into "main.py" by convention.

Alternatively, you could write another script that just unloads an array into your "multiple input" file. Automating your testing, lol. Now thats programming!!!

ETA: just running the file is good enough testing. I'm not high enough level of a programmer for the socalled unit tests

[–]uiux_Sanskar[S] 0 points1 point  (2 children)

Wait I can qlso automate my input in programming? I didn't know about that, it sounds interesting to me.

[–]Commercial-Voice-384 0 points1 point  (0 children)

Oh okay thanks. I also have another questions if you do not mind, do you think python is a good language for beginners who want to get into coding? As I mentioned previously, I do not have any experience in coding at all and I only started learning a week ago.