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.
I think I need to go lie down
411–420 of 475 posts
Re: I think I need to go lie down
#412Earlier 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…
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
#413All 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();
Re: I think I need to go lie down
#414``` 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
#415Earlier 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.
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
#416The 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'…
Re: I think I need to go lie down
#417All 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();
Re: I think I need to go lie down
#418The 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'…
Re: I think I need to go lie down
#419ITT: 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.
Re: I think I need to go lie down
#420The 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.
... it's doing A LOT more than that. The technique you're referencing is very limited and rarely used for any practical purposes