Sunday, March 26, 2023
Learning Code
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
Learning Code
No Result
View All Result
Home JavaScript

Dynamic Web Apps Without JavaScript

learningcode_x1mckf by learningcode_x1mckf
October 31, 2022
in JavaScript
0
Dynamic Web Apps Without JavaScript
74
SHARES
1.2k
VIEWS
Share on FacebookShare on Twitter


You might also like

Hackers Inject Weaponized JavaScript (JS) on 51,000 Websites – GBHackers

4 Ways to Remove a Specific Item From a JavaScript Array – MUO – MakeUseOf

Toolkit Allows JavaScript Devs to Program Embedded Devices – The New Stack

DjangoCon and Devoxx Belgium just lately reported examples of interactive internet purposes developed with out JavaScript builders. The showcased htmx HTML-first framework appears to focus on these purposes that primarily suggest a pleasant interface to CRUD operations over distant sources. In a single case, the staff was capable of take away the JavaScript developer.

At DjangoCon 2022, David Guillot reported reimplementing his company’s SaaS product with HTML-first framework htmx in two months with the next outcomes:

Guillot gladly talked about that 15,000 strains of JavaScript code disappeared from the codebase; performance improved (as measured by time to interactive and reminiscence utilization); the one JavaScript developer within the staff left and back-end builders turned to full stack builders.

The htmx staff nonetheless warns that such spectacular outcomes have been achieved as a result of this explicit SaaS software was match for htmx’s HTML-first method:

These are eye-popping numbers, and so they mirror the truth that the Contexte software is extraordinarily amenable to hypermedia: it’s a content-focused software that reveals plenty of textual content and pictures. We might not count on each internet software to see these types of numbers.


Nevertheless, we would count on many purposes to see dramatic enhancements by adopting the hypermedia/htmx method, no less than for a part of their system.

At Devoxx Belgium 2022, Wim Deblauwe showcased the kind of interactivity that htmx can implement with none JavaScript: search-as-you-type enter subject, replace of the consumer interface as some distant useful resource is affected by CRUD operations, recurrently refresh the consumer interface with server-sent information, and extra.

The htmx staff considers an application a good fit for the framework if the UI is generally textual content and pictures; the UI principally interfaces CRUD operations; and HTML updates principally happen inside well-defined blocks. Conversely, purposes with many, dynamic interdependencies, that require offline performance, or replace state extraordinarily regularly wouldn’t be first for htmx’s hypermedia method.

In an htmx software, the server returns pages or fragments of pages.


<button hx-post="/clicked"
    hx-trigger="click on"
    hx-target="#parent-div"
    hx-swap="outerHTML"
>
    Click on Me!
</button>

The earlier HTML excerpt encodes that when a consumer clicks on the button, htmx points an HTTP POST request to the /clicked endpoint. Htmx makes use of the content material from the posterior response to exchange the aspect with the id parent-div within the DOM. With htmx, any aspect (i.e., not simply anchors and varieties), any occasion can set off an HTTP request. The HTML response from the server solely updates the related a part of the UI. For the total overview of htmx capabilities, builders might refer to the documentation.

Curiously, htmx is usually showcased by back-end builders who belong to non-JavaScript ecosystems (e.g., Python/Django/Flask, PHP/Laravel, Ruby/Ruby on Rails). As Guillot talked about, with htmx, back-end builders prolong their scope to your complete stack with out having to study JavaScript, npm, Webpack, React, CSS-in-JS, and plenty of extra. Matt Layman, in his You don’t need JavaScript talk summarizes:

It’s simply this constant churn within the [JavaScript] ecosystem and including numerous complexity onto a movement once you’re making an attempt to ship an internet software. You wish to simply get an expertise on the market that really works for folks. However then you find yourself combating with [the toolchain].

[…]

At a specific amount of scale, JavaScript is usually a incredible factor to construct into your purposes. However for a mean particular person or a small staff, it’s a ton of additional complexity so my suggestion is: simply don’t. We’ve different choices.

htmx is an open-source venture beneath the BSD-2-clause license.

htmx claims to offer AJAX, CSS Transitions, WebSockets, and Server-Sent Events immediately in HTML, utilizing attributes, so builders can construct consumer interfaces with the simplicity and energy of hypertext.





Source link

Share30Tweet19
learningcode_x1mckf

learningcode_x1mckf

Recommended For You

Hackers Inject Weaponized JavaScript (JS) on 51,000 Websites – GBHackers

by learningcode_x1mckf
March 25, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Hackers Inject Weaponized JavaScript (JS) on 51,000 Websites  GBHackers Source link

Read more

4 Ways to Remove a Specific Item From a JavaScript Array – MUO – MakeUseOf

by learningcode_x1mckf
March 24, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

4 Ways to Remove a Specific Item From a JavaScript Array  MUO - MakeUseOf Source link

Read more

Toolkit Allows JavaScript Devs to Program Embedded Devices – The New Stack

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Toolkit Allows JavaScript Devs to Program Embedded Devices  The New Stack Source link

Read more

Select data value from grandparent div? – JavaScript – SitePoint

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Select data value from grandparent div? - JavaScript  SitePoint Source link

Read more

How to Handle Errors in JavaScript – Programming – MUO – MakeUseOf

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

How to Handle Errors in JavaScript - Programming  MUO - MakeUseOf Source link

Read more
Next Post
Programming languages: Java 19 arrives and here’s what’s new

Programming languages: Java 19 arrives and here's what's new

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related News

Beginner’s guide to Swift arrays

Beginner’s guide to Swift arrays

September 8, 2022
How to Check Your Java Version on Windows 11

How to Check Your Java Version on Windows 11

October 20, 2022
100 Percent Remote — Full Time/ Permanent Role — Java Consultant9+ Years – Tanisha Systems, Inc. – new york, NY

100 Percent Remote — Full Time/ Permanent Role — Java Consultant9+ Years – Tanisha Systems, Inc. – new york, NY

January 20, 2023

Browse by Category

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

RECENT POSTS

  • YS Jagan launches Ragi Java in Jagananna Gorumudda, says focused on intellectual development of students – The Hans India
  • Disadvantages of Java – TheServerSide.com
  • Advantages of Java – TheServerSide.com

CATEGORIES

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

© 2022 Copyright Learning Code

No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#

© 2022 Copyright Learning Code

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?