Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

HTMX is neutral to composability, since it's limited to connecting and orchestrating parts of a system that may or may not chose to provide components.

Does your backend has components? Does your scripting toolkit has components?

HTMX doesn't care either way, and will use whatever you give it.

You can pick reusable django forms, alpine js, some manually created boundaries, a jquery module... You can even drop react on a single page because there is a widget you like and it's not loaded often.

People may be tempted to talk about HTMX using irrelevant points of references.

It's not providing an SPA with a component architecture, that's the point.

The readers that are very used to modern JS stacks and never had to deal with the web before 2010 may want to read:

https://www.bitecode.dev/p/a-little-taste-of-htmx-part-1

This will give a better idea of how to think in HTMX, which is just a new trick for an old dog.

It's better to use this tool for what it is, with its limits and strengths rather than trying to make it into something it's not.

The reason HTMX can't do many things react is good at is because it's by nature the opposite of react.


HTMX users just use existing JS components.

It's not an XOR proposition.


But you should be able to distribute bundled backend and frontend logic given its paradigm. There is no guidance on what it would take to do this, or what the interface for the components should be to enable it, or how you should build and share it.

Without both, I don't see the point because then you need to potentially mix multiple frontend frameworks unless you are strictly using WebComponents.

It's not XOR, but it should be possible to never leave HTMX. If you might need to go outside it anyway, then there is no point - you lose SSR if you just mount a React component anyway.

I understand the argument that HTMX can be complementary, but personally I'm not looking for a complementary technology. Show me how I can use it exclusively and I'll be more interested.


No, that's not the purpose nor the scope of HTMX. This is thinking in term of other types of web framework, but it's not the design of this tool.

Since it's neutral to the backend or scripting tech you chose to use, it cannot, and should not, step into that realm.

It provides a more simple, basic service.

You may be tempted provide a django template + view + htmx reusable component.

Or a rail enpoint + htmx reusable component.

But that would not be universal, it would be super specific. Maybe useful in your company, across team, but that's it.


That's OK - but then I'd say I'm not interested in it based on its project scope.

I have enjoyed it for small demos but I wouldn't pitch it to my company to use in the real world based on its philosophy.



I've read this and think it makes a ton of sense. I still think it's lacking an ecosystem strategy that would propel it further.

I would like be able to install an HTMX component, customize the route, and have some type of lifecycle where I can plug it into the rest of my backend. I know this might seem silly but being able to easily share what you've built has been a cornerstone of every widely successful library or framework.

It may not be a core goal of HTMX, but if not I'd really like to see someone attempt it to at least judge it on its merits instead of assuming it wouldn't be a useful addition.

If I can cargo install an HTMX component that covers all the rendering conditions and I just need to pipe data in and out of it, I'd very much like to try that. I can rig it up in my own codebase but it's not something one would probably publish without a suggested pattern to follow.


That's how engineering is supposed to work: you get to decide what to use based on your problems and the nature of the solutions.

Beyond the memes, this one Montana guy is very reasonable.


Schools are only partially made to teach. They are also serving the interests of the people running them, and of course, they are filters.

What's more, many teachers actually don't produce anything with what they teach, and have a curiculum forced on them by people making it up on theorical basis.

The result is that half of the professional training I give have to cover those holes. Having to teach debuggers to pro devs is weird but a reality.

In fact, shameless plug, but this is why I have a articles dedicated to pdb, venv and pip on http://bitecode.dev.

Because the demand is very high.


They were also made to train a workforce for industrial production. Some part of the school curiculum is detrimental for todays tasks.


You have a product here.


Yeah - I was looking around this week and think there is a “gap” for a good simple proxy - speed bump is nice but I am thinking just let my application do it’s thing, then let me replay certain traffic, that JSON needs to

I think a programmable proxy with simple hooks is what I want


From a UX point of view, excluding calls, it's a superb achivements.


They fixed calls like days ago, were awful. But whatsapp is still better for calls imho. With the pace of innovation, even being very late in the game, but very focused, Telegram has very chance to outpace most apps in 2-5 years.


As a Frenchman, when I worked in the valley, people told me to tone it down, that I could come off as rude.

On my side, I wanted to slap those people calling others they barely knew "friends", overselling their lunch as "amazing", assuring an outcome with certainty, virtue signaling or refusing to say when something was completely wrong. It's like they were always in a tiny marketing process.

Eventually, I learned to smooth communication, and to appreciate their enthusiasm.

But it did take time.

Also I must confess I have an American filter permanently on, now. If something comes from the US, I just assume most of it is BS until proven otherwise.


I'm an academic from Europe and routinely tell my PhD students to "be more American" or "write like the Americans" to mean don't be shy exaggerating and presenting their work like much more important than it really is (or perceive it to be).

Because indeed, the American academic culture is full of BS (perhaps the most glaring example being that the cornerstore of hiring is the recommendation letter, which to me is essentially overt nepotism - and in a recommendation letter, every candidate is the best ever, Gauss incarnate, the Chosen One to break the frontiers of knowledge, because if you say even the slightest bad or ambiguous think they're not going to get hired. But everything is like that).

The thing is that in academia everything is competitive (grants, conference acceptances, etc.) so we Europeans must be Americans as well if we want to be successful, because it's hard for a paper, proposal, etc. to get chosen if you're being realistic while some of your rivals are exaggerating everything. This is something I realized when I worked in the UK (not America, of course, but more "American" than the rest of Europe) and then even more when I worked with actual Americans, and I consider this realization to have boosted my career considerably.


Felt the same in Ohio. I'm polish.

Spent 6 months at Ohio State as exchange student and I loved it and hated it.

I remember once being asked how was I and me answering honestly, just for an american friend to reprimend me on actually answering.

I was like, "why the hell you asking how am I if you don't care?".

Got to admit though no place is easier to make friends than US. This excess talking can often lay fertile ground to deeper connection that is harder to find elsewhere.


ISMO on learning american expressions:

https://www.youtube.com/watch?v=YNV0rMdeW60


Over the past 6 years married to a woman who grew up in China, I've become more aware of how often we Americans say the exact opposite of what they mean, but instead convey their actual meaning through context, tone of voice, or whatever.

It took us about 2 years to really learn how to talk to each other.


Could you give us some examples?


Well, I was in China at a reunion dinner event with my wife a couple weeks back, and she asked me if I wanted some of some dish, and I said, "Sure, ok," where I said it in a way to really mean, "Not so much, but okay, I'll take a bite just to be polite." (It was my wife's class reunion event.) And it kept on going like that for the next 4 or so dishes, and my wife kept on seeing that I was getting more and more annoyed, so she kept on trying to feed me more, which just meant that I kept on getting more stuff I really didn't want to eat.

There are other times which are the opposite. Like, when I ask my wife if she wants some rice or some porridge, and she says very imperatively. "I will do it myself." She actually means straightforwardly, I am going to do it myself, not that she's displeased with me and that she's not going to accept any token from me and is going to punish me in several small ways now. (Which is what many of my ex-girlfriends would have meant.)

It's actually hard to give examples in a text medium like this, because so much of it is really context and tone of voice.


>a woman who grew up in China

That's an odd way to say what you're saying


I assume you're implying they meant she's Chinese.

From GP's text I assumed she's not Chinese but for whatever reason (parents worked there, she was adopted as a grown-ish kid, something else) she spent most of her formative years there.

Maybe we're both wrong but on its face what GP wrote doesn't strike as odd at all to me.


she could be chinese, but given how many chinese live in america, stating that she grew up in china is a helpful distinction.


People in the valley seem to be quite different from people in the southern states (the only part of the US that I have been to). I wonder if the differences within the USA are actually be as significant as the differences between parts of the US and Europe.


Reading through the article, I very much sympathized with the author's Dutch attitudes towards American mannerisms. And I'm American.

All of my life I've felt at a distance from others who exhibit typical American social habits, and have actually got along better with people from various other cultures such as eastern Europe. (There are a lot of first and second generation immigrants from eastern Europe where I live in the US.)

I have always been perceived as rude and blunt, and in recent years those with typically American social attitudes have even begun pathologizing behaviors like mine as being "on the spectrum".

As to why I am like this was a mystery to me in childhood. I acted just like my family and extended did! Everything was normal at home, and then I would treat someone at school like I would treat a sibling and it would result in arched eyebrows.

Turns out my family's attitudes towards socializing were strongly influenced by my mother, since she was a stay at home parent. And she came from a part of the US made up of small agricultural communities that were mostly German and Dutch in origin. These small communities had transplanted their national cultures in little bubbles all over the US, and by dint of mostly isolation from the broader culture had maintained those mores for centuries.

It was only when my mother had moved away to the city that this culture shock occurred, about 150 years after immigration.

So yes, there is a lot of cultural variation in the US, probably not as much as in Europe, but it exists. There are subcultures within the US of various vintages that exist alongside the mainstream culture that have all learned how to be different and coexist at the same time.


When I first visited the US in 1981, I was pretty convinced (as a young, naive and somewhat ignorant Brit) that the differences between someone from New Orleans and someone from Portland, Maine were far greater than anything you could find between any two parts of Europe.

Decades later, that's clearly an exaggeration or just plain wrong, but it is certainly true that people do underestimate cultural differences within the US, and overestimate them within Europe.


I don't think people overestimate the cultural difference between Finland and Italy for example, they are extremely different.

The language barriers makes Europe much more culturally diverse, but also makes that diversity much harder to discover since you can't fully understand a culture without learning its language.

It is more like the cultural difference between Canada and Mexico, you don't have such a wide spread within USA. You have some parts that is more like Canadians, and some parts more like Mexicans, but Mexico to Canada is still a bigger cultural leap than anything within USA.


I think that the language diversity tends to make it less apparent that people are actually more alike than they seem. I am not claiming that Finns and Italians as a culture are identical other than language, just that the language difference makes them seem more different than they actually are.

The opposite is true in the USA: nearly everyone speaking English to each other, watching the same TV shows, driving the same cars, eating the same breakfast cereals - easy to believe they must all be culturally very similar, when in fact they are not.


We know there are differences within countries, but those differences tend to get exaggerated since you live in them. Even in European countries people tend to say "People from city X are very brash, people from city Y are very warm and welcoming", so they know that even though they consume the same news, speak the same language etc things can be different. Or they say "People from area X are very racist, area Y is very liberal".

But we also know that there are much bigger differences if you cross many national borders and language barriers by going to the other side of Europe, they too will have those micro differences but when going there you also get many major macro differences.


Case in point: in German, we even have the same words. They are mildly antiquated, but "Gesellig" and "Geselle" are almost 1:1 translations from the Dutch "gezellig" and "gezel". As a German who has worked in the Netherlands, I never felt a big difference in everyday attitude (though I have to admit the company is based very near to the German border, so maybe the differences would be bigger when compared to Amsterdam or something).


So, where do you stand on Oachkatzlschwoaf versus Eichhörnchenschwanz? O:-)


As a middle-western German, it's obviously Eichhörnchenschwanz! Haha ;)


Even more, in north western Germany they have a dialect called "Plattdeutsch" that is closer to the Dutch language than to German.


https://pdc.wikipedia.org/wiki/Pennsilfaanisch_Deitsch The Pennsylvania 'Dutch' Pälzisch dialect is enough to give a headache... https://pfl.wikipedia.org/wiki/Riograndenser_Hunsr%C3%BCckis... Pälz-Portuguese creole


Then you should practice. The chances you never experience it are low, and better learn when you don't have to.

Besides, it will give you a better appreciation of human achivements once you don't take hot water for granted.


Stalin and Mao were wealthy. That's why many people argue we never implemented communism, since our attempts ended up as oligarchies.

Just because you don't have a paper stating you own something doesn't mean you don't control it.


It does, because power is bought with money and if you buy a vote, the richest win.

Also, resources are not infinite. Eg: There is a limit to the number of the best doctors and their time. Fresh air is locally finite, and jets do pollute more per person.

So despite the fact that in theory we are not playing a zero sum game, practically at the scale of one life, many things can be approximated as such.


There is a case to be made to not install all updates as soon as they are available.


I do that (wait a bit) on macOS and iOS, but I wasn't able to explain to my Windows that I don't want to update automatically. Especially in the middle of some overnight computing task.


This is a pro feature on windows. But you can enable it on home editions with some power shell commands or by side loading the program used to set the relevant settings on pro editions (group policy editor).


I have pro and it conveniently “forgets” my update settings and will still do it whenever if feels like. Microsoft doesn’t understand that no means no.


Did microsoft change that, or does Windows 10 Home still force users to install the latest updates immediately?


Do they dogfood these updates internally like Google does with Android and Chrome OS?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: