r/learnpython • • Jan 05 '24

Why are interpreters required for programming ?

i'm trying to learn python ....i'm hearing a lot of stuff about interpreters....just wanna know what are they for..why are they required...can i learn python without interpreter...without vs code or py charm

Cuz i wrote some codes in python and it worked without connecting python to interpreter ....why is an interpreter necessary

Plz enlighten me

14 Upvotes

71 comments sorted by

View all comments

Show parent comments

-70

u/[deleted] Jan 05 '24

If ide's make it easier to write code than does it mean not using an ide would make me a better programmer than majority

76

u/Ok_Barracuda_1161 Jan 05 '24

If you can build the same projects at the same quality level in the same amount of time using a text editor, then sure you might have bragging rights but that's about it. For the most part people only care about what you output, not how you do it.

55

u/HunterIV4 Jan 05 '24

No. It would just make you a slower programmer than the majority.

I mean, if you want to be "better," write everything in assembly. Almost nobody will hire you, but you'll understand computer architecture better than most =).

34

u/Nomapos Jan 05 '24

In the same way that a carpenter who refuses to use hammers is a better carpenter than one who does.

0

u/[deleted] Jan 05 '24

[deleted]

8

u/Plank_With_A_Nail_In Jan 05 '24

They are all tools ffs, you are over thinking it.

3

u/[deleted] Jan 06 '24

No you're both wrong the IDE is actually a nice set of chisels.

13

u/cyberjellyfish Jan 05 '24

No, just a slower developer that's more prone to write bugs and crap code.

5

u/r2k-in-the-vortex Jan 05 '24

You can hammer in a nail without a hammer, using, for example, a rock or maybe your forehead. Does it make you a better carpenter? Probably not.

4

u/POGtastic itertools evangelist Jan 05 '24

I'll go against the grain and say that a new programmer should introduce IDE features very slowly, to the point that starting with a blank text editor like Notepad++, GEdit, or Vim is a great idea. One reason for this is that you should know how your tools work, and dumping 5.8 metric shittons of VSCode extensions into your workflow is the exact opposite of that.

Once you're in industry, though, IDEs remove a ton of scutwork and let you focus on the important parts of your job.

3

u/rayofhope313 Jan 05 '24

You are mistaken in your understanding, if we say that not using ide makes you better programmer, then also not using Google to search for the issues you are facing makes you better programmer. Now we just told 99% (just to not say 100%) of programmer in the world they are not that good.

What makes you a better programmer is understanding how it works and why, how to write it more efficiently and with lower amount of bugs, how to test it, how to write clean code, to write comments for your code and so on. I know this might be discouraging, but you just started, use a good idea that helps you write cleaner code, recognise what are you writing, helps you run your projects and to finish your code faster. And just enjoy the journey. Don't try to rush it, especially at the beginning, understanding what is happening, why it is happening, and why it is written like that.

P.S: when you feel you are the worst programmer in the world and question your whole life keep going, we are go through that probably once a week then we feel like the smartest man alive. We all just cycle through these two feelings, especially at the beginning.

3

u/littledaimon Jan 05 '24

it will make you hate learning programming and learn slower. Because you will be staring at code for days not understanding why it does not execute without the ide being able to highlight all the syntax errors for you.

3

u/wezu123 Jan 05 '24

Your boss won't care about the way you write code. He will care about how much code you've written.

Your workmates using advanced IDE's, with autocompletion, hints, shortcuts, built-in documentation and copilot write 10k lines of code.

You write 5k lines of code using a notepad.

Guess who's getting fired.

3

u/vashekcz Jan 05 '24

I don't understand why this is downvoted so much, it's a fair question.

I do agree with the answers that say no. Although for a very long time I only used Notepad++ and took a sort of pride in it. Did that make me a "better" programmer? Probably not.

I would say, though, that if code is well readable and understandable without the use of an IDE, that's a sign of well written code.

1

u/carcigenicate Carcigenicate Jan 05 '24

In some ways, arguably, yes, but not in ways that really matter. If you're a programmer, your job is to complete work, and you should use tools that help you achieve that goal and keep you productive. Not relying on auto-completion and static analysis to catch errors may make you better at catching the issues yourself, but you're unlikely to be as accurate as the IDE, so at best, you're just hurting your productivity.

1

u/mandradon Jan 05 '24

You're going to hamstring yourself if you don't use an IDE or Text Editor that's geared toward coding.

The tools they offer are very useful and it doesn't make you a "better" programmer. Everyone makes mistakes, and the tools in the IDE/Text Editor are there to help you minimize them (for example, you forgot to close a brace or didn't put a closing quotation), as well as make your coding more efficient. Tab completion is very useful, syntax highlighting helps you read the code faster.

Black text on a white background with no error checking and no refactoring tools sounds slow.

1

u/IamImposter Jan 05 '24

Is the reasoning that you are doing it hard way so you become better?

Not at all.

The tools are there so that we can do our work faster and with ease. Like if I want to see the methods available for Path, I can just do Path. and ide will show what are the methods available. I select the method and it will show me the parameters I need to pass. Otherwise I'll have to go back to documentation to get the same info.

I can debug my code, put breakpoints, see value of variables and fix bugs with my code much faster. Otherwise I'll be cluttering my code with print statements just to see what's going on.

These tools are there to help us. Programmers before us faced these issues and came up with some solutions to make their as well as our lives easier. Let's use these tools and use the time we saved on our hobbies or family or whatever.

1

u/djshadesuk Jan 05 '24

If you went to a tyre/tire shop and a technician was removing wheel nuts/bolts with a spanner/wrench, instead of an air gun/wrench, would you think that person better than everyone else or doing exactly the same job just slower?

1

u/Aimee28011994 Jan 05 '24

a carpenter could swap his hammer out for a brick to hammer nails with.. it would technically work, but WHYY?

1

u/__versus Jan 05 '24

There is an argument that not using an ide will make you remember more but it will take you so much longer to get there that any benefit is wiped out with a huge margin.

1

u/Plank_With_A_Nail_In Jan 05 '24

You should always write your own code too never use libraries, need to read in a file then roll your own don't use stdio or whatever its called in your programming language.

1

u/nog642 Jan 06 '24

No. Anyone who can write code with an IDE can also write code without one, just slower.

→ More replies (1)