• In chevron_right

      TypeScript 5.4 beta arrives

      pubsub.slavino.sk / infoworldcom · Tuesday, 30 January - 10:00 edit

    TypeScript 5.4, a planned update to the strongly typed JavaScript variant from Microsoft , has reached beta availability. New capabilities include preserved narrowing within function closures created after the last assignment and a NoInfer type to block inferences to valid but unwanted types.

    Released January 29, TypeScript 5.4 can be accessed via NuGet or NPM. In NPM, use the following command:

    npm install -D typescript@beta

    TypeScript 5.4 makes narrowing smarter. Detailing the improvement, Microsoft said a common pain point in TypeScript was that narrowed types were not always preserved within function closures. In TypeScript 5.4, when parameters and let variables are used in non-hoisted functions, the type checker will look for a last assignment point. If one is found, TypeScript can narrow from outside the containing function.

    To read this article in full, please click here


    Značky: #JavaScript, #Typescript, #Rozne

    • In chevron_right

      Astro 4.2 boosts accessibility, image optimization features

      pubsub.slavino.sk / infoworldcom · Friday, 19 January - 22:17 edit

    Following fast in the footsteps of the Astro 4.1 release , Astro 4.2 has arrived, bringing improvements to accessibility rules and the ability for remark plugins to customize image optimization.

    The Astro 4.2 release also introduces prerendering using the Speculation Rules API and reworked routing priority for injected routes, both experimental features.

    Launched January 19 , Astro 4.2 marks the first release of the framework of almost all community-built features. Installation instructions for Astro can be found on GitHub .

    To read this article in full, please click here


    Značky: #JavaScript, #Rozne

    • In chevron_right

      Microsoft Blazor adds SortableJS for drag-and-drop lists

      pubsub.slavino.sk / infoworldcom · Tuesday, 16 January - 21:15 edit

    SortableJS , a JavaScript library for creating reorderable drag-and-drop lists, has been wrapped into a component for Microsoft’s Blazor web application builder and renamed Blazor Sortable .

    A common feature for web application development, SortableJS supports touch devices and modern browsers, CSS animation, auto-scrolling, and smooth animations.

    Unveiled January 12 , Blazor Sortable has been made open source on GitHub. The GitHub repo for Blazor Sortable contains source code for the sortable list as well as demos. Developers only need the Shared/SortableList.razor , Shared/SortableList.razor.css , and Shared/SortableList.razor.js files to use Blazor Sortable. SortableList is a generic component that takes a list of items. A SortableItemTemplate then defines how to render each item in the sortable list.

    To read this article in full, please click here


    Značky: #JavaScript, #Microsoft, #Rozne

    • In chevron_right

      Astro web framework adds accessibility audit rules

      pubsub.slavino.sk / infoworldcom · Friday, 5 January - 22:30 edit

    Version 4.1 of the Astro web framework , released January 4, features new accessibility audit rules, custom cookie encoding, and a configuration option for the client:visible directive.

    Available on GitHub , Astro is positioned as a framework for building fast, content-driven websites, web applications, and dynamic server APIs. Astro 4.1 adds two audit rules for the dev toolbar. Developers now will be warned about unsupported ARIA (accessible rich internet applications) attributes and missing attributes required for the ARIA role.

    To read this article in full, please click here


    Značky: #Rozne, #JavaScript

    • In chevron_right

      Oracle introduces JavaScript support in MySQL

      pubsub.slavino.sk / infoworldcom · Wednesday, 3 January - 22:30 edit

    Oracle has introduced JavaScript support in the MySQL database, allowing developers to write JavaScript stored programs, i.e. JavaScript functions and procedures, in the MySQL database server.

    The capability was announced on December 15, 2023 . The JavaScript stored programs will be run with the GraalVM , which provides an ECMAScript-compliant runtime to execute JavaScript programs. Developers can access this MySQL-JavaScript capability in a preview in MySQL Enterprise Edition, which can be downloaded via Oracle Technology Network (OTN) . MySQL-JavaScript also is offered in the MySQL Heatwave cloud service in Oracle Cloud Infrastructure (OCI), AWS, and Microsoft Azure.

    To read this article in full, please click here


    Značky: #JavaScript, #MySQL, #Database, #Rozne

    • In chevron_right

      Building tables in React: Get started with react-table

      pubsub.slavino.sk / infoworldcom · Wednesday, 3 January - 10:00 edit

    Displaying data in tables is a lasting requirement of user interfaces. React Table is described as an “almost headless” table library for React. It focuses on giving you all the data aspects in a convenient format and leaves the styling and componentizing to you. This approach makes it easy to build powerful data grids and style them as needed. In this article, we'll use the react-table library to build a table with styling, filtering, sorting, and paging.

    What is react-table?

    The most recent version of the react-table library is part of TanStack , a larger project that provides components in a framework-agnostic way. Accordingly, react-table can drive table components for several frameworks: React, Solid, Vue, Svelte and applications built using TypeScript or JavaScript. Our examples focus on building a table in React.

    To read this article in full, please click here


    Značky: #React, #Rozne, #JavaScript

    • In chevron_right

      How to use async and await in JavaScript

      pubsub.slavino.sk / infoworldcom · Wednesday, 26 April, 2023 - 09:00 edit

    One of the nicest improvements to developer experience in recent JavaScript history is the introduction of the async and await keywords, introduced in ES2017. Together, these elements make it easy to write asynchronous logic with a simple syntax. Under the hood, they use promises, but for many cases, async and await will help you write more readable and maintainable asynchronous code without thinking about implementation. In this article, we'll first look at how to use async await in your JavaScript programs. Then, we'll talk about some of the downstream implications of using the syntax.

    To read this article in full, please click here


    Značky: #JavaScript, #Rozne

    • chevron_right

      Revivez l’expérience des anciens geeks avec PCjs

      news.movim.eu / Korben · Friday, 31 March, 2023 - 07:00 · 1 minute

    Mis au point par Jeff Parsons qui a eu le plaisir de découvrir l’informatique dans les années 70/80, PCjs est un code en javascript qui est capable d’émuler toute une série de matos et de logiciels comme la calculatrice TI-57, le premier Space Invaders (1978), évidemment Multiplan d’IBM (1982), Windows 1.0 jusqu’à 95 ou encore des jeux comme Wolfenstein 3D (1992) ou Dune II (1992).

    Cela va vous permettre de vive l’expérience de ces vieux coucous avec leurs CPU ultra pas rapides, des sons bippés à couper le souffle et leurs interfaces hautes en couleurs, tout ça sans avoir à quitter votre navigateur. Et oui car tout est accessible directement via ce site : https://www.pcjs.org .

    PCjs - émulateur de système d'exploitation vintage des années 80

    L’idée évidemment est de préserver un petit peu de ce patrimoine informatique et logiciel et bien sûr de se faire plaisir sans galérer à retrouver de vieilles disquettes ou même un logiciel de virtualisation compatibles.

    Voici tout ce que vous allez expérimenter sur PCjs :

    • Calculatrice programmable TI-57 (1978)
    • Ohio Scientific Challenger 1P (1978)
    • Space Invaders (1978)
    • Microsoft Adventure (1981)
    • DONKEY.BAS de PC DOS 1.00 (1981)
    • VisiCalc (1981)
    • Multiplan 1.0 (1982)
    • Executive Suite (1982)
    • PDP-11/70 avec RT-11 4.0 (1982)
    • CP/M-86 (1983)
    • COMPAQ Portable avec graphiques monochromes (1983)
    • Zork I: The Great Underground Empire
    • Exploring the IBM Personal Computer (1983)
    • Adventures in Math (1983)
    • Lotus 1-2-3 (1983)
    • Norton Utilities 2.0 (1983)
    • Fantasy Land EGA Demo (1984)
    • Microsoft Word 1.15 (1984)
    • Nine Princes in Amber (1985)
    • Rogue (1985)
    • Microsoft Windows 1.0 (« Premiere Edition »)
    • Microsoft Windows 1.1 sur CGA (1985)
    • Microsoft Windows 1.1 sur EGA (1985)
    • Balance of Power (1985)
    • IBM OS/2 1.0 (1987)
    • VGA Black Book Tests (par Michael Abrash)
    • Microsoft Windows/386 2.0 (1987)
    • Microsoft QuickPascal 1.00 (1989)
    • Microsoft Windows 3.0 (1990)
    • Life & Death II: The Brain (1990)
    • The Oregon Trail (1990)
    • Commander Keen (1991)
    • Wolfenstein 3D (1992)
    • Dune II (1992)
    • Microsoft Windows 3.1 (1992)
    • Microsoft Windows 95 (1995)
    PCjs - simulateur de machine de bureau MS-DOS et Windows 3.0

    Toutes les sources du projet sont sur Github et vous pouvez contribuer. Chacune de ces machines est codée entièrement en javascript et utilisent un format XML qui défini les composants à activer ou non, donc vous pouvez aussi vous approprier le truc et créer vos propres machines assez simplement.