HNHacker News
TopNewBestAskShowJobs

silver-arrow

320 karma · joined December 12, 2020

submissionscomments
silver-arrow··on Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
Hi. Sure. The experience is extremely similar to the traditional/original Server Side Rendering model; that is, sending back HTML to the user agent. Where that traditional model was much too limited, by only allowing full page refreshes and only two elements that could do server interaction (<a> and <form>), HTMX is completely robust.

HTMX allows you as the developer to fire a server side request from ANY HTML element for all the HTTP METHODS (GET, DELETE, POST, PUT etc.). In addition, you decide and design what HTML fragment you will return from the server and where it should be swapped into in the browser's page. So instead of full page refreshed, you are surgically updating anywhere in the DOM quickly - very quickly.

I want to be clear, you, as a developer, are thinking this model and flow FROM THE SERVER SIDE of things. You are returning fragments or chunks of HTML as the response, NOT JSON. With all things in technology, obviously, there are trade-offs, but eliminating the JSON layer and the client code layer, you are eliminating a massive class of complication.

Also, I would like to stress, that this does sound very similar to jQuery and other things like that, but it is pretty different and better IMO because it is coded as attributes in the element tags. As they say on their site, it truly feels like this is what HTML would have felt like if it was continued and completed, instead of veering off into heavy use JavaScript land like we did as an industry.

There are many nice little features to add to the dynamic feel of your web apps, such as in progress indicators and CSS animations; again all specified as attributes in the tags.

Finally, the development environment is basically a non-existent complication. It is a tiny (~12k) js file and <script> inclusion. You choose any traditional SSR library for your language of choice. HTMX can actually breathe life back into server side languages, where instead of writing monotonous and boring end-points attempting to be some sort of data access layer, you are writing fully robust code, and you have full power and access to your real data layers.

Yikes hope that wasn't too verbose and answered your question ;) But I really love HTMX after so many years of what I have considered toiling with web UIs. Hypermedia is supposed to be the ultimate thin client model as termed by HATEAOS, not insanely rich clients trying to emulate client server interactions through REST API IMHO.

silver-arrow··on Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
Big fan of HTMX here. We have found it more productive for our team than the more mainstream JavaScript React type libraries for the majority of the dynamic web apps we build. It seems so much easier to grasp the server-side rendering hypermedia model. In addition, the simplicity of the development tools and process is far better. Love the model of HTMX with some _hyperscript sprinkled in. In the rare use cases this model won't suffice, then and only then do we plug in something more JavaScript heavy - not very often!
silver-arrow··on Moving from React to htmx
We have experienced similar results moving to htmx and a hypermedia approach for building dynamic web apps. It simplifies development greatly and has resulted in better productivity.

Like the results cited here, we too are extremely pleased that the majority of our coding now falls into our preferred language - Clojure (using Hiccup). Very pleasant experience!

silver-arrow··on High property taxes are good
No, property taxes are completely immoral.
silver-arrow··on Clojure 1.11 is now available
I guess for me, I like having them be different things, like they are in Clojure. But that could certainly be because Clojure is my first and only exposure to a LISP type syntax.
silver-arrow··on Clojure 1.11 is now available
So thankful to be programming in Clojure the past few years. Thank you, Clojure Team, for all you do!

My favorite things about using Clojure: 1. Runs on the JVM. Battle tested, tons of libraries, and well engineered. 2. Immutable Data Structures. I wouldn't want to live without this safety ever again. 3. LISP syntax - so simple to remember and just basically code functions! I also find reading Clojure code very simple vs other procedural languages. 4. REPL development. 5. Transducers - not unique to Clojure, but just love them so listed it.

Great language.

silver-arrow··on The decline and fall of Java on the desktop
MoneyDance was and is a very good Swing desktop application. I have used it for years and love it.
silver-arrow··on Moderna’s HIV vaccine has officially begun human trials
My God you have it exactly backwards!
silver-arrow··on Moderna’s HIV vaccine has officially begun human trials
Please many countries like Israel were lit up with delta after being touted as the poster boy for “vaccinations” in June 21. Stop the nonsense. The data is clear, the effectiveness diminishes after 3 months. You can’t vaccinate your way out of a pandemic with pathetically leaky “vaccine”
silver-arrow··on Moderna’s HIV vaccine has officially begun human trials
Why did you get flagged when you are absolutely correct. Why would you think that mRNA vaccines, which failed for so many years in testing, would presto work this time. and they clearly didn’t work this time, unless you drone around mumbling how thank god your symptoms would have been worse without it.

