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

Yeah, that's where I'm at, too. Authoring web components directly is too low level to be practical. You can easily end up reimplementing a ton of existing framework logic around rerenders, reactivity, event handlers, etc.

And there are libraries that handle all of this for you! But then you have tooling and non-standard syntax that puts you a lot closer to other JS frameworks.

And once you're in that space, the benefits of web components may or may not stack up against all the features and your team's pre-existing knowledge.


For me, this feels worse than wikipedia using JSON as an example.

JSON isn't a great HTMl representation, and the wikipedia examples are definitely missing details about how the underlying API is used. But extremely simple HTML just feels worse.

Both pages use a bank account as the example, but my actual bank account has dozens of actions available and is certainly modeled in a way that wouldn't be intuitive for people. Which means we've got an example that isn't easily parseable by computers, because we have mixed labels and data in the HTML, and isn't useful for human beings due to how complex real world entities are.

I genuinely can't tell if this is like monads (which are useful, but often poorly explained) or if this is just a bad idea.


I really struggle to understand how someone with fundamental programming knowledge and the relevant HTML/CSS skills could run into issues like this without some serious mental blocks.

The HTML and CSS are going to be the same. Any UI state or side effects you're managing with React has to be managed in your htmx endpoints, and stateful APIs have plenty of their own quirks. You're doing the same stuff!

I can certainly understand how modern JS frameworks are harder for someone without a non-framework JS background, since the frameworks are a pretty clear evolution of how JS based web applications have been built for many years. But suggesting that developers pick React to inflate head counts and calling it "the hell-stack" makes it hard for me to think the author is engaging in good faith.


Heh. I've been there and tried to do this with feature flags and a handful of other tech debt work.

It can feel good to make people do their chores, but you can also burn a _lot_ of bridges by forcing relatively minor maintenance work to be high priority like this.


It’s not forced or high priority - it just surfaces tech debt to management in the way they can easily quantify and prioritize.


Maybe this is just a terminology mismatch, but when you say "incident" that's been a pretty urgent process everywhere I've worked. Other people are talking about breaking CI, which just sounds miserable.

Raising awareness to management is great though. Especially if you can quantify it in terms of things that matter to them more than "tech debt". Like startup latency or a direct dollar cost.


Yeah, there should be more than one level of incident severity, this would be on the lower end.


The awesome thing is that this comes right after an example that uses about 200 characters...

I know we love to talk about optimizing web contents, but a single selector and a few hundred bytes (before minification and compression...) is not significant


There's like two main ways this kind of mistake happens.

One is a programmer using the wrong string ID. Probably a mistake when searching a translation file/db.

The second is missing context. The word "zip" has multiple meanings in software, so you need more information to disambiguate when translating. "Zip code" and "zip file" is probably sufficient, but you could imagine them also having a templated translation for file types like "{} file".

I could see an unspecialized LLM translation working well for whole sentences or paragraphs, because that kind of text isn't really likely to run into either of these problems. And if you have the context you need to avoid the second problem for small snippets, then human translation is also pretty unlikely to fail.


The "framework" here is exceptionally small. You can read the whole thing: https://github.com/vanjs-org/van/blob/main/src/van.js

Personally, it doesn't do enough that I'd seriously consider using it, even for a project where minimal dependencies and build steps were a priority


This narrative (https://vanjs.org/about#story) about modern JS tooling being opaque, exclusive, and hard to learn is frustrating.

If all you need is HTML rendering and basic state, any modern web framework will do that extremely simply. The barrier to entry is really not that high!*

*Except maybe at Google. I hear their internal tooling is a huge pain to work with.


Tag functions being implemented with a Proxy (https://vanjs.org/tutorial#api-tags) could make that a little cumbersome, and would break the abstraction that `div(...)` just returns an HTMLDivElement you can do whatever you want with.


Yeah, plus I realized after posting that for nesting children it would mean having the properties at the end, not very dev-friendly, maybe the way this lib does it is the best way (without JSX or anything like that)


SFPD had a 6% clearance rate for all property crimes in 2020, with reports that it got lower since [1].

There are a lot of anecdotes, occasionally newsworthy, about SFPD watching theft happen and doing nothing about it [2]. SFPD also appears to have refused to assist the DA in arrests related to theft rings for political reasons [3].

It's noteworthy that SFPD chose to pursue such broad surveillance access for a protest of police violence. Their past record on theft and vandalism is an exceptionally flimsy justification.

[1]: https://www.sfchronicle.com/sf/article/The-state-of-the-SFPD... [2]: https://www.sfchronicle.com/bayarea/article/San-Francisco-po... [3]: https://sfist.com/2022/05/23/report-sfpd-refused-to-particip...


SFPD’s staffing levels are also at historic lows (and much lower than UN averages) while the work required to investigate and prosecute crimes has increased due to the professionalization of policing (a lot more TPS reports but also valuable constraints on autonomy). Perceived aggregate activity being down isn’t particularly surprising.

The U-Haul stunt was largely just a stunt. It was later revealed the DA’s office just didn’t get their paperwork right to organize evidence transport.


I feel like that just makes it worse (though I didn't know about the DA's office messing up the paperwork).

Let's assume that understaffing and additional work required to close cases are the main causes for the low clearance rates. Monitoring a legal protest in case crimes are committed seems profoundly wasteful, compared to working to resolve crimes that actually happened.

I don't envy SFPD. Trying to reduce crime in SF seems like a huge challenge that they are poorly equipped to solve, for many reasons. But the original comment in this thread is trying to justify surveillance here as preventing possible property crimes, and that just makes no sense to me.


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

Search: