Better HN
topnewbestaskshowjobs
Log inSign up

langcss

233 karma · joined Apr 24, 2024 (2y ago) · 207 submissions

Submissions

comment 2y ago · link · parent

This sort of approach always made more sense to me than RAG. I am less likely to try RAG than something that feeds the LLM what it actually needs. RAG is risky in providing piecemeal information that confuses the LLM.

The way I thought would work and like to try out is ask the LLM what info it wants next from an index of contents. Like a book. That index can be LLM generated or not. Then backtrack as you don't need that lookup in your dialogue any more and insert the result.

It won't work for everything but should work for many "small expert" cases and you then don't need a vector DB you just do prompts!

Cheap LLMs make this more viable perhaps than it used to be. Use an open source small LLM for the decision making then a quality open source or proprietary LLM for the chat or code gen.

comment 2y ago · link · parent

That or Geohot

comment 2y ago · link · parent

Tailwind solves this but not in the way you think!

The rise of React and SSG/SSR means there is a world where the classes are React components and the attributes are props.

Even for static pages, for DX you can use the same tooling as you are used to for dynamic pages. And something like NextJS can generate the static html.

And this makes even more sense for dynamic stuff like date pickers.

In this world you use utility classes because tags are too granular and components are the logical unit.

But if you are hand crafting the html then tailwind might be more of a pain. I am a bit undecided on that. I still have a soft spot for CSS Zen Garden.

comment 2y ago · link · parent

She got gaslit. As a junior. Pretty sad.

comment 2y ago · link · parent

There was a time around 2004ish where fashion was smaller the phone the richer you appear. So a status symbol. As they were usually more expensive to make them small back then.

comment 2y ago · link · parent

It is free* from Netlify

* until you get DDoS or a lot of traffic

comment 2y ago · link · parent

Lol I am considering this one. Seems like it hits a spot. Longevity is my main concern.

comment 2y ago · link · parent

I think something based on portfolio would be better.

portfoliohq, tryportfolio, useportfolio, withportfolio etc.

comment 2y ago · link · parent

Not sure of Tau's exact features but one nice thing about the Vercels and Netlifys is the integration with Github and easy CI /CD setup.

Having CI taken care of by just installing a single package on your own server is compelling.

The main think that they take care of that this probably can't on bare metal is redundancy and uptime and scaling.

comment 2y ago · link · parent

You want to avoid duplication, usually. You can also do it by creating components in React (and other frameworks). Doing so keeps the style close to the component definition which I think is good: if your component is say a nav bar some of its appearance comes from how you nest flexboxes and some from the flexbox configuration. Why not keep that all together?

comment 2y ago · link · parent

Ideally, one should make illegal state unrepresentable. The problem with a string is there is no guarantee it represents a money amount.

comment 2y ago · link · parent

Nice tip. I might trial adding 3.5 sonnet as an option to https://langcss.com.

comment 2y ago · link · parent

It is a phone app so the pricing model makes no difference. Either way they could pull it from the store or not.

Subscription seems to be only for backup to iCloud and encryption anyway.

Forever apps on mobile are probably only possible on Android using an apk and open source repo. Even then they could bitrot.

comment 2y ago · link · parent

If you mean LLMs today: Write code that works. More than 100k tokens worth.

Learn something without a megawatt hour of power.

Read a novel and talk about what it really means.

comment 2y ago · link · parent

https://github.com/commaai/jobs?tab=readme-ov-file

comment 2y ago · link · parent

This would have been not totally insane pre containers and using VirtualBox and just reimaging.

comment 2y ago · link · parent

I agree it is a very useful skill, and countless stuff ups I have seen have been caused by bad SQL (often ORM generated SQL). But I don't remember ever SQL being tested in any interview, where as coding skills in the language of choice e.g. C# being tested at great length. Is this for data science jobs?

comment 2y ago · link · parent

Worth a read: https://news.ycombinator.com/item?id=40830332

comment 2y ago · link · parent

If I did it I would try this first: https://github.com/pgvector/pgvector

comment 2y ago · link · parent

Docs are good but the app router complicated things and had a knock on effect on other docs like auth. Every example was app or pages now so you had lots of examples out there that could no longer work for you. That choice made the documentation a lot harder to use.

comment 2y ago · link · parent

NextJS can be used in different ways, but it is solid as a front-end only set up for building React apps. Create-react-app is deprecated so the choices are fewer. Vite is another choice. Another is esbuild and a bit more set-up work.

comment 2y ago · link · parent

I find it is in a weird spot where it is more powerful than bash but you often don't need that power or if you do coding in c# might be better.

It is very good of you want to work with Azure though. You probably don't want to use bash for that. But lots of reading up each time I use it. Bash is my go to for small jobs or a command line experience.

I am not an expert in either but have used both plot to get stuff done.

comment 2y ago · link · parent

But can they install the depencies and actually run it? :-)

comment 2y ago · link · parent

Yes. It comes with a lot of features overlapp with NextJS and there are plugins for the rest.

comment 2y ago · link · parent

Or Vite. It is a close call.

Vite seems to more configurable but the trade-off is you spend more time figuring out how to set stuff up like SSR and routing. NextJS had it all set up but Vercel make some weird choices like rolling out the app router and saying it is recommended when it felt very beta still.

My preferred thing is NextJS or Vite but constrain it to front end only. Use a better back end stack than Node. Any of the major ones will do.

comment 2y ago · link · parent

Go for it! Not sure why it is overkill.

People may have JS disabled. But you can mitigate against this with SSG/SSR. Although you might have to "dual code" forms to work both ways if you have any.

I would just use what makes you happy.

1234567