Live data from Hacker News

Training an AI to convert design mockups into HTML and CSS

medium.freecodecamp.org

21–30 of 109 posts

Re: Training an AI to convert design mockups into HTML and CSS

#21
post #17
post #5

Earlier quoted context omitted.

I see this attitude all the time while people are being automated out of their jobs. Those people end up getting laid off anyway, and then wondering why jobs for their skillset don't pay as much as they used to. Resisting automation doesn't help, because if you don't do it, someone else eventually will. If you're in a job that's at risk of being automated in the near term, you're much better off learning how to autom…

Here is a silly question Why will everyone need jobs if so much stuff is automated? Why not just give out free money?

You have to collect the money from somewhere (printing it counts as “from savings accounts”), and the people you collect it from have, historically, tended to resist this any way they can.

I’m not saying this problem can’t be solved — I rather hope it can — but that’s why it is still an open problem.

Re: Training an AI to convert design mockups into HTML and CSS

#22
post #14

Earlier quoted context omitted.

Because we like being employed. I don't get paid by increasing the global productivity of society. The idiot who automates their own job (and shares it with their employer) is much more likely to be impoverished than lauded.

You like being complacent.

You know nothing about me. I love writing code, I do it in my free time. I also have student loans to pay and food to eat. I am not kicking myself out of a job for the fun of it.

Re: Training an AI to convert design mockups into HTML and CSS

#23

Writing HTML and CSS to implement a mockup is trivial for anyone with even a little bit of web dev experience. If you want high quality code, an AI isn't going to produce that. I can't imagine ever using something so complex, if I can implement the same thing in a few minutes. There's also further considerations when dealing with the real world. For example, you need to be aware of how to handle different accessibili…

> I can't imagine ever using something so complex, if I can implement the same thing in a few minutes.

What if the complexity is hidden behind a CLI?

Also, the goal is to refine the output to near-human levels. It's not perfect yet, but can be worked upon, and seems to be a promising foundation.

Re: Training an AI to convert design mockups into HTML and CSS

#24

Writing HTML and CSS to implement a mockup is trivial for anyone with even a little bit of web dev experience. If you want high quality code, an AI isn't going to produce that. I can't imagine ever using something so complex, if I can implement the same thing in a few minutes. There's also further considerations when dealing with the real world. For example, you need to be aware of how to handle different accessibili…

If we think AI would not do awesome code, then we're ignoring the achievements of many of the AI bots. I saw an LOL bot outperform lots of world class videogamers. What makes you think a bot will not outperform any HTML/CSS frontend dev.

Re: Training an AI to convert design mockups into HTML and CSS

#25
post #17
post #5

Earlier quoted context omitted.

I see this attitude all the time while people are being automated out of their jobs. Those people end up getting laid off anyway, and then wondering why jobs for their skillset don't pay as much as they used to. Resisting automation doesn't help, because if you don't do it, someone else eventually will. If you're in a job that's at risk of being automated in the near term, you're much better off learning how to autom…

Here is a silly question Why will everyone need jobs if so much stuff is automated? Why not just give out free money?

> Why will everyone need jobs if so much stuff is automated?

In a system with property rights of the type found in capitalism, you need income from capital or labor to survive, basically. Unless the distribution of capital is levelled (and some force is exerted to keep it levelled), that means most people will rely on labor because they have no other choice.

Re: Training an AI to convert design mockups into HTML and CSS

#26

Writing HTML and CSS to implement a mockup is trivial for anyone with even a little bit of web dev experience. If you want high quality code, an AI isn't going to produce that. I can't imagine ever using something so complex, if I can implement the same thing in a few minutes. There's also further considerations when dealing with the real world. For example, you need to be aware of how to handle different accessibili…

Does it matter if the code looks ugly or not? End users are not going to see the UI. If i have an AI in my toolbox that autoconverts designs to Code, within a minute. It would speed up my development time by a lot!

Re: Training an AI to convert design mockups into HTML and CSS

#27
post #24

Writing HTML and CSS to implement a mockup is trivial for anyone with even a little bit of web dev experience. If you want high quality code, an AI isn't going to produce that. I can't imagine ever using something so complex, if I can implement the same thing in a few minutes. There's also further considerations when dealing with the real world. For example, you need to be aware of how to handle different accessibili…

If we think AI would not do awesome code, then we're ignoring the achievements of many of the AI bots. I saw an LOL bot outperform lots of world class videogamers. What makes you think a bot will not outperform any HTML/CSS frontend dev.

coding is more of an art than science, every projects has different ways how the html and css is set up, how do you onboard the AI? It is a lot of surface to cover, the AI we have today is not able to outperform a frontend dev, frontend is harder than playing a game, a lot more possibilities

Re: Training an AI to convert design mockups into HTML and CSS

#28
post #24

Writing HTML and CSS to implement a mockup is trivial for anyone with even a little bit of web dev experience. If you want high quality code, an AI isn't going to produce that. I can't imagine ever using something so complex, if I can implement the same thing in a few minutes. There's also further considerations when dealing with the real world. For example, you need to be aware of how to handle different accessibili…

If we think AI would not do awesome code, then we're ignoring the achievements of many of the AI bots. I saw an LOL bot outperform lots of world class videogamers. What makes you think a bot will not outperform any HTML/CSS frontend dev.

Right now, context. The ai will outperform us.

But it currently lacks a lot of data to do so. A mock up is only a small part of the data and feedback loop you need to create a ui.

Re: Training an AI to convert design mockups into HTML and CSS

#30
post #16

Why are design mockups done in photoshop, when HTML and CSS can be faster and easier once you have the basic components??

1) Because that's how most designers create layouts who can't code an not really interested in doing so.

2) It demonstrates AI capabilities on a new level.

3) If you design in PS or Sketch, then you will create more interesting layouts, because you won't skip things that are inconvenient or hard to do.

Post reply on HN