Live data from Hacker News

I think I need to go lie down

twitter.com

411–420 of 475 posts

Re: I think I need to go lie down

#411

Earlier quoted context omitted.

I installed this extension, it made me hate Twitter less by not having to use it. https://addons.mozilla.org/en-US/firefox/addon/nitter-redire...

That's fine but why should it be on me? It should just be HN policy to not accept twitter as article links. They're effectively paywalled. If people must, they should be submitting nitter etc links.

From the HN FAQ "It's ok to post stories from sites with paywalls that have workarounds." Instead of 30 comments on the state of twitter one nitter link would've sufficed.

Re: I think I need to go lie down

#412

Earlier quoted context omitted.

Disable the cache in dev-tools, you can't miss it.

It would be great if someone could open a github issue with reproduction steps and maybe a screenshot: https://github.com/lovasoa/SQLpage/issues The worst I'm able to get when manually disabling the cache and simulating a slow 3G connection is this: a blank page first, then text in the browser's font, then the text re-renders with the right font, then the icons load. The user should never see completely unstyled cont…

The browsers font switching to the right font is exactly what we are talking about. I’m in the Netherlands, so maybe I am just far away from your servers, but there’s about 200-300ms (essentially when reading the title, at least that is what I was doing when it switched on me) and that’s when it switches the font.

You can probably just use the system font for the title, and nobody would ever notice the issue.

Re: I think I need to go lie down

#413
post #224

All the developers out there who make demos for scaling and rotating a box are about to lose their jobs!

Scale Rotation const transformSquare = () => square.style.transform = `scale(${scale.value}) rotate(${rotation.value}deg)`; transformSquare();

Great, now the LLMs will see this too... ;)

Re: I think I need to go lie down

#414
The system prompt used as found in the repo:

``` You are an expert tailwind developer. A user will provide you with a low-fidelity wireframe of an application and you will return a single html file that uses tailwind to create the website. They may also provide you with the html of a previous design that they want you to iterate from. Carry out any changes they request from you. In the wireframe, the previous design's html will appear as a white rectangle. Use creative license to make the application more fleshed out. if you need to insert an image, use a colored fill rectangle as a placeholder. Respond only with the html file. ```

(not sure about why the creative[commons?] license is referred here and why does it help.)

and for each generation the user prompt is:

``` [IMAGE_LINK] Turn this into a single html file using tailwind. ```

https://github.com/tldraw/draw-a-ui/blob/8a889bf36afc06fbb0c...

Looks simple enough to run “privately” by screenshooting a normal tldraw canvas and passing the prompt with it to the API.

Re: I think I need to go lie down

#415
post #310

Earlier quoted context omitted.

"Code beautification" is not the point, but a tool. Smaller and clearer code could be faster to write, and harder to make mistakes using. This is why e.g. Rails can be so good at producing certain kinds of apps very quickly and in very few LOCs. The problem is, of course, that simplicity follows complexity, not the other way around. Because of that, it's mostly "trivial" and "repetitive" tasks that receive polished t…

Code Beautification is a waste of time and ossifies a code base. It's a form of optimization that actually makes the code harder to change and the business less agile. It is pretty though.

Beauty for the beauty's sake is art, not business.

Usually simple, lean, and logical is also beautiful; beauty is not a random quality. But sometimes too simple and too lean is not flexible enough; then that's a case of a wrong abstraction, or of premature optimization.

Re: I think I need to go lie down

#416

The system prompt used as found in the repo: ``` You are an expert tailwind developer. A user will provide you with a low-fidelity wireframe of an application and you will return a single html file that uses tailwind to create the website. They may also provide you with the html of a previous design that they want you to iterate from. Carry out any changes they request from you. In the wireframe, the previous design'…

"creative license" in plain English, means essentially "don't worry too much about constraints, do what you feel will is best." I don't think it has anything to do with software licenses.

Re: I think I need to go lie down

#417
post #224

All the developers out there who make demos for scaling and rotating a box are about to lose their jobs!

Scale Rotation const transformSquare = () => square.style.transform = `scale(${scale.value}) rotate(${rotation.value}deg)`; transformSquare();

wow TIL `id`s can be used like that

Re: I think I need to go lie down

#418

The system prompt used as found in the repo: ``` You are an expert tailwind developer. A user will provide you with a low-fidelity wireframe of an application and you will return a single html file that uses tailwind to create the website. They may also provide you with the html of a previous design that they want you to iterate from. Carry out any changes they request from you. In the wireframe, the previous design'…

[deleted]

Re: I think I need to go lie down

#419

ITT: people in denial while the writing on the wall is literally shoved into their face.

Writing was on the wall over a year ago, shocked how many were in complete denial then. Even more surprising now. People don't even seem to grasp that the next gen of these tools wont be rolling the dice once it'll be rolling it 1000 times then you pick the one that nailed it. Then the next generation will roll 10,000 times and it'll be picking the one that nailed it even without your input at all.

Meh. We've been here before: https://en.wikipedia.org/wiki/AI_winter

Re: I think I need to go lie down

#420
post #379

The code for the demo is open-source ( https://github.com/tldraw/draw-a-ui/blob/main/app/api/toHtml... ). The prompt they use interesting: You are an expert web developer who specializes in tailwind css. A user will provide you with a low-fidelity wireframe of an application. You will return a single html file that uses HTML, tailwind css, and JavaScript to create a high fidelity website. Include any extra CSS and Ja…

What's beyond me is - how just simply predicting the next token brings up this kind of magical comprehension in a model that otherwise has no sense or is aware about itself.

> simply predicting the next token

... it's doing A LOT more than that. The technique you're referencing is very limited and rarely used for any practical purposes

Post reply on HN