r/web_design • u/ReasonableTwo8 • Jan 16 '19
From wireframe to HTML Code. A great milestone achieved by AI for the frontend.
95
u/AxiusNorth Jan 16 '19
It sets the header width to 99%... I’m not worried.
8
1
66
u/Trickypr Jan 16 '19
Wow... I can’t imagine the amount of hours or the process for making this
4
0
Jan 16 '19
[deleted]
4
u/DrDiv Jan 16 '19
That's what I gathered too. Sure there was probably a lot of hours involved in letting the engine know what block to use for what code, but essentially it's no different than any drag+drop system, just replace a mouse with a webcam and image detection:
Determine what elements are on the screen in what order
Find what code block goes with what element
Add the elements to the site structure in the order they're presented
Everyone is acting like this is a miracle of technology when really it's just a cool demo for stuff that has existed for decades.
107
u/Fearricepudding Jan 16 '19
Spaghetti code
100
u/SecretAgentZeroNine Jan 16 '19
Imagine having to refactor machine learning generated front-end code...
58
1
1
8
u/CarefreeCastle Jan 16 '19
It's not. The code is generating HTML that uses bootstrap classes.
24
u/wedontlikespaces Jan 16 '19
What if I don't want to use bootstrap, because I don't hate myself?
7
u/CarefreeCastle Jan 16 '19
This was a proof of concept. The AI learned with bootstrap classes. It would probably be even easier to teach it to use React Components.
My point is that this type of system is not limited to a single css framework.
3
u/wedontlikespaces Jan 16 '19
Yes, I know that was mostly a joke.
However, I do wonder how much processing power went into doing something a human could do in 20 mins.
4
u/CarefreeCastle Jan 16 '19
Not a lot. It takes a fair amount to train the network, but once it is trained, running it is pretty cheap.
16
2
u/Avendork Jan 16 '19
I could be wrong, but that looks like it just dumps all of the elements in a single container with no other divs. So the refactor mess to make it usable would be a problem.
-1
u/justindangerpants Jan 16 '19
Bootstrap is probably even worse than something an AI would generate so i can't imagine an AI making stuff WITH bootstrap... Jesus.
73
u/plainerman Jan 16 '19
Why is everyone complaining about the messy HTML? It is amazing for prototypes and just a quick demo.
65
u/NobleFraud Jan 16 '19
Because our jobs are on the line
9
34
u/carver520 Jan 16 '19
Beyond that, it discredits our labor. If devs start getting freaked out over ai taking their jobs, they start accepting longer hours and lower pay.
3
u/Mabenue Jan 17 '19
AI should be taking your jobs wherever possible. Web development shouldn't be some artisanal craft only practiced by masters.
18
u/ariiizia Jan 16 '19
I don't know about you, but building out something in HTML and CSS is maybe 5% of my job at most. And it's the part I'd love to automate, because it's boring as hell.
1
u/not_usually_serious Jan 17 '19
As a backend developer I love writing HTML and CSS. I made my dev servers IIS directory really pretty.
8
u/sgorneau Jan 16 '19
Because I can save the time of providing an analog syntax to a machine and just code the damn thing myself quicker and semantically.
3
u/itslenny Jan 17 '19
Besides. If it can generate code like this there is no reason to refactor. Just throw it away and generate new code when you make a change. It takes seconds. The only reason code needs to be human readable / maintainable is because it's written / maintained by humans.
48
Jan 16 '19
This is just not how it works for big projects
3
u/Bassie_c Jan 16 '19
Exactly! While it might be a nice demo, and will probably work for a little site for a student group project or something, you can't implement this on an Enterprise level kind of site. No way that you can maintain that or make it run as smoothly as if it was human build.
28
u/MacNulty Jan 16 '19
For the newbies who are not aware, wysiwyg editors have existed since forever and nobody uses them because they are piece of shit. Having an AI layer over it changes nothing. It looks cool and will surely evolve with time but you're not going to lose your job anytime soon.
5
u/scumbagotron Jan 16 '19
Yeah the only jobs I'd lose from (an evolved) version of this are the hobbyists that are migrating to Wix and Squarespace now anyway.
11
9
u/bwana22 Jan 16 '19
Strange why you'd want to do this straight to code?
Who goes from wireframe straight to development?
Airbnb has a system for this, but it's a lot more sophisticated because of their extensive design system. The code isn't so much generated in terms of the elements themselves, but it would just recognize the element and paste the react js tag for it.
4
u/ninja_lazorz Jan 16 '19
Its easier to draw stuff from webcam to the browser than let’s say sketch. It’s prolly just a quick demo
6
u/blehblo Jan 16 '19
What’s the source?
8
5
17
12
7
3
3
u/andrewjaccreative Jan 16 '19
Great work, this looks awesome!
I was also really inspired by Benjamin Wilkins presentation showing how to automate solved problems, and really get through the testing phase as quickly as possible with better insight.
3
u/istealcrayons Jan 16 '19
Guess it's time to learn to draw straight lines and perfect circles on a white board
3
3
u/Axiol Jan 16 '19
Can we stop using the words AI every times a computer does something? I mean he literally writes what to do on the board. At best, it’s a good OCR
3
4
u/Techubba Jan 16 '19
What an awesome project. Reddit needs to chill out with immediately shitting on a project and looking at the negatives. This took a lot of time and knowledge to build this, and it works! Obviously this wasn’t built to replace anyone’s job, because there is a great deal of web design and development knowledge that is needed to actually use it then edit the code.
2
2
u/b4ux1t3 Jan 16 '19
For fuck's sake, people.
It's an impressive proof of concept, it's not like anyone is telling you they're going to replace you with a computer and a camera.
Sometimes people build things just to see if they can. This is the start of a project that could become anything else, and people on here are treating it like it's either:
A. A monstrosity that will generate Bad Code©. (spoilers: so do you)
Or
B. A bastardization of their job that managers are going to replace them with. (if yours would, you need to find a new job)
2
u/danketiquette Jan 16 '19
Couldn't even change the title?
https://www.reddit.com/r/programming/comments/9j1alv/from_wireframe_to_html_code_a_great_milestone/
2
u/aelythe Jan 27 '19
Hi, this is Paul from teleportHQ.
It was exciting for us to read all the opinions and comments on this thread. Indeed, this technology is just emerging, and it will take some time to make it production ready, but we're advancing fast.
In this post - https://teleporthq.io/blog/we-believe-in-AI-powered-code-generation/ - we're explaining at a high level how it works. For techies, at the bottom of the article is a link towards our UIDL (User Interface Definition Format) which is the underlying format that makes the liaison between the user interface description and the code.
3
3
Jan 16 '19
I am pretty sure it will generate messy code. It will need a lot of data to better train it and develop better code.
2
2
1
1
1
1
u/AlexCubaD Jan 16 '19
Now it only needs to give out proper documentation to be better than 99.999% of front-end devs, it's currently better than 99.8% cause it can properly indent.
1
1
u/BertyLohan Jan 16 '19
This isn't even a recent milestone achieved is it? I'm sure I've seen this reach the frontpage a dozen or so times.
1
1
1
u/Carradee Jan 16 '19
Interesting. Definitely a useful proof of concept.
It is possible to build a solid WYSIWYG editor. Vellum does it for the EPUBs it generates. This AI generation could end up further muddying the designer/developer divide, particularly if different solutions developed for different optimization or design methods.
Man, now I want to work on that. XD
1
1
u/mxma1 Jan 16 '19
Obviously not a practical or realistic tool in that state, but still an absolutely incredible feat for a conceptual demo.
1
1
1
u/kbrackson Jan 17 '19
So should I just go ahead and change my official title to "Front End Code Refactorer" / "Pro Spaghetti Sifter"?
1
1
u/Dokter_Bibber Jan 17 '19
Look at the person who’s wire framing. Making sure to stay out of the way of the camera. Why didn’t they make that part more comfortable first?
1
u/Dokter_Bibber Jan 17 '19
Every web designer needs his/her own whiteboard now. Or they have to take a ticket and wait in line for their turn. Would a Wacom display tablet have been handier as input? Sitting comfy at your desk at home or at work.
1
u/bugninja Jan 17 '19
Human beings are spending all their time coding the way their brains work into computers and robots.
The robots will refer to us as their Gods.
I’m pretty sure our whole universe is just a massively brilliant and perfect AI.
The Big Bang was just someone turning on their computer.
1
1
u/asertym Jan 16 '19
One guy I know had this idea for a stratup one year ago and when he told me I said that it's the stupidest thing I've ever heard .. don't get me wrong, it looks cool but like... Completely useless, but does look cool tho
1
u/NobleFraud Jan 16 '19
true completely useless, this is just a simple html and css that can be done in less than 10 minutes, no need for over complicated ai to write it for us -=-
6
u/thisdesignup Jan 16 '19
Sure when it's this simple but imagine a more complex wireframe and you have a program that you can just plug in a picture to and it will output a simple working site.
2
u/asertym Jan 16 '19
Thing is there are apps that allow you to go from a psd to a straight on HTML/CSS and they still manage to write spaghetti code, that is a hell to go through and refactor. It's just simpler to write it all by yourself with the right classes and everything. If you want to automate the procedure just use bootstrap/twig/sass and many others that allow you to go from a day of work to a couple hours of coding, not to mention how good template engines are at this point..
3
u/samuhe Jan 16 '19
there is almost no complexity in html and css. The complexity is nearly always in the interactivity: validation, animations, popups, small widgets, saving the form, showing messages,...
2
u/Mr-Yellow Jan 16 '19
can be done in less than 10 minutes,
Here it's done in less than that.
0
Feb 02 '19
[deleted]
1
u/Mr-Yellow Feb 02 '19
Where will you move those goal posts?
Any emotional response like this is purely cognitive dissonance kicking back. You'll have the same response to the next research paper, and the next, and the next. Meanwhile these types of systems will continue to improve.
Unusable: lol. People used Dreamweaver.
0
0
u/Bosquito86 Jan 16 '19
Hey peeps, I'm new here and looking to learn a bit more about web design. However, I have a task that I think it's silly, but nevertheless have to do it.
But I'm thinking that maybe there's a way that I could get some help. Basically, I have a website and I need to build a wireframe that is almost identical with the one from that website, just replace the content.
My question to you all is: do you know of any software or tool (preferably free) that I could use to build extract a wireframe from a website?
Thanks a lot!
0
-10
u/Mr-Yellow Jan 16 '19
I can't count how many downvotes I've got stating that this was coming ;-)
Front-end people get really pissed when you suggest it's easy enough to be automated.
5
u/SecretAgentZeroNine Jan 16 '19 edited Jan 16 '19
I can't count how many downvotes I've got stating that this was coming ;-)
Front-end people get really pissed when you suggest it's easy enough to be automated.
u/Mr-Yellow You seem pleasant
1
5
Jan 16 '19 edited Jan 16 '19
Your comment is a great example on how to spot someone who's programming experience can be summarised by "failed to compile 'Hello world'".
Which makes sense since you said yourself you 'cant count how many downvotes you got': 4 as of writing this comment.
→ More replies (1)2
u/charliegrc Jan 16 '19
this is the equivalent to saying that all mathematicians can be automated by an AI that solves addition problems.
There is so much complexity to modern front end development, HTML and CSS styling is the simplest part of ir.
→ More replies (15)
0
Jan 16 '19
[deleted]
55
u/CreativeRequirement Jan 16 '19
hahaha. This reminds me of everything I ever exported out of Macromedia dreamweaver
7
u/JagannathArumugam Jan 16 '19
That is far better. I dealt with some pages done with MS word. This was 15 years ago. The horror
4
Jan 16 '19
Holy shit I just remembered building some sites in MIcrosoft Frontpage. Ew.
2
u/Bassie_c Jan 16 '19
Don't normally browse this sub, but reading some webdevs disgusting about old WYSIWYG tools has been the highlight of my evening.
0
u/calligraphic-io Jan 17 '19
Why do you assume it would be refactored? I'd refer to a popular CMS as a case in point, but decency prevents me...
0
0
0
Jan 16 '19
[deleted]
9
u/epicpoop Jan 16 '19
Adapt, like we did since 100'000 years. A job is not a definition of who you are. You define your job. You had the ability to learn to code ? You'll probably find a way to learn to do something else that's valuable. People with no education, can't read and are working as cashiers, they are the ones to worry, not you.
8
u/Grimdotdotdot Jan 16 '19 edited Jan 16 '19
The current form of adapting is that a very small number of people get incredibly rich and the masses live in poverty. Robots taking jobs is a serious issue that needs to be fixed, because it won't be long before it explodes.
[edit] It appears I've been misunderstood, let me clarify.
The result of robots taking jobs is what needs to be fixed, or we're just going to end up with huge number of people with no money. I'm all for the robots doing the jobs (which has been going on for decades now).
1
u/kullo56 Jan 16 '19
That's exactly my point.. we can say ah it wont do much but when the numbers increases things will get messy
1
u/ScoopDat Jan 16 '19
Fixing what? The point of technology and advancement is to make our lives easier.. Otherwise, throw out your hammer, and go pick up a rock.
Everyone knows there is no other solution to this "problem" other than redistribution of wealth forcefully by governmental oversight (governments and politicians themselves will also cease to have actual "political" function after a while simply because AI can be used to come up with models for most preferred courses of action toward a given goal).
If the goal is to live our lives in a dignified and happy/peaceful existence where everyone has their needs met, then there can be no other way. It's simply physics that goes against a reality of where only a few can hoard all the resources, yet be sustainable on a finite planet. It's literal lunacy.
/u/qashto has the right idea
The only issue is for people to get serious and say what our goal as a species is, and if suffering is acceptable on a scale like never seen before. If society is willing to be dumb/deaf and blind and say "suffering is not important", then mass starvation will follow, or at the very least, slow population dwindling, and with that comes a collapse of societal order until homeostasis is reached.
All current forms of government are also flawed (even socialism) simply because every single functioning economy today depends on constant growth in order to function. It's not enough to even stagnate (that's a recession), let alone be a downturn (that's depression). But as I said before, no amount of belief in a system will ever decouple the reality that infinite expansion, on a planet with finite resources is LITERALLY impossible to sustain. Thus all these archaic and outdated fossils of governmental systems ought to have been put to pasture decades ago (right around the industrial revolution, and definitely by the creation time of the internet).
1
u/qashto Jan 16 '19
I agree but I don't think we'll get to a the point of a post-scarcity economic system within our lifetimes (assuming we live ~100 years). Though it's true that today's economy is nearly post-scarcity when it comes to necessities compared to 50 or 100 years ago.
1
u/Grimdotdotdot Jan 16 '19
My post was poorly-written, see the edit. I widely agree with you.
1
u/ScoopDat Jan 16 '19
I can't tell anymore, I just try to cover my bases with what someone means, and what I hope they mean. Sorry if I came off abrasive, it wasn't my intent, and it's like almost morning here, not much sleep :\
2
0
Jan 16 '19
[deleted]
4
u/project2501 Jan 16 '19 edited Jan 16 '19
Not disagreeing with you, often you'd be rebutted that some number of new industries form as others die out, i.e. the blacksmith cant make swords any more but he sure can work in the new industry that makes iron wheels or more pertinently, the automotive fitter & turner will move up to managing 100 AI fitter & turners.
While I don't think that's entirely false, the argument does often avoid mentioning the 99 other fitter & turners who didn't get the promotion (or even more likely, that the AI overseer is now located off shore and the one repair mechanic is called in sporadically on uncontracted, casual-hours, minimum wage). Maybe they work in the robot factory
nowfor the next 5 years.I remember a story about a manufacturing plant that shutdown, they gave all the workers free re-training. Problem was at the end of training, they came out with 20 new people certified to work in a field that employs 5 people in the town of 10k. There isn't really a good solution outside of UBI for something like that, especially at a national scale. How many cab drivers are going to retrain as machine learning engineers.
2
u/Grimdotdotdot Jan 16 '19
I don't think anyone is saying that having the robots do our jobs is the bad thing here - the bad thing is the massive disruption it will cause.
2
u/qashto Jan 16 '19
Robots taking jobs can't be "fixed" or "prevented" it's going to happen because it's in the best interest of the bourgeois since it brings up profits and coincidentally can bring down costs for consumers, look no further than the success of Amazon and it's warehouses. But the disruption is ultimately a good thing, it will hopefully help people understand the flaws of the capitalist meritocracy.
3
u/Grimdotdotdot Jan 16 '19
I worded that really poorly. It isn't the robots taking the jobs that needs to be prevented, it's the fallout it will cause.
→ More replies (1)1
u/belikepigeon Jan 16 '19
Same thing happened late 80s with Graphic Design.. one minute you’re typesetting, the next it’s all DTP..
3
u/Grimdotdotdot Jan 16 '19
Doctors might be a while off, but what happens in a decade or so when every professional driver becomes obsolete?
3
0
u/thisdesignup Jan 16 '19
To be fair if robots cause the world to go into disarray quickly then I think that means somewhat people were shortsighted. For example if a professional driver already sees that robots are slowly taking over there job they have the chance to do something now, learn about other jobs, look into alternative jobs, before it becomes an issue. If they don't and they suddenly find themselves replaced then I'd say it's a good deal their fault for not doing anything while they had the chance.
The thing is if we look at how people are when it comes to jobs it's possible that people will see the potential issue and not do anything because changing jobs is tough. It's doable but when the problem is years off people will likely wait.
2
u/Grimdotdotdot Jan 16 '19
There are 3.5 million truck drivers in the US alone (just truck drivers, not van drivers, taxi drivers, take out drivers, bus drivers, etc, etc). The job market can't begin to absorb that many people.
0
2
564
u/_xss Jan 16 '19
And my jobs gone