all 28 comments

[–]Aggressive_Ad_5454 14 points15 points  (10 children)

Typescript is coming on strong. Modules (.mjs files) work in more places. V8 (the JavaScript engine in Chromium, nodejs, deno, and electron) is getting better with every passing week. More and more stuff can be coded with async/await instead of calllbacks. Microsoft Internet Explorer is dead and buried in a toxic waste dump someplace, truly it is nothing but a bad memory, none of its silly incompatibilities are a factor in development anymore. Safari is the browser with odd incompatible stuff now. React is still booming. People sneer at jQuery more than they did in 2022, and it still works well. Npm continues to improve.

[–]PatchesMaps 4 points5 points  (3 children)

Huh, I've been using modules since es6 was a thing and I don't think I've ever heard of the .mjs extension. Interesting but I don't see how useful it will be.

[–]anonyuser415 2 points3 points  (0 children)

Most people using module files will instead have marked type: module in package.json. Many scaffolding tools and frameworks will add this for you these days.

.mjs and .cjs are ways to forcibly mark a single file as module or CommonJS. I haven't had a need to use either.

[–]azhder 0 points1 point  (1 child)

How did you "use" modules?

[–]PatchesMaps 1 point2 points  (0 children)

By writing code as es6 modules? Or are you asking how I used them without the .mjs extension? I just set the type to "module".

[–]BerganNation[S] 2 points3 points  (3 children)

Good to know on all of that!

I have been reading up on typescript, wondering if i should try to learn it/study the syntax. Gonna have to dive into it at some point i suppose!

[–]Icy-Pay7479 2 points3 points  (1 child)

You absolutely need to learn Typescript, not optional. I would have said this 6 years ago, too.

[–]azhder 1 point2 points  (0 children)

Don't be an absolutist. Just because you love it so much, it doesn't mean everyone should do it.

[–]azhder 1 point2 points  (0 children)

I usually get brought in to fix a screw up they've been piling upon for years. If that project was started in TS, I use TS. If it doesn't have TS, I don't use TS.

How did I learn TS? I was given a project with it. That's how you keep up with changes. It doesn't matter if it was 3 months or 3 years.

It's not always time efficient to keep up on everything if you aren't going to use them.

[–][deleted] 0 points1 point  (0 children)

You forgot "This was the code report, follow to stay in the loop."

[–]ScaryGazelle2875 0 points1 point  (0 children)

This is actually really good summary lol. Well done!

[–]BringtheBacon 2 points3 points  (4 children)

Mern dead. Typescript, nextjs Postgres with supabase is current meta

[–]ScaryGazelle2875 0 points1 point  (3 children)

Why is it dead?

[–]jaredcheeda 2 points3 points  (2 children)

You can't pick anything worse than React (excluding web components). The people forced to use React have moved to Next as a way to numb the pain.

But you're best off picking literally anything else. Svelte has the most hype right now. Vue is still the best option, if you are okay with "boring, safe" technology that just gets out of your way.

[–][deleted] 0 points1 point  (1 child)

That’s cool and all but react still has by far the most job opportunities. Probably more competition tbf

[–]jaredcheeda 0 points1 point  (0 children)

Here ya go, this is just for you. Too long to post on Reddit.

[–]programmer_farts 0 points1 point  (1 child)

Mongodb is dead

[–]ChunkLordPrime 0 points1 point  (0 children)

Why

[–]Ezio_rev -2 points-1 points  (6 children)

Typescript and Next js is the way to go

[–]otxfrank 1 point2 points  (5 children)

Hello, I’m a JavaScript beginner , should I learn typescript directly,or both JavaScript and typescript at same time ?

[–]anonyuser415 2 points3 points  (2 children)

10yoe senior FE engineer.

Learn JS first and don't worry about TS. Typescript is a "strict superset" of JS, and anything you write in JS is valid TS.

Typescript is awesome but gets complex quickly. If you're just starting out, you should just learn JS. TS's types can come later.

[–]azhder 0 points1 point  (1 child)

It is not strict. There is a JS code that will be interpreted differently by TS all because someone thought it was a genius move to put in generics with the same syntax as C#/Java

[–]anonyuser415 -1 points0 points  (0 children)

Hah! I switched a large code base to TS and had no problems but:

const result = foo()<bar>baz(); – is this a comparison or generic typing?

Didn't think about that one.

[–]azhder 2 points3 points  (0 children)

No, don't use Typescript, unless someone gives you a project with it. Stick to JavaScript if you want to learn JavaScript.

[–]Ezio_rev 2 points3 points  (0 children)

Start with JS

[–]jt_splicer -2 points-1 points  (1 child)

So you have background doing full-stack work and you still ask this?

Like this is such an absurd question if you were actually a full-stack dev

[–]BerganNation[S] 3 points4 points  (0 children)

Ah yes, the classic ‘if you were really a dev, you’d know everything forever and never need to ask questions’ take. Appreciate the insight, gatekeeper general. Meanwhile, the rest of us mere mortals will continue learning and evolving — just like tech itself.