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

That applies to fentanyl and tiktok.

Yes, and people keep paying ridiculous prices for the first and for ads for the second.

3D printing is similar but also a vastly smaller market than information systems. 100% of businesses need information systems, but only a small percentage need custom plastic components.

(Actually I would argue every business past a tiny size should have access to a 3D printer, it can save a lot of money in subtle ways, though its rarely business-critical)


Presumably enterprise sales will bring in revenue on its own

Yes but the sales process for enterprise is often 9 months or more, and you have to have support coverage before it pays for itself.

My #1 advice is not creating separate server endpoints for every HTMX fragment, unless you are 1000% sure that endpoint will be used in multiple different pages.

Working on a "simple html page" that is actually 5 different independent "subpages" (routes, views, templates) in the backend is awful. The UX was improved, but the DX was sacrificed.

I recommend having a single view function for each page/SPA and do sub-routing within that function to handle page fragments. In other words, use a GET/path/Header parameter that indicates which fragment is currently needed, defaulting to the full document as normal. Just make sure you are considering request logging and client-side caching in your solution.

This makes it very easy to add/remove async content from the page, since you are just editing the one view function/template and you can easily reason about the entire page as one logical unit.

It also means you don't need to duplicate security logic or other middlewares for the page, since it can be implemented once at the start of your multi-faceted view function.


Generally you don't even need to do the sub-routing in the handler. You can just render the entire page and have `hx-select` attributes pluck out the part that you want.

That is a good solution for reusing content across pages, but most of my HTMX usage is for fetching data that would otherwise delay first page load significantly, or for seamless interactivity. Very different use cases.

This is huge, thank you.

Sure, but "chai tea" is still redundant. I have never used that term and ordered chai in many places without confusion.

it's redundant at a place that serves chai, but it isn't redundant at a place that does not serve chai, because you're skipping the "what is chai" question from whoever you're querying.

It's redundant in the same way Earl Grey tea is redundant, though.

China isn't looking at it just for bragging rights, but as a step towards the first moon base. Some see it as a race for the frontier and territorial claims.


Are you saying that Americans, who have close to 1,000 known and many unknown bases in every corner of the globe are worried someone else might set up a base somewhere before them?

I guess I am just not that bothered, because I don't assume American intentions are inherently better.


Would you really be surprised to discover that Americans in general might be more inclined to assume that American intentions are better?


Is a moon base a practical or even useful thing to have? I mean, it sounds really cool, but what would be the benefits?


I don't see logs mentioned. I agree with most those applications but would keep my OLAP stuff (metrics, logs, traces) in a separate store like VictoriaMetrics, both for capacity and read activity.


pg_timescale can take you pretty far for metrics and would be Good Enough for almost all users. Totally agree on raw, high-volume logs though.


Yeah I have logs in Sentry, which also uses Postgresql.



Thanks for correcting me, I was wondering why I got downvoted. :)

Clickhouse is also great for OLAP for sure


Yeah, it's like blaming drug users primarily for the violence of the drug trade. Sorry, but the drugs came first.


Agreed. If we're gonna blame shift PE to pension and university funds, we may as well follow the thread all the way to the glorification of Greed.


TOTP should be totally fine and can be used with very dumb hardware/software.


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

Search: