Teach you D2c hand in hand, move towards front end intelligence

Alicloud Encyclopedia 2020-11-13 03:57:27
teach d2c hand hand end


 

Source of contribution : Alicloud developer community

 

Over the past few years AI Break in in full fury , In some areas, the application is gradually mature . Front end development up to now , We also have a lot of mature front-end solution code , There are a lot of design drafts , Whether we can combine the ability of intelligence to make a Design To become a Code ( Design to code , abbreviation D2C) To improve the effect , Liberate the front end from a resource-based role and devote its energy to other professional fields of the front end ? TaoBao D2C In the past two years, the intelligent team has also made a lot of exploration in this direction , In the end D2C The ability to carry to imgcook On this product .

 

imgcook Download link , And how to use it , Xiaobian is ready for you !
download imgcookhttps://imgcook.taobao.org/
imgcook Use guide :https://imgcook.taobao.org/docs

 

imgcook What is it?

imgcook It's focused on images (Sketch/PSD/ static picture ) Cooking for raw materials , Through intelligent means to generate various images into maintainable UI View code , Expect this imgcook ( Image chef ) The future can be a P5 Level of refactoring Engineer , Can effectively improve the development efficiency of development , And help develop 、 The designer 、 Efficient collaboration of testing , We expect to do :

  • 100% Restore 【 Designers don't have to go back to the walkthrough anymore 】
  • 100% compatible 【 There's no more adaptation patterns for testing 】
  • One click online 【 Development doesn't have to cut and write styles anymore 】

vision : Can highly restore various images , Release UI Develop productivity , Let you focus on more challenging things !

 

Why do it imgcook

about UI In terms of reduction , Many years ago , Similarly, the static state is generated from the design draft UI Solutions for scenarios have sprung up , For example, some design annotation tools ( Such as Marketch), In other words, some of the current visual station building platforms can also produce online pages directly after construction , that imgcook Where is the advantage of ?

We go back to UI Restore the theme , When we talk about image generation code , We're not just concerned with generating UI Reduction degree of , Also concerned about whether the generated code is reasonable 、 Maintainable , If the generated code belongs to non readable and non maintainable fast food code , It will be very difficult to develop and use it again , And often the latter is more difficult than the former , If you need to use it in a production environment , This problem cannot be avoided .

Regarding this ,imgcook The positioning is to solve UI Problems with restoring and generating maintainable code .

The draft is unconstrained + High reduction

about UI Restore , From the current design tools are more common ( such as SketchPS) Starting with . But what's more unsatisfactory is , The structured information in the design draft delivered by the designer is often disordered , If you need to analyze the structured data of a module in a design draft accurately , Often need to cooperate with designers , Standardize the design in the design draft and make some constraints to use , This will increase the cost of use to a certain extent .

imgcook To solve this problem , At present, some intelligent processing has been done on the analysis of the design draft , Remove the dependence on the designer layer design specification ( Of course, good design specifications will make the restoration effect even better !), Only one specification that developers may use to do it is reserved UI Restore .

Generating maintainable code

For the problem of maintainability code ,imgcook It will restore the UI At the code level, it is widely used Flexbox Layout and relative positioning layout , On some custom names ( For example, style naming ),imgcook It will also generate more user-friendly names according to the habits of developers .

https://ucc.alicdn.com/pic/developer-ecology/a54698fa06694499b92515a7dc3cb367.png

How to use imgcook

imgcook In the current external experience version , Open up for Sketch Design draft and PSD Restore plug-in of design draft , With Sketch For example , The whole export process is as follows :

1. Plug in export module
In the use of Sketch When the plug-in is restored , You can select a container node outside the module ( Drawing board 、Group perhaps Symbol) To export .

https://ucc.alicdn.com/pic/developer-ecology/d3a1d575e1904dacaab392dd4e73618e.png

2. Paste and restore
After the module is exported , You can go to imgcook Paste and restore the platform .

https://ucc.alicdn.com/pic/developer-ecology/dcd8d4784a564eddbe5ac671a54a9a47.png

3. Save the reference code
Check module restore UI And the layout on the left is correct , It can be preserved -> Look up the code , In the current external experience version imgcook Several options are offered DSL Code generation , For each DSL, It can be on the right playground Check the effect of the specific operation .

https://ucc.alicdn.com/pic/developer-ecology/df2fed2c032f4538bd202c5a30c440a0.png

What scenarios to use imgcook

imgcook The birth of the business , And ultimately serve the business .

  • On the level of scene usage ,imgcook It tends to be used in terms of module level dimensions in the page ; For the module itself ,imgcook It also tends to use modules that are light on interaction logic .
  • On the technical level ,imgcook For support Flexbox Layout type DSL There will be a better support .

https://ucc.alicdn.com/pic/developer-ecology/69914dbcaef04d6696ced7674a43adce.png

Facing the future

Facing the future ,imgcook Still ploughing, more UI Recognition ability , Such as Input/Table/Select Such as front-end basic control recognition 、 Popular in the industry Antd/Fusion Such as front-end component library identification , You can even customize the identification capabilities of unique business components for vertical businesses , We hope imgcook Can really bring more efficiency to the front end .

 

Source of contribution : Alicloud developer community

 

 

版权声明
本文为[Alicloud Encyclopedia]所创,转载请带上原文链接,感谢

  1. [front end -- JavaScript] knowledge point (IV) -- memory leakage in the project (I)
  2. This mechanism in JS
  3. Vue 3.0 source code learning 1 --- rendering process of components
  4. Learning the realization of canvas and simple drawing
  5. gin里获取http请求过来的参数
  6. vue3的新特性
  7. Get the parameters from HTTP request in gin
  8. New features of vue3
  9. vue-cli 引入腾讯地图(最新 api,rocketmq原理面试
  10. Vue 学习笔记(3,免费Java高级工程师学习资源
  11. Vue 学习笔记(2,Java编程视频教程
  12. Vue cli introduces Tencent maps (the latest API, rocketmq)
  13. Vue learning notes (3, free Java senior engineer learning resources)
  14. Vue learning notes (2, Java programming video tutorial)
  15. 【Vue】—props属性
  16. 【Vue】—创建组件
  17. [Vue] - props attribute
  18. [Vue] - create component
  19. 浅谈vue响应式原理及发布订阅模式和观察者模式
  20. On Vue responsive principle, publish subscribe mode and observer mode
  21. 浅谈vue响应式原理及发布订阅模式和观察者模式
  22. On Vue responsive principle, publish subscribe mode and observer mode
  23. Xiaobai can understand it. It only takes 4 steps to solve the problem of Vue keep alive cache component
  24. Publish, subscribe and observer of design patterns
  25. Summary of common content added in ES6 + (II)
  26. No.8 Vue element admin learning (III) vuex learning and login method analysis
  27. Write a mini webpack project construction tool
  28. Shopping cart (front-end static page preparation)
  29. Introduction to the fluent platform
  30. Webpack5 cache
  31. The difference between drop-down box select option and datalist
  32. CSS review (III)
  33. Node.js学习笔记【七】
  34. Node.js learning notes [VII]
  35. Vue Router根据后台数据加载不同的组件(思考->实现->不止于实现)
  36. Vue router loads different components according to background data (thinking - & gt; Implementation - & gt; (more than implementation)
  37. 【JQuery框架,Java编程教程视频下载
  38. [jQuery framework, Java programming tutorial video download
  39. Vue Router根据后台数据加载不同的组件(思考->实现->不止于实现)
  40. Vue router loads different components according to background data (thinking - & gt; Implementation - & gt; (more than implementation)
  41. 【Vue,阿里P8大佬亲自教你
  42. 【Vue基础知识总结 5,字节跳动算法工程师面试经验
  43. [Vue, Ali P8 teaches you personally
  44. [Vue basic knowledge summary 5. Interview experience of byte beating Algorithm Engineer
  45. 【问题记录】- 谷歌浏览器 Html生成PDF
  46. [problem record] - PDF generated by Google browser HTML
  47. 【问题记录】- 谷歌浏览器 Html生成PDF
  48. [problem record] - PDF generated by Google browser HTML
  49. 【JavaScript】查漏补缺 —数组中reduce()方法
  50. [JavaScript] leak checking and defect filling - reduce() method in array
  51. 【重识 HTML (3),350道Java面试真题分享
  52. 【重识 HTML (2),Java并发编程必会的多线程你竟然还不会
  53. 【重识 HTML (1),二本Java小菜鸟4面字节跳动被秒成渣渣
  54. [re recognize HTML (3) and share 350 real Java interview questions
  55. [re recognize HTML (2). Multithreading is a must for Java Concurrent Programming. How dare you not
  56. [re recognize HTML (1), two Java rookies' 4-sided bytes beat and become slag in seconds
  57. 【重识 HTML ,nginx面试题阿里
  58. 【重识 HTML (4),ELK原来这么简单
  59. [re recognize HTML, nginx interview questions]
  60. [re recognize HTML (4). Elk is so simple