As a matter of fact, the “trials’ during warp speed were so flawed to show efficacy it is pathetic. But these tech geeks here know better.

silver-arrow··on Ivermectin shows that not all science is worth following
Thank you. Exactly.
silver-arrow··on Ivermectin shows that not all science is worth following
I agree but those were scientists from the past that practiced real science. Meaning they accepted counter arguments and evidence; not just dictate. They also discovered through the scientific method that you can not vaccinate for corona viruses

They also were acutely aware you should never mass vaccinate during a pandemic.

They were correct and that is why you see the results in Israel, Singapore, England, and now the US, that you are seeing. That these are bad therapeutics at best. They could end up being worse.

The scientist and doctors who accomplished what you enumerated are indeed out there, but their voices are being suppressed by bureaucrats that now represent crony corrupt science; like fauci.

silver-arrow··on Ivermectin shows that not all science is worth following
Curing serious disease? That’s rich.
silver-arrow··on YouTube is banning anti-vaccine activists and blocking all anti-vaccine content
Yikes. Rigorous testing? Yet concerned about long term effects of covid itself? With lack of logic like this no wonder we have leaders exploiting the unvaccinated.
silver-arrow··on YouTube is banning anti-vaccine activists and blocking all anti-vaccine content
Past attempts to vaccinate corona viruses say you are wrong. Israel’s current live study says you’re wrong
silver-arrow··on YouTube is banning anti-vaccine activists and blocking all anti-vaccine content
Do no harm. You have no idea of the real risk from the vaccine because they really aren’t looking. Not 1 child should have been made to suffer myocarditis or died from the vaccine vs their risk of covid. Not one. But many have.
silver-arrow··on YouTube is banning anti-vaccine activists and blocking all anti-vaccine content
That is a pretty naive take on “safe”. Would you like for me to list the MANY actually tested and approved drugs that turned out to have nasty or deadly effects realized years later which resulted in them being pulled? It is actually stunning to see such trust in something so untested in real world situations knowing from who is producing it. Oh I could list many other drugs! This not even counting drugs like OxyContin or benzodiazepines.
silver-arrow··on YouTube is banning anti-vaccine activists and blocking all anti-vaccine content
No. Variants spring up because of non sterilizing vaccines. We always knew to NEVER engage in mass vaccination during a pandemic situation. We also knew we can’t vaccinated against corona viruses. As evidenced by Israel and other countries.
silver-arrow··on America is substantially reducing poverty among children
Agreed. Simply a changing unit of measurement. Wait until this finishes out, you will see decimation of the middle class
silver-arrow··on The Future of Clojure
This is an excellent comment and it matches my experience with the language very closely. After a career with many languages and paradigms (C, C++, Java, javascript, Swift...), then pushed to do Clojure the past 3 years, all the points you make above became so obvious that is in now EXTREMELY painful to work in any of the other languages.

I think a couple pain points need to be remedied in the community so that Clojure is more inviting to the general programmer, who like you mentioned would ultimately have an easier time with Clojure once bootstrapped into the language.

The primary one for me was being met with Emacs out of the gate as the preferred and touted editor for Clojure. I dove into that for a good year, became proficient with it but sorely regretted it. It was a decision point and cognitive hurdle I wish wasn't even presented to me in the beginning. IntelliJ/Cursive or something like it is a better way for most newcomers.

Earlier books on Clojure were way to "intellectual" in my opinion and pretty offputting to the general programmer. Luckily that area has improved in recent years with books such as "Getting Clojure" and "Programming Clojure"

Also the newcomer could be confused about what a repl is and how it functions with the IDE or editor. It would be better if editors and plugins focused on raw Socket or prepl repls over middleware repls like nrepl.

I would hope actually that some resources in the community would make an awesome LSP Server for Clojure so that any editor that supports LSP would have a great Cursive like experience. "clojure-lsp" is a great start but needs more resources.

The points made above by puredanger are so very true in my experience and I am so lucky and joyful to be working on Clojure systems.

← PreviousPage 2 of 2