Hacker News new | past | comments | ask | show | jobs | submit | Kaotique's comments login

It is interesting, but I really dislike the way it tries to bash every other tech in the blog post, on the homepage and in the docs itself. The tone is very confident, but it will put you open to a lot of scrutiny.

Instead it could really use a lot more explanation on how it works. If you make comparisons make sure they are fair. The image "JavaScript mixed together" and "Strict separation of concerns" is just comparing apples with oranges. Multiple times in the docs it compares a huge complicated JSX like component and replaces it with 3 lines of html and 3 lines of css. I don't believe that it does the same thing.

Some of the claims are strange. It praises standard HTML but apparently you have to use some custom Markdown syntax to write it. How does that add up? And on top of that it also introduces new syntax for loops and variables.

This could all work perfectly fine. But my suggestion would be to talk more about how it works and what are the advantages and less trying to bring down competitors. It could use less grand claims and focus more on what it really does.


> Multiple times in the docs it compares a huge complicated JSX like component and replaces it with 3 lines of html and 3 lines of css.

I've seen my fair share of React code, and the code he is displaying is definitely idiomatic React.

> It could use less grand claims and focus more on what it really does.

Agreed. While I appreciate that a rationale is needed for something like this, I think his presentation of the rationale was far too verbose compared to diving into some code.

Maybe I'm not the target - I would have preferred more code and less pontificating, because I 'noped right out of React and others. What I have as a replacement in standard JS, HTML and CSS is unsatisfying to me.


> the code he is displaying is definitely idiomatic React

It's really not. There's nothing, for example, stopping you from using <dialog> in React. It works perfectly fine and can integrate with any state or event manager if you want it to.

What he's doing is comparing brand-new web features that don't have good support yet with long-standing solutions that were needed years before those web features were a glimmer in anyone's eye.


>> the code he is displaying is definitely idiomatic React

> It's really not.

Of the React projects I've seen (including a ton on github), none of them used the browsers dialog without a React wrapper.

A quick search on google for a React project using `<dialog>` found none. Similar for github.

If you have an example, I'd like to see a link, because I'm skeptical that React projects are using `<dialog>` without wrapping it in React.


I'm not sure what you're searching for or what you consider "wrapping it in React". You need some sort of JS to open and close it.

const Modal = ({ isOpen, onRequestClose, ...rest }: ComponentProps<"dialog"> & { isOpen: boolean; onRequestClose: () => unknown; }) => {

  const dialogRef = useRef<HTMLDialogElement>(null);

  useLayoutEffect(() => {
    if (isOpen) {
      dialogRef.current?.showModal();
    } else {
      dialogRef.current?.close();
    }
  }, [isOpen]);

  return (
    <dialog
      ref={dialogRef}
      onClose={(e) => {
        e.preventDefault();
        onRequestClose();
      }}
      {...rest}
    />
  );
};

> similar for GitHub

Uhm I found some 37-odd thousand results

https://github.com/search?q=%2F%28%3F-i%29%3Cdialog%2F+%28pa...

Probably more out there but I kept the strict jsx/tsx extensions.


You're missing the main point that OP is making: TFA's complaint with these patterns isn't that it's React, it's that it's not using the modern tooling. That is true, but could just as easily be an argument for updating old React code bases to take advantage of the new features. There's nothing inherently React about avoiding using them, it's usually done because of some combination of lack of knowledge of the changes and a need for various reasons to support old browsers. (Yes, a lot of real world use cases still require supporting versions of Safari older than 15.4 [0]).

It's not fair to take these legacy patterns, which are what made React and friends so much better than the other options that were available at the time, and compare them to features that were specifically built with the intention of making those patterns no longer necessary.

Once those new features are supported on most devices (which again, they aren't in many cases) I'm excited to see them incorporated into code bases written in any framework.

[0] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/di...


Yeah there is a lot of idealism in the project - problem is reality doesn’t care about your idea of separation of concerns and most likely your web applications will not benefit from it.

What I mean React and other frameworks went with mixing concerns because of reasons that were practical - for example realization that usually one dev implements HTML and JS code in one task, not like article comes up with designers and devs. In reality lots of designers don’t live in agile sprints and the same repositories as devs there is huge impedance mismatch.


The "separation of concerns" point is very overblown, IMO. It seems to have become a slogan repeated without considering what the goal is, and just completely dismissing components as another valid way of organizing code.

Components have won for a reason - for any given web-based UI component to work it needs to render HTML, to style that HTML, and logic for rendering and behavior. So HTML, CSS, and JS.

It only makes sense to colocate those things so that they're easier to build, understand, distribute, and use as a unit. Often times they're not even separable as the HTML depends on state and logic, etc.

And the weird thing is that any other UI platform has components that combine rendering, styles, and logic together and no-one bats an eye because it would be very odd and cumbersome to do it any other way, but on the web some people think components are bad. And they tend to provide no realistic mechanism for reuse except to use an external system.


Separation of concerns is valid if you look at website as a document.

If you look at website as an application components are valid approach.

I don’t need a framework to make documents - I need framework to make web applications that is why components won so I agree.


I partially agree.

The "separation of concerns" is often misunderstood, and historically people were treating html, css and js like they were completely separate beings, which is of course a recipe for disaster [0].

However, what I'd like to see is separation between logic and presentation. In React world people used to call them dumb and smart components. Then you can use stuff like storybook to gauge your layout before applying "business logic" to the application. On top of that you have an easy way to test your "smart" components.

[0] like that time when I saw an org that decided to be "cloud agnostic" and people started pushing their own databases and http servers to AWS. :)


To add on top.

Usually one does not design a page like website but reusable components that will have its own context and content.

Designer might focus on broad scope how stuff fits in a web app.

That pop-up to edit “task” has to behave the same on 20 different views.

Widget showing task details will probably be integrated also in some far removed place.

That is whole different game that this “standards focused framework” is not addressing and that game was addressed by whole bunch of frameworks that this article nags about.


I think all of their criticism of the current web ecosystem is valid... And I'd rather have someone take a big swing than marginally improve the React ecosystem.

> it could really use a lot more explanation on how it works

How Nue works is _extensively_ documented:

https://nuejs.org/docs/

Most of these questions are also addressed in the FAQ:

https://nuejs.org/docs/faq.html

THe Markdown claim is also explained multiple times on this discussion


You may have already added this in other locations, but it's worth flagging in each comment that you are the creator. I had a suspicion from your tone, but I had to check your bio to be sure.

And, while on the subject of tone: this is not a very effective way to receive constructive criticism. I had exactly the same reaction as OP, as did apparently a lot of upvoters. Communication is a two-way street, but when a significant number of people misunderstand you or can't find the information that you think you put out there, it would be worth listening to them to figure out what you could do to better communicate.

In the end, most people wouldn't even notice or care if they didn't fully appreciate your project— you are the one who is invested in people appreciating it, so it's up to you to take responsibility for the way in which it's communicated. It's not useful to blame other people for failing to understand your docs.


You could deploy HTMX on top of any static site generator and get literally the exact same experience? Your portrayal of any of this as 'novel' just comes across as naive. The technology already exists, I agree its underutilized, but this could have been an advocacy post instead of reinventing wheels that are already quite well made.

HTMX is more like "jQuery on steroids", but Nue is a frontend development framework with universal HMR support. Think Next.js but slimmer. Different tools for different needs.

hence why I said "on top of" a static site generator. By gluing some things together, you can get the same product.

You've done this gluing, sure, but surely at a cost to flexibility. You also didn't even glue, you just reimplemented the whole stack.


In my scouts group we used to organize a father and son police, robber and fence game in the woods at night. Robbers had to transport logs to the fence to gain points. Every player had a string round their arm and you could wrestle the players from the other teams to get it. It was very cool to see the boys battle each other and see dads wrestling other dads, older brothers and scout leaders. Or sneaking in the dark with their dad carrying the logs. It was a real father and son bonding experience. Great memories.


we also played a game in scouts called Survival. One of the funnest activities I remember from the trips we went on. There were different roles and a hierarchy between them which made for varied player experiences.

https://www.scouts.ca/resources/activity-finder/activity-fin...


It is just a delaying tactic. ASML is 5-10 years ahead in their technology so it will take a while for China to catch up. Which will grant the USA some extra time to build its own chip industry and not be dependent on two or three other countries.


Yes, though it's not only about delaying China so the US can catch up in semiconductors, but also about trying to delay China so that they miss their window of opportunity to invade Taiwan.

Xi's aim is to reunify Taiwan with the mainland sometime in the 2020s. The US is trying to deter that using a comprehensive deterrence strategy - military, diplomatic, economic. Hence new US bases in northern Philippines, US supporting Japan in changing its constitution to enable more military buildup, US increasing arms sales to Taiwan, US SSBN publicly docking in Korea, AUKUS, Quad, improved diplomatic relations with India, general derisking/decoupling and relocating of supply chains to Vietnam, Mexico, India, etc.

The ASML and Nvidia bans are just a part of an overall comprehensive delay and deterrence strategy, primarily aimed at thwarting Chinese ability to deploy advanced AI in the near term that could be useful in an attack on Taiwan and potential war vs the US & allies in the next few years.

Yes it does incentivize the Chinese to more quickly develop indigenous advanced chip manufacturing capabilities, but that was happening anyway and everyone including the US knows it can't be stopped at this point. But it's about throwing as many wrenches into Xi's invasion plans and 2020s timeline as possible, and this is just one of many.


> Xi's aim is to reunify Taiwan with the mainland sometime in the 2020s

Do you have a source on that?

> AUKUS

The one that is supposed to result in submarines getting delivered sometime in the 2030s at the earliest? Hardly relevant for the 20s.


> Do you have a source on that?

Xi Jinping's own words. He continues to say publicly that China and Taiwan will be reunified, most recently at his meeting with Biden in SF and then again in his new years speech a few days ago. https://news.ycombinator.com/item?id=38828960

He has been saying that for a decade without equivocation or ambiguity. If we take him at his word, then the optimal time for Xi to do it is in the 2020s, 1) while the US Navy is at its weakest since the Cold War, 2) China has the demographics and economic strength for a war, 3) while Xi Jinping is young and fit enough to handle a war, and 4) the US president is either aging Biden, chaotic Trump, or incompetent Kamala.

Xi has instructed the PLA/N/AF to be fully modernized and mission capable by its 100yr anniversary in 2027, and they are on the largest fastest military buildup since Germany in the 1930s. They're also acting belligerent and aggressive toward Taiwan, other neighbors in the South China Sea, and vs India on their border. We've seen this behavior and mentality in dictatorships before and know where it leads.

> Hardly relevant for the 20s.

The announcement is diplomatically relevant now, even if not militarily relevant till the 2030s. It's part of a package of reassuring US allies in the region that the US is committed to defense of its democratic friends and allies there. Without such clear reassurance, some may conclude they have no choice but to pre-emptively concede and capitulate to the CCP on Taiwan, SCS militarization, CCP stealing SCS resources in other countries' exclusive economic zones, etc. This is part of a comprehensive diplomatic/economic/military strategy of preventing that.


> Xi Jinping's own words. He continues to say publicly that China and Taiwan will be reunified.

China has been saying it for 50 years, so that is just status quo.


They've meant it for 50 years, they just didn't have the capability to do it until recently.


AUKUS is about more than submarines -- that just happened to be the bit that hit the news.

There are specific provisions in AUKUS for AI & other technology partnerships.


>> Do you have a source on that?

Xi himself, as recently as just last week, centering reunification in his New Year's speech [0]

Delaying China is absolutely critical for democracies to remain globally viable. The fundamental principle is that any person or country who wants to remain self-determining must be better armed, prepared, and able to fight than the local bully or global authoritarian; if not, they'll take your lunch and democracy every time. With Russia, supported by China [1], we are already far past a new Cold War and into a Hot War with the autocracies.

The better defense capabilities of the democracies rely on the concept of "Defense Offset", which is basically maintaining a technological advantage so that a numerically much smaller military can prevail against a numerically superior military (e.g., US mil 2019 total size 1.388MM [2], vs China 2.535MM [3]).

This military advantage, since at least the late 1960s, has relied on advantage in microchip technology.

When the first Cold War ended after the collapse of the Soviet Union, the Grand Experiment was tried. The idea was that free flow of economic benefits and information would inevitably lead to open and democratic societies. Sadly the generous experiment failed miserably — all it did was further empower the dictators. Now, Russia is attempting to regain all it's territory back to 1917, and China is continuing it's expansionist ways. This is because they now have significantly closed the technology gap to the point where even Iran is contributing significantly to Russia's war on Europe with the Shaheed drones, using a lot of off-the-shelf technology, and Ukraine is significantly bolstering it's defense with FPV drones.

So, even if China does eventually manage to catch up (which is unlikely considering how many insanely complex and globally-non-China-sourced technologies go into one $450MM ASML chip lithography machine), the key is to delay CCP sufficiently that we can extricate them from the democracies' supply chains and maintain a sufficient military offset to defend democracy around the world.

We are starting very late, so this is truly critical, unless we are OK with us and our descendants living under a regime like CCP or Putin.

[0] https://www.bbc.com/news/world-asia-china-67855477

[1] https://www.voiceofeurope.com/chinas-advanced-machine-tool-e...

[2] https://www.macrotrends.net/countries/USA/united-states/mili...

[3] https://www.macrotrends.net/countries/CHN/china/military-arm...


I really dislike this warmongering.

Looking at the last 150 years, or even the most recent decades, it's us having a history of invading countries or conducting military operations to support different parties.

Yet, we are so blind of that. China has been mostly on the receiving stick (by European countries as well), not the offending one. Even when it comes to Vietnam or Korea it has been us who meddled in those internal conflicts first by sending troops.

Even when it comes to Taiwan, it's still us who have settled on a policy of ambiguity and defense of a country we legally recognize as a government of the same unique Chinese country, after avoiding to even recognize the PRC for 3 decades.

Even though we keep meddling and deciding the policies of half the world, we still keep demonizing any potential geopolitical entity and we keep pushing everyone in a vassal-attitude due to the unmatched economic, cultural and military power of the US.

Yet countries like China, Russia, and many others, will just never play fiddle to that.

This hawkish paranoia does nothing but further push China to defend its own geopolitical interests and further poke their aggression.

And where we needed a more hawkish paranoia, as in case of Russia, we failed and still keep failing to do so, because Russia has never really been in the economic and financial position to threaten our geopolitical interests to the extent that China can.

The way I see it, western countries and US should take a clear stand about Taiwanese statehood, and Taiwan needs to do it first on their own in order for the rest of the world to take a stand, as they legally still lay claim on the entirety of China (and beyond).


> The way I see it, western countries and US should take a clear stand about Taiwanese statehood, and Taiwan needs to do it first on their own in order for the rest of the world to take a stand, as they legally still lay claim on the entirety of China (and beyond).

Isn't it ironic that you're accusing others of warmongering, but then suggest an action which would almost certainly provoke a war? (China has been pretty explicit about declaration of sovereignty being their red line)


This doesn't change the fact that the Taiwanese status is de jure unresolved and will constitute a never ending basis for conflict and tension.

This tension can only be relieved by de jure integrating Taiwan in Chinese statehood under very huge degrees of autonomy, which no one, let alone Taiwanese people ever trust or by unilateral statehood declaration (which has no support internationally, least of all in US since Taiwan not declaring independent statehood is the entire basis of the US-Taiwan relations act).


> This tension can only be relieved by de jure integrating Taiwan in Chinese statehood under very huge degrees of autonomy

You mean like the huge degrees of autonomy Hong Kong enjoys? That seems like such a huge strategic blunder by Xi. Instead of making it a positive example for Taiwan to follow, they made it a strong deterrent to a peaceful integration.

> which has no support internationally

It has no support internationally, because to get that support, you first need to declare sovereignty.


HK is a bit different. It was a land lease and the Britons negotiated for a 50 year transition period before HK was fully assimilated.

I fully agree with your conclusion and spirit though which is why I said that Taiwan has no reason for any kind of trust for a peaceful integration with the PRC.


Which turned out more like a 5 year transition period. Let's not forget.


You can't be serious, China is actively supplying Russia's war against Ukraine and rest of Europe, with purchases and military supplies.

https://asia.nikkei.com/Economy/Trade/China-Russia-trade-top...

https://www.politico.eu/article/china-firms-russia-body-armo...


I don't want to abuse whataboutism, but you're aware that besides actively engaging in multiple wars and international military actions we also support Ukrainian war effort directly right?

You're suffering of the usual American exceptionalism, where US is allowed to overthrow governments at will, conduct military actions, decide to support whatever side (sometimes arming both), but other countries cannot.

Just to point out, I obviously condone the military actions in Ukraine (especially since I am a Pole of Ukrainian descent), but I obviously also condoned overthrowing Libyan government or the Iraqi military intervention too and many other despicable actions our governments have conducted in the last decades.


> I obviously condone the military actions in Ukraine (especially since I am a Pole of Ukrainian descent)

I don't want to be too adversarial, but don't you feel a bit hypocritical by supporting Ukraine to preserve its sovereignty in face of a larger, strongly authoritarian neighbor, but arguing for Taiwanese to simply give up their own?


I never argued for that:

> The way I see it, western countries and US should take a clear stand about Taiwanese statehood, and Taiwan needs to do it first on their own in order for the rest of the world to take a stand, as they legally still lay claim on the entirety of China (and beyond).

and this:

> This tension can only be relieved by de jure integrating Taiwan in Chinese statehood under very huge degrees of autonomy, which no one, let alone Taiwanese people ever trust or by unilateral statehood declaration.

I argue that at some point there is a need for a de jure resolution of the Taiwanese matter or this issue will come again and again.

And, the way I see it, it has been US starting from Bush but most importantly under the hawkish Trump presidency that has made the matter relevant again combined with the Russian invasion of Ukraine.


> This tension can only be relieved by de jure integrating Ukraine in Russia under very huge degrees of autonomy...

> I argue that at some point there is a need for a de jure resolution of the Ukrainian matter or this issue will come again and again.

How does that sound to your ears?


You know that there is no similarity at all between this and the taiwanese situation right?


> I really dislike this warmongering.

I'm not warmongering. I'm not calling for war. I'm just observing reality and describing it.

> Looking at the last 150 years, or even the most recent decades, it's us having a history of invading countries or conducting military operations to support different parties.

I'm aware of much that, from Smedly Butler's "War is a Racket", to the CIA's disastrous interventions in Iran, Chile, and other countries, to the more recent endless wars of pre-emptive regime change against rogue states aspiring to become nuclear powers. But conversely, defending existing democracies against being overrun by authoritarian dictatorships is not that. One can be against the former and for the latter.

>The way I see it, western countries and US should take a clear stand about Taiwanese statehood, and Taiwan needs to do it first on their own in order for the rest of the world to take a stand, as they legally still lay claim on the entirety of China (and beyond).

Both conceding Taiwan to the CCP, and supporting a Taiwanese declaration of independence, would lead to bad outcomes from the US point of view. Conceding could embolden the CCP to push further, toward the other small countries in ASEAN, or Mongolia, etc. Appeasement of dictatorships has been known to lead to that outcome, especially ones already acting belligerent and hostile to their other neighbors. Conversely, formal independence for Taiwan is the CCP's red line and would certainly result in war.

What the US chose instead was to publicly support the "One China" policy so as not to embarrass the CCP or cause loss of face, which is important over there, while also supporting Taiwan's defacto independence (and, I suspect, privately communicating that an attack on Taiwan would not be acceptable). After formally switching recognition to the CCP in 1971, this was the only realistic policy position for the US to take. One could argue against formally switching recognition, but after that was done, ambiguity over Taiwan was the only option.


Have you heard of Tibet? Nice place to holiday.

Or would you like a 6 month all inclusive holiday in a Uyghur re-education camp?

Or would you prefer an island getaway? There’s a few brand new ones in South East Asia the Chinese are building on coral reefs in order to erect military bullying outposts and exert pressure on small SEA countries.

If you’re from a developing nation you can finance jyour corrupt infrastructure project with the Chinese and have some of your key infra under their control while you sink the country into unpayable debt.


Not sure what is the point you're trying to make.


It's not -just- a delaying tactic. It's a trade.

Without these sanctions, China will likely soon develop chip design talent that's at the cutting edge, but they'll fab with TSMC (and thus use the entire Western-dependant supply chain). This means that China's chip manufacturing ecosystem will remain poor, unpopular and underdeveloped.

With these sanctions, China's chip design talent can't fab cutting edge chips. But China's manufacturing ecosystem suddenly gets the market incentive to develop. I don't think they will reach EUV any time soon, and that hurts. But dominating the mature chip manufacturing sector in the mid term is an achievable goal, and mature chips are still absolutely essential even if they're not "sexy". Whereas before sanctions, there was no way they could dominate in chip manufacturing (nobody wanted to fab with Chinese manufacturers or wanted to buy Chinese chip manufacturing equipment), only in chip design.

What these sanctions did was trading one thing (cutting-edge chip design) for the other (mature chip manufacturing). The short-term blow to China sounds sexy, but they've created a long-term problem. Is this trade worth it? I wonder whether policymakers even realize they're making this trade.


China doesn’t need to replicate EUV in order to make competitive chips. China can already produce very advanced chips today and is maybe 2 years behind in the ways that actually matter.


It seems trying to solve the homeless drug addiction crisis is putting the cart before the horse. Why are there so many homeless drug users in the first place? Any real solution for the problem would be to prevent people from ending up like this.

If you fall out of the rat race in the US you are screwed. No job, no insurance, no health care, no house, no car followed by homelessness and drug use. After all that it would take an insane amount of effort to get you back up to the ladder.

I know socialism is the big scary word in the US, but socialist European countries mostly prevent people from falling down the ladder that far and fast and the amount of homeless and drug use is significantly lower over here.


> If you fall out of the rat race in the US you are screwed. No job, no insurance, no health care, no house, no car followed by homelessness and drug use. After all that it would take an insane amount of effort to get you back up to the ladder.

This isn't true at all. The US has a good social safety net, just like European countries. San Francisco in particular has free, universal healthcare, rent assistance programs, eviction protection programs, public transportation, pretty much everything you mentioned.

The problem is if you're a nuisance to your neighbors (i.e., smoking drugs indoors, which my downstairs neighbor decided to start doing during 2020), you will be kicked out if you don't own your place (and you don't have an HOA). At which point, you can go to a shelter (of which there are many in SF), but if you refuse to do that, well…


In the end it turned out that common sense has always been right. The more sick you are the easier it is to spread and detect. The tests just detect and confirm the obvious.


Must be a fun morning for the devs to come up with a list. Not very complete as of yet.


He closed the thread with a recruitment call for open positions. A company who treats their workers like garbage. No thanks.


Workers and customers. Sheesh.


If an AI can do your job just as well in less than 40 times the time. You are going to be replaced.

There’s nothing malicious about that.


There's going to be a sizable area in which the rule will be:

If a manager _thinks_ an AI can do your job just as well, you will be replaced.

Nothing malicious just usual levels of stupidity crossed with avarice.

It'll take sometime for that clusterfuck to clear.


The article never said anything about how customer satisfaction was affected.


They did mention ‘resolution’ times, presumably they measure that by the customer saying ‘thanks, that solves my problem’.


In the end, ragequits close the ticket just the same.


Nothing malicious? What evidence do you have to back that up?


I don’t want my company to go out of business. If I can replace all my support agents with AI, so can my competitors. I’m not keeping people on out of charity only to go out of business as a result.


That... is not evidence of non-maliciousness


Does it also stop them from polluting with the PFAS alternatives like GenX?


Also mentioned in the article is that this company did know that about the toxic effects of these chemicals but just ignored it or kept it secret. They know it is toxic but still choose to dump it in the river because it below the limit or there is no limit.


That is not the definition of dystopian. This could have come straight from a Black Mirror episode.


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

Search: