1

What's New in TypeScript 5.0? - Slashdot

 1 year ago
source link: https://developers.slashdot.org/story/23/03/27/0056258/whats-new-in-typescript-50
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

What's New in TypeScript 5.0?binspamdupenotthebestofftopicslownewsdaystalestupid freshfunnyinsightfulinterestingmaybe offtopicflamebaittrollredundantoverrated insightfulinterestinginformativefunnyunderrated descriptive typodupeerror

Do you develop on GitHub? You can keep using GitHub but automatically sync your GitHub releases to SourceForge quickly and easily with this tool so your projects have a backup location, and get your project in front of SourceForge's nearly 30 million monthly users. It takes less than a minute. Get new users downloading your project releases today!

Sign up for the Slashdot newsletter! or check out the new Slashdot job board to browse remote jobs or jobs in your area.
×

What's New in TypeScript 5.0? (infoworld.com) 19

Posted by EditorDavid

on Sunday March 26, 2023 @09:34PM from the get-with-the-programming dept.

InfoWorld reports that TypeScript 5.0 is smaller, faster, and simpler:

TypeScript 5.0, an update to Microsoft's strongly typed JavaScript variant, is now available as a production release, Microsoft announced March 16. With the upgrade, TypeScript has been rebuilt to use ECMAScript modules. TypeScript 5.0 also modernizes decorators for class customization.

ECMAScript modules reduce package size and boost performance. Decorators, an upcoming ECMAScript feature, allow for customizing classes and their members in a reusable way, Microsoft noted in a March 1 blog post. Decorators can be used on methods, properties, getters, setters, and auto-accessors. Classes can be decorated for subclassing and registration. While TypeScript previously supported experimental decorators, these were modeled on a much older version of the decorators proposal. TypeScript 5.0 will permit decorators to be placed before or after export and export default, a change made since the January 26 beta release of the new version.

  • I learned Typescript by doing courses about Angular. After that I started using it for middleware NodeJS projects. It only made sense and because of it my IDE (JetBrains) never gets lost. Code completion always works and is useful.

    Having done a lot of Java, it always seemed odd to me that you would take a language like Javascript whose biggest strength is being weakly typed, and retrofit it with a transpiler to make it strongly typed. In other words turn it into Java.

    But it all works pretty well so I don't complain.

    • Javascript whose biggest strength is being weakly typed

      Many major scripting languages are regretting this supposed strength.

  • its teaching should, therefore, be regarded as a criminal offense. Case in point:

    Decorators, an upcoming ECMAScript feature

    Who are the drooling morons on the standards committee? Are they just not familiar with the language at all?

    • I loved C++ when I first learned it. I even learned how the compiler worked which actually made some parts of the language make even more sense. Then I got real jobs that involved using other peoples' code. You could maybe debug it if you knew exactly what the bug was but understanding someone else's code was was impossible. You can write bad C code that is hard for others to understand but even terrible C code is easier to read and understand than good javascript.
      • Re:

        That's complete nonsense that you can't possibly substantiate. I'm guessing that you're not familiar with C or JavaScript, quite possibly either one.

    • Re:

      Nah. That's an old Microsoft project. This one blue-screens your machine.

  • Lately there have been some clever CERT vulnerabilities using script, font and pixel engines. Now there is fanfare over new things, and one presumes bloated code. Have specialized security experts audited this new code? One notes a decent amount of printers are now calling home, and executing at privileged levels to check on tied consumables. Now printer firmware will have the grunt to be a really good APT.
    • Re:

      I can't tell if you're being sarcastic or naive.

      99.9% of any code is never audited. When it is, there's a pricetag per line of code attached to the project, and it usually runs on aircraft computers or some other critical application. Microsoft shit isn't in that league - not to mention, Microsoft doesn't exactly have a stellar track record in security anyway.

      • Re:

        I remember the time when there were code reviews. I think HR made them stop, because it was not PC to get our a big red texta and circle printouts. Moving to 2020, production testing is the norm. I predict AI will be used by bad people to find vulnerabilities going forward. Apple was very annoyed something snuck past it in plain sight, and is locking down scripting called by lower level routines. MS has a bloody big income, and can afford to , or aspire to Google Zero or whatever, with bounties. For dependa
        • Re:

          A code review doesn't make the code audited. It makes it reviewed.

  • Is this fully compatible with existing standards? Will it be in the future?

    Just wondering if MS is leaning toward their old tricks...

    • Re:

      Given they're not even using their own browser rendering engine anymore... it's hard to see how they'd get even within sniffing distance of "extinguish".

  • Why is it that M$ keeps misnaming things?.NET is probably the worst example. I used typescript around 1981, back when it was a logging tool. M$ comes around and either in complete ignorance or intentional misdirection names their project that is completely unrelated by the same name. I remember seeing ads for C# in 1992 back when the company I worked for was looking to go to another flavor or C. We ended up choosing C++ and thank goodness we didn't fall for Objective-C. Does M$ have any original names


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK