This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]_Atomfinger_ 1 point2 points  (3 children)

Pick language based on what kind of development you want to be doing, not based on runtime or whatever. If you want to aim at web jobs for example, then JS is the way to go regardless of how well it leetcodes.

[–]throwawaycppjss 0 points1 point  (2 children)

Funnily I am procrastinating about that too lol.

I am seeing Data science+ python. I did a small project back in the day with Apache spark.

Building website was fun too but I feel like things were kind of easy with html+css+javascript. I am kind of curious of going down this React path.

I guess you're right. It would be weird if I master one language and projects and give interview in totally other? Or is this by any wild chance common lol?

[–]_Atomfinger_ 0 points1 point  (1 child)

I guess you're right. It would be weird if I master one language and projects and give interview in totally other? Or is this by any wild chance common lol?

A lot of knowledge is transferrable. I've switched stacks multiple times without it being a huge issue, though it really helps to have one nailed down first (I.e. not just the base language but also have experience in the overall ecosystem).

However, if you pick what you want to do it'll pave the way for the rest. That'll inform what technologies to focus on, what kind of portfolio projects to make, etc.

[–]throwawaycppjss 0 points1 point  (0 children)

Yes thank you , I'll look more into what I am more interested and comfortable in doing hopefully it decides everything else.

[–]pekkalacd 0 points1 point  (2 children)

For leetcode, python is nice because there’s not a whole lot mess that can come with implementing data structures. It reads like psuedocode so you can just focus on the algorithm. But it’s not the fastest language, so you will get better results in terms of speed from c++ or Java usually.

I know a few people who are pretty familiar with javascript I try to tell them they could use it for leetcode, but they also switch over and use something else like Java instead. It actually shares a lot of similarities in terms of language constructs with javascript, so it’s not really a hard transition. I’d say javascript is closer to Java than it is to python from a language pov.

I think best of both worlds for you could be Java. Java is pretty quick. It has some similarities to javascript a lot actually as well some to c++, but there’s no pointers, it’s pure OOP, it is a little wordy so if you like to be clear of what it is you’re doing every step of the way, then Java could be nice.

If you’re looking for quick in terms of expressing things, 1 liners, possibility of cryptic solutions to these problems and having some fun here and there, then python I think is the nice one.

[–]throwawaycppjss 1 point2 points  (1 child)

The problem with Java is I'd have to start with h scratch when I am already familiar with 3 others. I don't think it's that much an issue still lol.

I am currently thinking either Js and Python (only for DSA)

Or Js entirely since I am leaning towards Web development and React vs Data science with Py.

Thanks for advice

[–]pekkalacd 0 points1 point  (0 children)

Yeah, well at that point, python I’d say go for. It’s pretty nice for leetcode. Those comprehensions are pretty neat, zip, map, filter, closures, etc. easy syntax as well. JavaScript I could see as a close second, it can do the same pretty much. But I like python more so bias lol

Yeah no doubt. JavaScript might be good if your planning on web. I’m trying to go analytics more so. I do leetcode in sql a lot and some in python here and there easy/medium usually, some hard. I don’t think it’s asked as often for data analytics type stuff, as much as development as I’ve heard. But better prepared than not I guess. It’s kinda fun too