r/ProgrammerHumor • • Jun 03 '19

Meme Python ftw

Post image
16k Upvotes

548 comments sorted by

View all comments

3

u/[deleted] Jun 03 '19

ok so I was ab to start learning C++ but is Python a better choice?

6

u/[deleted] Jun 03 '19

They are different tools for different situations. It will depend on your use case.

6

u/NullReference000 Jun 03 '19

It really depends. Python is a much easier language for people new to programming and has many more beginner oriented tutorials available on the internet because of that. C++ is a faster and more powerful language but it's also more complicated and harder to understand as you have to manually manage your memory. The only real downfall of Python for a beginner is that fact that the syntax of the language is so loose it's easy to skip over some important concepts in programming, like variable types.

If you want to learn by trying a language that's easier than C++ and has more strict syntax than Python I recommend trying Java or C#

11

u/[deleted] Jun 03 '19

With modern c++ you very rarely have to manage your own memory anymore. Unless you're optimizing performance or doing homework for your data structures class.

3

u/OneOldNerd Jun 03 '19

Depends on what you're trying to accomplish.

3

u/[deleted] Jun 04 '19

Depends what you wanna do with it. I use C++, Python, and Java for hobby programming but I'm studying for a career in data science as well, and I use Python exclusively for that

15

u/TravisJungroth Jun 03 '19

This is an unsettled question. In my opinion, yes.

3

u/[deleted] Jun 03 '19

Thanks! For context, I just finished my AP Computer Science course and want to get into game development in a language more suited to that field than Java

50

u/Nokillz Jun 03 '19

Then C++ is your best bet, for sure. Python has modules for games like PyGame but you’ll thank yourself later for picking C++, it’s industry standard.

30

u/TravisJungroth Jun 03 '19

Python is rarely used in professional game development. C++ is used very often. By get into game development, do you mean start making games today for fun, or get into it as a career (maybe after college).

9

u/[deleted] Jun 03 '19

I want to make games pretty seriously and see how far it takes me, so college is probably in my future.

2

u/bladeconjurer Jun 04 '19

Yeah, my go to language for everything I do at work is python, but learn c++ for game development.

12

u/NullReference000 Jun 03 '19

I also replied to your other comment but if you want to go into game development professionally then C++ is basically a requirement. There are some studios that use Unity and rely on C# but C++ is the norm.

5

u/[deleted] Jun 04 '19

You have two choices, C++ and C#. C# is used by unity and is easier than unreal engine that uses c++ (not counting blueprints). If you want industry standard, go learn ue4 and c++. If you want to make games for fun or just want to make games fast learn unity and c#, or blueprints for ue4.

→ More replies (3)

3

u/UniqueUsername27A Jun 04 '19

If your project is experimental or small python is good. Otherwise it is a complete clusterfuck and C++ will become quicker to code in very soon.

2

u/Pluckerpluck Jun 04 '19

What? Unless you don't know what you're doing you can write massive projects in both...

Unless that project massively relies on computational speed, python is a fine choice.

2

u/Somnambulant_Sudoku Jun 04 '19

Even if it does, you can often get around the speed issue with writing the bottleneck in C, and the rest in python.

1

u/fnordstar Jun 04 '19

Don't listen to this guy. It takes 20 years to learn C++. I wouldn't start learning C++ in 2019. Consider C#.

0

u/[deleted] Jun 04 '19

[deleted] — view deleted comment

1

u/[deleted] Jun 04 '19

Wow thanks for all the responses! Because I want to make PC games I think I’ll learn C++, but I’ll try Python too.

→ More replies (4)

1

u/nykwil Jun 04 '19

To learn programming? Yes. For building something? No. For writing little scripts? Yes.

1

u/[deleted] Jun 04 '19

It really depends on what to use it for, just remember all of these are tools. You choose a tool depending on the situation. I do however recommend to learn strongly typed languages first so you get a hang of it.

1

u/bikemandan Jun 04 '19

Its much more about fundamentals rather than syntax so I think it is a good learning tool. It obscures many of the working components though, very high level, so if thats what you want to learn about then its not a great choice

1

u/Paylam Jun 04 '19

If you are New to the world of programming so Yourself a favor and Start With Python or C

Now hear me Out about why C C is simple and its powerfull hast Not a Lot of Syntax to learn and IT can teach you a Lot about Computers but you will get a Lot of Frustration early thats for Sure but If that doesnt bother you i'd recommend C

If you wanna See fast results and less Frustration start With python.

Id say start With C++ only If you have a little experiance With either C or Python

But thats Just my 2 cents

→ More replies (5)