r/AskComputerScience • u/Klauz98 • Aug 08 '19
Which programming language should I master?
I'm a Computer Science student in the middle of my career at college and I had worked many times in different programming languages like Python, C++, C# and Java but I haven't picked one to master.
I know that is important to master on language and once you do, move to another one (that what a senior year student friend of mine told me) so, How do I pick the language that I should master? And how can I master it?
Any ideas?
I was thinking learning a bit of JS and HTML for web programming that I'm kindda interested in. But I really like programming in general not just web. I'm not really into anything concrete but I want to pick a side so I can really master one language or another.
Suggestions are more than welcome.
5
u/Sionn3039 Aug 08 '19
Back when I was in university, I had a similar mindset. Now that I've been in the workforce for a decade, my opinions have definitely shifted.
Worry less about specifically "mastering a language", and work on projects. Projects, projects, projects. The mastery that will make you employable comes from actual experience. It doesn't need to be the next unicorn, it doesn't even need to make money, the valuable experience comes from the problems you will inevitably run into as you build it.
I did hackathons when I was younger. It was great experience in getting something stood up quickly and getting it in front of a customer ASAP. They also tend to provide some inspirations like a theme that can help you decide what you want to build. I ended up winning one and it was a golden ticket for starting my own consultancy and doing my own thing.
After 5-10 years of running into problems, Googling them, and implementing solutions, you end up having a pretty good store of "things to try" when you see bugs that you recognize. If you want to "master" the language, once you've built out a project, spend a few weeks refactoring it, using all the language features to tidy things up.
My favorite frameworks are Angular for client side development with ASP.NET Core on the back end. Primarily cloud infrastructure, AWS, Google Cloud & Azure, depending on the project.
Just my two cents!
1
u/Klauz98 Aug 08 '19
Wow thank you very much!! This really leave thinking. Hahaha I should really start creating new projects ideas.
2
u/Sionn3039 Aug 08 '19
You are welcome! Doesn't need to be anything fancy or unique. Certainly helps if its something you are interested in though.
1
4
u/srpsycho Aug 08 '19
Depends on what kind of industry/job function you want to work in the future.
I think that all languages have strengths/weaknesses in particular areas, so it's best to consider what you're going to use it for. Also, you never really master a language (they're always changing and going to be updated)--always refer to the documentation when you can.
I hold the opinion that if you understand C++ thoroughly, you'll be able to pick up any other language easily. Most of my work as an undergrad was in C++/Java, but I was able to easily pick up Python right after.
Basically, all the fundamentals such as data structures, OOP, recursion, etc., are what you should be mastering--this stuff will never go away.
1
3
u/wayoverpaid Aug 08 '19
Mastering languages is an ongoing process, IMO. Even languages I've worked in for years I find new and interesting things.
The most important thing is to master languages that help you think differently. Learning C (not necessarily C++) in detail is highly useful because it lets you wrap your head around what that fancy interpreted language is actually doing.
Learning Java or c# is great but they are similar enough that you get diminishing marginal utility.
Knowing an interpreted language with a lot of dynamic programming like Python or Ruby is valuable.
Mastering Javascript is meaningless. You will be mastering a framework at this point. React or Angular or Ember or whatever you pick, it's far more useful to fully grasp one of those. And knowing JS on its own is of debatable power unless you also know something serving up the data on an API.
But by far and away, it's more useful to have a concrete thing you work on. I got a lot of programming practice in the mIRC scripting language and while I don't use it now, a lot of the lessons I learned the hard way about program design have stuck with me today.
Don't just master C. Program something cool on a raspberry pi. Don't just master Java or Kotlin. Make a neat Android app that solves a problem you have. Keep your scope as small as possible, but try to create something that you actually use. You'll be amazed how focused this can keep you.
1
3
u/deelowe Aug 08 '19
Don't just learn one:
Assembly (any really, but be sure to learn about endianness, cisc/risc, etc... in the process)
C (to learn procedural programming, compilers, etc... it's a good follow-up to assembly. In fact, it would be really good to learn asm and then c using the same architecture and then debug the asm.)
LISP (to learn functional programming)
C++, Java, Go, Python, etc... (for a heavy hitter popular OOP language)
2
u/KremBanan Aug 09 '19
You can't actually seriously be recommending Assembly and LISP in 2019 for general development
1
u/Eulerious Aug 09 '19
One should really learn LISP! Not to know LISP but because one of the best books (SICP) uses a LISP dialect (Scheme) and i would really, really recommend reading that book.
1
0
u/Klauz98 Aug 08 '19
Seems rough and complicated , but I'll check that out. Any websites or platforms recommendations?
4
u/AskKapil Aug 08 '19
Scala , Swift and Julia. Looks like they are new golden children
3
u/Klauz98 Aug 08 '19
Got it. I haven't heard of Julia. Is it new?
2
u/_not-a-throw-away_ Aug 08 '19
Relatively new, yes. Development started in 2009 and a v1 was released last year in August. I have been using it increasingly intensive since then and I must say I like it a lot, most of all community-wise. There are some great videos on the official youtube channel.
1
0
1
u/KremBanan Aug 11 '19
Swift isn't new, and is rather dying a slow death
1
u/AskKapil Aug 11 '19
Care to explain please?
1
u/KremBanan Aug 11 '19
I’d like you to explain why it’s the new gold?
1
u/AskKapil Aug 12 '19
Swift for tensorflow initiative from google and fast.ai taking all their course to swift suggests they are going to be big on deep learning stuff too,.And given that swift is already great for ios development, thus i think swift is the new gold
1
2
u/earslap Aug 09 '19 edited Aug 09 '19
I know that is important to master on language and once you do, move to another one (that what a senior year student friend of mine told me)
Your friend guided you wrong IMO and I doubt a senior year student is a master of any language to begin with. Maybe we have different definitions of master though. (insert Anakin Skywalker flashbacks)
You can't master a language and its ecosystem by merely studying very hard, you have to solve real problems with it and that generally comes with your own side projects or employment at the right place where you are regularly pushed to your limits (I'm not talking about time pressure).
So instead of telling you "master X" or "master Y", I'll ask: What do you want to build? Different things call for different technology stacks / languages. Choose something you want to build and get to work, find the right stack for it and you'll only then find the aptitude to solve problems with it - which is the path to mastery. Then do it again, and again, and again... "Pick and choose, then study very hard" is not that productive, you'll learn a lot but you'll be like a spoken language learner that memorizes words and phrases - that's good but it doesn't make you a good conversationalist (a master). To do that, you need to speak where it matters, and you need to do it a lot.
2
u/Klauz98 Aug 09 '19
Wow this really catch me of guard, but makes a lot of sence. Thank you REALLY much for sharing this.
2
u/gottagrindfast Aug 09 '19 edited Aug 10 '19
Programming language serves different purpose, that's why there's so many of them. Learn as much as you're willing to. I suggest spending a few weeks per language to give you a rough idea which one to use in certain area later.
For instance, Low-level language such as C, C++, Rust, and D provides you with more control over your program but they took more cognitive load to handle. High level languages, such as Python and JavaScript gets things done faster at the expense of less control.
Every single programming language has at least one winning factor over other languages. Choose the right trade-off because our time is limited. Zealotry is a waste of time, stay away from that.
One last thing I would say to my old me is dig the theories deeper than proglangs, because the number of things you can build is limited to things that you understand. Reinventing the wheel is totally fine for educational purpose, meaning you don't do it over and over.
1
3
u/noknockers Aug 08 '19
Contrary to what others are saying here, I think it's quite important to master at least one language. I think it not only gives you a solid understanding of the theory behind they language, but also allows you to hit it's limitations, which is where you learn and discover the most.
Then when you step into other languages is possible to judge them against the shortcomings of previous languages, allowing you to build up a knowledge base of not only features, but limitations (which is way more important IMHO).
1
u/Klauz98 Aug 08 '19
Wow thank you. I wasn't seeing it with that perspective.
Honestly, I think it is a wise idea to realize that, because they are A LOT of programming languages out there and it is a little bit overwhelming for someone that does not know where to start and which is the best option because you can create everything with any language, but there is this "X" language that works pretty good doing or handling "Z" things because of how it was created or how the program compile or other stuff. But knowing the limitations and strengths and weaknesses of the language would really help you get into a best option. Even tho learning all that it's going to take even longer.
2
Aug 08 '19
Personally, I'd recommend starting with python - you can do almost anything with it, its syntax is very intuitive (compared to many other languages), there's a robust support community, interest/demand has grown exponentially so jobs will likely still be here in 5-10 years, it's now gaining a considerable amount of traction in the data science community, and even if you're not interested in DS, many companies such as Pinterest built their stack on python.
That being said, there are some drawbacks. Python's syntax abstracts much of the memory management decisions you'd have to make with languages like C (and its variants.) So picking a language closer to the hardware,such as C, C++, etc etc has its perks; but be advised that the learning curve is a bit more challenging than python.
If you're unaware, there's a language called Cython that essentially weaves elements of python and C together, so that you can abstract away when necessary and get closer to the hardware when necessary. In fact, Cython is used quite a bit in development of machine learning algorithms when memory management is quite important for performance.
This might be a good strategy for you: Learn python well enough to feel comfortable with the language, branch out into Cython, and when you feel that you've got a solid handle on the C aspects, make the leap into C, C++, etc. At least this way, you'll get experience with both dynamically and statically typed languages, but won't feel that you're making little to no headway, starting with C.
2
u/Klauz98 Aug 08 '19
Thank you very much for the advice! I'll consider it! Btw I didn't knew about Cython, seems pretty interesting and promising, at least for new programmers.
4
0
u/minimim Aug 08 '19
Perl 6 would be the most useful from a Computer Science perspective in my opinion, because being multi-paradigm you would learn many programming paradigms. It's also very modern, so you'll get in contact with the forefront of programming languages research.
1
u/Klauz98 Aug 08 '19
Oh ok. I'll check it out. Thanks for the recommendation.
1
u/minimim Aug 08 '19
Also check it's "grammars and rules" features. It's the most accessible compiler development toolkit out there.
1
0
-1
0
Aug 08 '19
[deleted]
1
1
u/asdff01 Aug 09 '19
.
I'd say get a good grip on object oriented (C++, Java, ...) and functional (Python, Scala, Haskell, ...) SD. More importand
Just curious, why do I sometimes see Python grouped in with functional languages?
42
u/relative_absolute Aug 08 '19
As a software developer it isn't so important to "master" one language as it is to be comfortable enough to be able to use the appropriate language for the task at hand with the help of some documentation.
That being said, Python, Java, and C# are all great general purpose languages that many companies look for skills in. If you're interested in web dev, learning Javascript and some of the common tools in it (jquery, Node.js, etc.) and something like Bootstrap or one of its equivalents is great to do. The best way to learn is to do, so spending time working with a language is the best path to mastering it imo.
A great way to find out is to try, so investigate some problem domains and try to come up with projects that seem interesting to you. Python, R, and SQL are commonly used for data analysis, and there are tons of datasets out there to use, in addition to many sites offering public-facing APIs. C, C++, and Rust are great for lower-level programming (things like writing device drivers, OS, etc.; note I'm not as familiar with this area so others might have better advice about it).