4 ms·
Am I the only one who looks at HTMx and thinks "this is like CICS all over again"?
by mikece 3y ago
Am I the only one who looks at HTMx and thinks "this is like CICS all over again"?
- jaipilot747 3y agoThis CICS? https://en.m.wikipedia.org/wiki/CICS https://en.m.wikipedia.org/wiki/CICS Could you elaborate?
- mikece 3y agoYeah that one: full screen sent down from the mainframe on the beginning of a page-interaction, then only the parts of the screen that need to be changed are sent over the wire based on commands and input. With CICS it was all about reducing the number of bits moving over the wire to an absolute minimum which isn't the case here but partial screen replacement without refreshing or reloading the entire page is very reminiscent of the design.
- varispeed 3y agoIt looks like Angular on crack. I can see how this can quickly turn into unworkable mess.
- ris58h 3y agoNot at all. What makes you think that it looks like Angular?
- samsquire 3y agoAngular 1, I don't know about Angular 2 had syntax like ng-repeat <a class="item" ng-repeat="action in activeField.actions" ng-click="follow(action, $index, $event)"> {{action.text}} <i class="{{action.icon}} icon"></i> </a>
- hliyan 3y agoA syntax-based comparison feels a bit... superficial. One is an MVC based SPA framework. The other is best described (in my mind) as syntactic sugar over AJAX calls that replace inner HTMLs of selected targets.
- itslennysfault 3y agoYeah, honestly (ignoring syntax) it looks A LOT like the original ROR ajax implementation. Having the server render a partial and swaping out the inner html to do a partial page update.
- samsquire 3y agoNo - from my perspective - it's important and for understanding maintainability. The syntax helps understand the mechanism of using HTML directives that are picked up by clientside javascript at pageload or AJAX HTML partial replacement, which is what GP was getting at with its comparison to Angular 1. Angular 1 picks up directives the same way (and Knockout). In react you don't use the mechanism of directives, you use JSX or React.createElement in standard Javascript statements or expressions. I think it's important because it decides your templating and composition, which is what React solves with its Components. I played with pjax which is similar. EDIT: For example, you might not want ng-click in your HTML if you think that is wrong for example, as it's like DHTML and onclick="" (I don't have a perspective on this at this time)
- ris58h 3y agoThere are a lot of frameworks/libraries/template-engines that use custom attributes and similar syntax and Angular definitely wasn't the first one.
- jbergens 3y agoI think Angular looks like Htmx on crack but I do remember that Angular was first. We used it in a project and it worked perfectly. If you have the need to write a lot of logic and changing of most of the UI parts dynamically on the page then React/Vue/Svelte/Angular is better suited. If you on the other hand has page that could be server rendered and some parts or lists that should load new parts into the page this may be the easiest way to do that. You can also combine it with any backend language instead of us having one framework for C#, one for Java, one for Go and so on. I think this is one of the biggest USPs for Htmx.