r/javascript • • Sep 17 '22

New features in JavaScript 2022

https://olivernguyen.io/s/js2022/
0 Upvotes

15 comments sorted by

16

u/esperalegant Sep 18 '22

Hey u/olvrng it's cool that you have a blog and thanks for sharing it.

However I think it's more useful if you try to find topics that don't already have about one billion identical posts written by other people.

https://www.google.com/search?as_q=new+features+in+es2022

What does your blog post add to these existing posts? The answer is nothing, so why did you write it?

Try to find something new, or at least a new angle for an old topic. Make your content useful to people. Your blog is a service. If you just pick an obvious and easy topic like this, which has already be done by a thousand people, you're just adding noise. The only person being served by this is you.

1

u/olvrng Sep 20 '22

Thank you for your advice. I will improve these articles next time.

2

u/jonny_eh Sep 18 '22

And the images in the post are unreadable on phones.

23

u/bronkula Sep 17 '22

Am I crazy or are most of these not new features?

-32

u/olvrng Sep 17 '22

Thanks for your feedback. I agree that it depends on the developer's point of view. If you are following the latest development in JavaScript, they are not really new (but still the latest updates). But if you are focusing on working and only check the latest news once in a while, this post is for you.

15

u/Mr-Bovine_Joni Sep 18 '22

Breaking news! A novel coronavirus is gaining traction in some regions of China. It probably won’t make it to America though.

9

u/muideracht Sep 18 '22

brb, going out to buy 10 packs of tp just to be safe

9

u/NotMyRealNameAgain Sep 18 '22

This is just straight up slamming for traffic. Especially 3/4ths of the way into 2022.

3

u/ichsagedir Sep 18 '22

Hashbang is now supported. What is it? Why would you need it? This is not getting explained at all to me.

1

u/[deleted] Sep 19 '22

It's basically for people who want to run js scripts with or instead of bash scripts

1

u/ichsagedir Sep 19 '22

Thanks for trying to explain it to me but it still is very unclear for me. When would I need this on a webpage for example?

1

u/[deleted] Sep 19 '22

You don't need this on a webpage at all. This is for people making scripts to run on their own computers that just happen to be written in js.

The hash bang at the start of the file tells certain computers that the rest of the file should be run in node. (as opposed to being run as a bash or shell script)

The only change that js runners have made is that they won't error out on a hashbang line at the start of the file since it isn't really js. The js runners will now skip the hashbang and continue below.

2

u/ichsagedir Sep 20 '22

Thanks for explaining it further, I really had no idea. Since this article is about Javascript I thought it's something to do with JS in the browser. /u/olvrng maybe put information like that into your article so it makes sense?

1

u/olvrng Sep 20 '22

Thanks, I'll note it for next time.