> can you ctrl+click "/clicked" and go to definition?
Actually, you can and you should–this is a best practice for building maintainable apps. You shouldn't be hard-coding 'magic string' API paths throughout your views. You should factor them out into variables and then use those same variables for both routes and views.
Many good routing systems have this functionality.
Eh, not really. Htmx is a tool that you can plug in to your system. It doesn't dictate what system or architecture you use. You can have a component model, or you can have old-fashioned string-based HTML templates. Htmx is agnostic to that.
I feel that as software engineers, instead of talking about things like 'feels like magic', we are capable of reading the docs and understanding what something actually does, especially when it's pretty simple: https://htmx.org/attributes/hx-get/
But...your code examples are not doing the same thing though. The React example just does a `GET /clicked` request and discards the response. The htmx example does a GET request and swaps the response into place, replacing the button. This is analogous to an `<a>` or `<form>` tag that makes a request, gets the response, and then replaces (ie swaps) the page.
Try making your React example do what the htmx one does. That's when you'll see the complexity start to creep in.
But how often do you actually need that when writing a reactive app? In most cases I have worked with you want the button to persist and load some external data that updates a reactive state.
Sure, try doing whatever equivalent makes sense in React. Then try comparing the complexity of the two approaches. The point is to compare apples to apples as much as possible.
I didn't say Yaron Minsky pushed OCaml because he wanted to learn it. I said it was because he liked it. Still, the distinction isn't important to the point I was trying to make.
Renaissance may have an unmatched PnL as a percentage, but jane street and Citadel, as market makers, just do way more volume than renaissance and their absolute PnLs are substantially greater than that of Renaissance.
Sure you would, but would Millennium or other high-caliber firms? It seems they want engineers with C++ experience and that's not exactly 'easy' to pick up 'quickly'.
reply