Live data from Hacker News

Training an AI to convert design mockups into HTML and CSS

medium.freecodecamp.org

31–40 of 109 posts

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

#31

This is what we are all working for. If we can automate the stupid stuff we do then we can work on other interesting stuff and automate it too. I don't understand why we aren't all working on automating everything that we do. Every line of code you pulled out of the code mine today is finite and given a business logic rule engine it's outcome could have been generated.

> automate the stupid stuff

Stupid is subjective :) I'd be happy to automate backend development and focus on a top notch UX and great front-end experience.

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

#32

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…

This isn't even remotely an issue.

Do you inspect the code generated by your compiler? No, but even if you do, they have had 20-30 years to develop good output.

What makes you think AI output is never going to improve? And more importantly: why does it matter?

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

#33

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…

Having done web dev for 10+ years, I would say that not all HTML/CSS implementation is trivial, especially when you have complicated layouts, are supporting older browsers and need your pages to be responsive. Not rocket science, but not trivial. Maintainability also takes a certain amount of skill, but if you're not having humans touch the code, then that ceases to be a concern I guess.

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

#34
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?

Because that's what technology is about. 1) You make a machine that replaces a human's task 2) The human is now free to focus on other tasks that a machine can't replace

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

#35
post #16

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

I design all my sites in Photoshop before turning them into HTML/CSS. It's a lot faster than fiddling with CSS, especially if I've been given a lot of freedom in the brief.

Completely designing websites in PS before even opening the code-editor has really improved my workflow. I know exactly how it has to look because I have a visual reference that's been OK'd by the client.

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

#36
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 bother with money at all?

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

#37

Aren't there a bunch of WYSIWYG tools for creating appearance and HTML/CSS together? Years ago when I looked, these existed (but designers prefered photoshop just because). I mean, I'd assume also there's normally a give-and-take between designer, CSS-artist and client. The question is whether the neural network can also learn to take calls at 3am from a client wanting a different shade of aqua.

Who takes calls at 3am when not on support shift?!?

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

#38
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?

Silly question. Why give out free money when you can starve them to death? I've heard that average American dumps lots of food into trash. I've heard that a lot of children in Africa are starving to death. Yet I don't see some real efforts to solve starvation problem, even if it's obvious that humanity technically is able to feed everyone on this planet. Yet we spend those resources on military stuff and other stupid things.

I don't really see free money working, at least because people are selfish and won't agree to pay their money to someone else.

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

#39
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?

It's a question of future economic systems, and "just give out free money" isn't much of an answer.
Post reply on HN