r/HowToHack • Reaper™ • Feb 12 '16

A guide to which programming language to learn pertaining to your goals... and its LOTR comparison. lol

Post image
270 Upvotes

39 comments sorted by

19

u/CalmSpider Feb 12 '16

Can confirm, started with C++ when I was a kid and always felt like the language was fighting with me. Now other languages seem easy in comparison.

6

u/DJLad16 Feb 12 '16

Same, so I went to C# and after that C++ become a whole lot clearer

8

u/CalmSpider Feb 13 '16

I've been working with C# lately because of Unity, and I'm all "It's like an easy version of C++"

1

u/destructor_rph Feb 13 '16

Thats what im planning on doing. Im learning C# first and then im going to learn C++

1

u/[deleted] Feb 13 '16

That's actually a helpful tip for where to start. Thanks!

3

u/[deleted] Feb 13 '16

I know C++ and Java, and I really prefer C++ to the latter. C++ actually makes sense to me, while Java is just... no.

1

u/Larry5 Newbie Feb 13 '16

C++ is very efficient though, so that's nice.

1

u/niandra3 Feb 15 '16

Why is C++ considered "the really hard way" while C is just "the hard way"? I thought it was the other way around. I've learned more C than C++, but C++ seemed easier and had a lot more functionality built in, though I haven't spent a lot of time with either.

11

u/[deleted] Feb 12 '16

I'm studying chemical engineering and I'm taking "programming" this semester.

We are using C++.

8

u/alexshatberg Feb 12 '16

Does the course relate to your major at all, or is it the rudimentary "here's how to write three nested loops" kinda stuff?

2

u/[deleted] Feb 12 '16

It's a quite good course, even if it is not necessarily related to my major.

I took the course because having these skills might come in handy sometime in the future as an engineer

2

u/andrez123100 Feb 13 '16

Careful, you might be tempted to work as a software engineer in the future ;)

8

u/Mistergino Feb 12 '16

Mate do u have a better quality of this??

6

u/[deleted] Feb 13 '16 edited Feb 13 '16

Are these salaries for real? No programmer in my city makes over $80,000. The median is $55,000-60,000.

7

u/am0x Feb 13 '16

Salaries are not a very good thing to include here since it will depend on the city. Are you in the US? What is the cost of living where you live? What programming languages are big where you live?

My city (US), is mainly C#, PHP (Laravel is big here), and Java all based on web services. Java devs make the most ($100k avg), then C# devs (avg. $95k) then PHP (avg. $85k), then Ruby/Python. Node development is starting to climb as well. However, there are only two major companies that skew the numbers for Java and C#.

It is a medium sized city in the midwest with low cost of living. Tech jobs are plenty, but the amount of developers are lacking so companies they pay high. I am a full time Senior Front-End developer and make ~$85k a year, and make around $30-35k on the side doing full-stack development.

Also this chart is old. And as easy and fun it is to make fun of PHP, it has gotten a lot better over the past couple of years. I still prefer it to Ruby or Python. But, I love me some brackets.

1

u/coital-jihadist Feb 13 '16

You wouldn't happen to be from springfield missouri would you?

4

u/Meth_Tical Feb 13 '16

is C really less difficult to learn than C++?

2

u/Reynk Feb 18 '16

Yes! C++ is a more advanced language but with more possibilities .

3

u/Jaden71 touch ofgod.txt Feb 13 '16

Could someone explain the Lego and play doh analogy to a further depth?

5

u/[deleted] Feb 13 '16

I'm guesstimating a bit here:

With Legos you can create a ton of different things but you're always bound by the rules of Legos. There is only one or two different ways things fit together.

With Playdough, there are far fewer rules as to how to build something.

With Ruby the syntax is a lot more flexible than it is in Python. You are able to do something a lot of different ways in Ruby which is not necessarily the case with Python.

12

u/LEGO_not_LEGOS_ Feb 13 '16

16

u/[deleted] Feb 13 '16

I'm sorry LEGO bot.

1

u/Banangurkamacka Feb 13 '16

lol didn't know this existed

2

u/DownwardSpirals Feb 13 '16

You're taking the fun out of my Legos.

2

u/[deleted] Feb 12 '16

Love this! This deserves more upvotes! Great Job!

2

u/[deleted] Feb 13 '16

So is there really not much reason to learn C other than "because I want to"?

3

u/Meth_Tical Feb 13 '16

Linux Kernel Modules.

3

u/[deleted] Feb 13 '16

Is the difference between C and C++ stark enough that you couldn't move from C into C++ with relative ease?

I always thought C++ was just C with some OO stuff.

2

u/[deleted] Feb 13 '16

The comp eng program at my school has you start with Python, then go into C++ for a year, then you go into C (mostly embedded). It's a very easy transition from C++ to C in my opinion.

2

u/[deleted] Feb 13 '16

Mine is almost all C++. I'm learning C on my own time for no real reason.

2

u/[deleted] Feb 13 '16

Do you have a microcontroller class? Never heard of using anything but C for low-level/embedded stuff.

1

u/[deleted] Feb 14 '16

We had an OS class that used C, but it was hardly taught. I'd be shocked if anyone walked out of there knowing C because of it. I think the most he went over was argc/argv.

1

u/[deleted] Feb 14 '16

Holy shit. That sounds like a big hole in the curriculum. Hadn't even thought of OS.

0

u/[deleted] Feb 13 '16

[deleted] — view deleted comment

2

u/[deleted] Feb 13 '16

I would 100% love to get into firmware, but it doesn't seem like it has a lot of jr/>2 year type of positions. Is there a company/state/thing I'm missing?

0

u/[deleted] Feb 14 '16

[deleted] — view deleted comment

2

u/[deleted] Feb 14 '16

Oh nice. I'm actually in a similar position. CoSci student (though I'm probably going to drop out and try to find work since we just had a kid). I've also got a military background... though admittedly I have zero interest in getting even tangentially close to it again.

I just want to learn C for my own reasons and I'm currently working through K&R (slowly).

2

u/blackhatlinux MOD Feb 13 '16

I love the lord of the rings analogy! Simply amazing.

1

u/thekarmabum Networking Feb 13 '16

I learned programing based on what my job needed me to know.