Live data from Hacker News

I think I need to go lie down

twitter.com

431–440 of 475 posts

Re: I think I need to go lie down

#431

Hey, Steve here from tldraw. This is a toy project with a horrible security pattern, sorry. If you want to run it locally or check out the source, it's here: https://github.com/tldraw/draw-a-ui . You can also see a bunch of other examples at https://twitter.com/tldraw . Happy to answer any questions about tldraw/this project. It's definitely not putting anyone out of work, but it's a blast to play with. Here's a more…

Wow! That flow chart is really a killer point and probably should be a first-class concept for a tool like this. Really starts to give someone the right levers to making something useful vs. a toy.

Re: I think I need to go lie down

#432
post #417

Earlier quoted context omitted.

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

wow TIL `id`s can be used like that

They get added as attributes to "document", they're not truly global: https://stackoverflow.com/questions/3434278/do-dom-tree-elem...

Part of why IDs are supposed to be unique on a page.

Re: I think I need to go lie down

#433
post #93

Earlier quoted context omitted.

Change the sketch and get it to build it again. It only takes a couple of seconds.

That seems a lot more complicated than just coding it. How would you go about drawing a box shadow on the sliders? What if you wanted a background image behind it? How would the model know that it's a box-shadow, or that the background is an image? I feel like for that level of granularity, you'd spend more time figuring out how to style it than just writing it in code, since you'll need to start using descriptors on…

"just coding it" is a lot harder if you know nothing about code. What's cool here is that someone with literally 0 knowledge of programming can use this. Before this there was simply no way for them to do something like this, it was straight up not possible without the barrier of learning to code first. Does this do it all? Will this replace programmers? No, the skill ceiling remains as high as it ever was, but the skill floor for making something like this has been raised.

Re: I think I need to go lie down

#434

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.

+1. You would give an interior designer “creative license” to redecorate your living room. The opposite of creative license is micromanagement.

Re: I think I need to go lie down

#435
post #38

That's the equivalent of a todo app. How about something more complicated?

People have already got it to implement full games of Tic Tac Toe[0] and Snake[1], for what it's worth.

[0] https://twitter.com/multikev/status/1724925816381792661

[1] https://twitter.com/awwstn/status/1725250076560568668

Re: I think I need to go lie down

#436
post #420
post #379

Earlier quoted context omitted.

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

I'd like to know more.

Re: I think I need to go lie down

#437
This can be done in ONE line in Mathematica:

    Manipulate[
 Graphics[{Rotate[Rectangle[{-size/2, -size/2}, {size/2, size/2}], 
    rotation, {0, 0}]}, PlotRange -> {{-1, 1}, {-1, 1}}], {size, 0.1, 
  2, 0.1}, {rotation, 0, 2 Pi, Pi/12}]

Re: I think I need to go lie down

#439

I gave it a mockup from a FB interview question (two lists of checkboxes with two buttons to swap checked items between them) and it nailed it: https://gist.github.com/milesrichardson/2a2f77d4bfb19c3b28dc...

insane, I never thought that `toList.appendChild(item.closest('li'));` would MOVE the item. You learn something every day

Re: I think I need to go lie down

#440

I just see this as a tool to help make UI designers (and maybe POs) look smart and competent, but the real work is going to go to the programmers, just as it does today. UI designers will be able to give a "demo" but how will this basic functionality translate to the rest of the app? It won't.

> how will this basic functionality translate to the rest of the app? It won't. It certainly will lead to fun and productive conversations like “it’s already working right there! Why is it going to take so long to get it into the app?!? Can’t you just download it?” Since well before GPT there has been an argument for making very early prototypes/mocks more obviously lo-fi, such that their visual polish is proportiona…

A decade ago when I worked at an agency, we had a policy of having two branches of any given project: an internal one, and a version with "gray-boxes.css" applied. It's too difficult for humans to separate visually polished from functional and finished.
Post reply on HN