Only logged in members can reply and interact with the post.
Join Similar Worlds today »

Long time programmers, which two programming languages from this list do you suggest someone to learn and why?

1. JavaScript
2. C#
3. Java
4. One of your choice
Depends on what the learner plans to do. If she's going into a STEM field, I recommend Python as a first language. It's a nice friendly interpreter; pretty good at catching your bugs, and a very expressive language. Plus there are tons of libraries useful in many STEM fields.

2nd language for person going into a STEM field: plain ol' C. C is a small language and thus easy to learn; also full of pitfalls. But the only reason a Python programmer needs to know C is to rewrite a few routines that need to be made time or memory efficient. So the Python user in need of efficiency can avoid many of C's pitfalls such as nested header files and weird "pointer to array of pointers" type mismatches.

Funny story: I had a friend with some cool realtime video processing algorithms from his school days. A company hired him and asked him to translate his code from C++ to Java. Because Java has no memory leaks. But Java would use a new buffer at each stage of the processing; 10 or 15 buffers per frame of video. And Java would happily allocate new memory each time ... until it needed to garbage collect. At which point the realtime code was falling hopelessly behind realtime. The way my friend put it, instead of no memory leaks, EVERY buffer became a memory leak that would eventually drag down performance!
ninalanyon · 61-69, T
4. Nim

Oops, forgot to say why: fast compiler, type safe, fast executables, builds single file executables. Python like syntax using indentation instead of braces.
ninalanyon · 61-69, T
There is another reason for learning Nim and that is the very fact that it it is a little different from most of the rest. So while it is a perfectly usable language for both systems and applications programming the differences serve to make it clearer how things work. It is valuable as an intellectual exercise.

But if the question really meant to ask which one would be most effective at some task then you will have to specify the task.
ABCDEF7 · M
JavaScript and other one depending on domain you are looking forward to.
Riemann · 31-35, M
@ABCDEF7 I am thinking C#. What do you say?
ABCDEF7 · M
@Riemann
1. Dependence on .NET platform
2. Not easy to learn
3. .NET apps doesn't work well on Linux or macOS as native apps.
4. May include license fee on deployment
ABCDEF7 · M
@Riemann Moreover, does C# solve your purpose of learning the language? Check what are common use cases of C#
QueenOfQuirk · 22-25, F
I wish I liked java cuz i have two days to make an app lol
Miram · 31-35, F
@QueenOfQuirk This is why I like tech simps.
QueenOfQuirk · 22-25, F
@Miram yeah i took an L by saying no to someone in the first lecture cuz i hated his app idea lol
Rooster · M
We have our own with the "Unity" engine. We consider most of those to be obsolete.
Riemann · 31-35, M
@Rooster I know Unity is cool. I like Blender too. Thing is, these require high graphics systems, which aren't really for average laptop's.
Rooster · M
@SW-User Yes and it's much easier to learn and use.
Rooster · M
@QueenOfQuirk Who said everyone should use "Unity"? I only said that the company I was working for used it for games.
C/C++ for general use. Also Javascript and PHP for website programming.
Elessar · 26-30, M
Of those, C# hands down
Riemann · 31-35, M
@Elessar Another one? And why?
DDonde · 31-35, M
@Riemann I guess it depends on what you're planning on doing. Javascript is for the most part entirely for web pages. If you're not planning on writing front-end web page code, then you could stick with one of the other two.

 
Post Comment
 
50 people following
Programming & Code
Personal Stories, Advice, and Support
New Post
Hobbies Science & Technology Work
Group Members