r/AskComputerScience • u/[deleted] • Feb 03 '19
I like programming but I suck at coding. I don't know what I am doing wrong. I see my friends know so many programming languages. In my college, we only do C++. My question is should I spend more time on interview coding questions (doing them in C++) or should I keep learning new languages?
22
u/TheTarquin Feb 03 '19
Learning new languages is easy. Learning to be a good programmer is hard. Focus first on learning design patterns, theory of computation, data structures, algorithms, etc. Those skills will make you better in every language.
Then once you figure out that there's a problem that's better solved in another language, then you can go and learn that language.
11
Feb 03 '19
C++ prides itself on being one of the harder languages to use. Picking up another language might provide an easier learning curve for difficult concepts in C++. Ultimately language shouldn't matter, they're all Turing Complete.
The difference between languages is expressibility, not functionality. If C++ feels uncomfortable, it's also possible you'll feel more comfortable in a different language. I know the language and I'd pretty much always rather work in something else.
6
u/tbm1999 Feb 03 '19
You can learn a new programming language for less than 14 weeks if you take a online course, it is really fast, you can even learn multiple languages in the same time but companies don't pay you 6 figures for shit that you can learn in 14 weeks, they pay your for your problem solving, analyzing skills which develop day by day for a really long period of time. Spend your time to solve interview question, learn more theory, pick 1 language and be really good at it. If you are really good at 1 programming language it is super easy to learn the new language and even you are using a low level language right now (C++) it will be really easy for you to learn higher level language. But if you want to learn something new, I recommend SQL database besides solving problem.
3
u/PC__LOAD__LETTER Feb 03 '19
I landed a bigN out of college with C++. Focus on data structures, algorithm, and design. Language is honestly secondary. As long as you are proficient in one, you should be fine, and picking up new languages when you need too shouldn’t be too difficult.
2
u/RocketXD Feb 03 '19
Your question is wrong But, solution to your problem is to stick with one language and master it, then learn other languages. More precisely learn programming paradigms and learn how they are actually implemented in lower levels, This knowledge will help you master your chosen language AND will help you grasp other programming languages very quickly (when the time will come). For your college, don't fret over not knowing more number of programming languages. Let your friends enjoy the current 'fad' of your college while you work on the real deal. For starters start thinking about simplest of problems and try to solve them using your chosen language. The more you do coding the better you will be. Also get a book preferably written by the developer of language OR suggested in famous places (e.g stackoverflow.com) AND start reading it as soon as possible but take the reading slow and be persistent.
2
u/og-cheeselover97 Feb 03 '19
If you want a career in cpp focus on pointers algorithms and oop principles. It doesn't matter how many languages you know.
Spend more time actually making things with the technologies you know . You'll learn alot more , if you want to take a break from the lower level nature of cpp maybe learn Java / python .
Point is focus more on making things rather than tying yourself down to top 100 interview questions or some new language all the kids use.
2
u/fqGmUjDT2GCAmFqN Feb 03 '19
i was also not a fan of c++ since everyone learns it for engineering. just get good at it. once you get good, you'll see how easy other languages are. imo, they should teach the basics in C not in c++. data structures is where you'll understand some applications for programming. idk, if i had a few moments in my life to rewind and repeat, data structures and algorithms would be one of them
2
u/xxxTHRAXxxx Feb 03 '19
Programming language it's just a tool to command the computer
you shouldn't learn a lot of programming language , because you will repeat the same commands but with different syntax , so pick a programming language and learn the programming principles and build some projects , then choose a path or field you love it like ( Android, IOS , web development , etc)
2
u/SayYesToBacon Feb 03 '19
If you get the concepts, you have nothing to worry about. Just keep improving a little bit every day. If you want to learn more languages, then make it happen. But try to think about programming in a way that isn’t language-specific.
2
Feb 03 '19
If you learn coding by solving interview questions, then this ist your problem. You should learn programming by solving real world problems you or others have.
41
u/jhaluska Feb 03 '19
Being a bad programmer in five languages isn't as useful as as being a good programmer in one. I find the problem solving ability transfers well to new languages.
The only exception is possibly jumping to a functional language. The method of thinking is very different and might suit your style better.