技术控

    今日:129| 主题:49225
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] How it actually feels to write JavaScript in 2016

[复制链接]
い明 媚 发表于 2016-10-5 18:02:10
75 1

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

How it actually feels to write JavaScript in 2016-1 (additional,Android,something,actually,planning)
         Yeah, it’s a piece of cake.      Hey, I need to create a page that displays the latest activity from the users, so I just need to get the data from the REST endpoint and display it in some sort of filterable table, and update it if anything changes in the server. I was thinking maybe using jQuery to fetch and display the data?
  -Sure, you could still use jQuery. But if you’re ever planning to do something more complicated on the frontend you should probably try React. It will be a big benefit for you in the future.
  -Sounds great. How can i start with React?
   -The easiest way is to run npm install create-react-app -g in your    terminal and you can start with a project right away.
  -Cool, so you’re telling me that I don’t need any additional setup?
  -Nope.
  -Do I need to install any special IDE like Visual Studio, Android Studio, or XCode?
   -Nope, just create your app with create-react-app my-cool-app and you’re good to go.
  -But what about extra dependencies? Do I maybe need to install Java on my machine? Maybe I also need Maven, Gradle, CocoaPods, or maybe I need to download some extra 20gb SDK?
   -Nope, just cd into your app and start it with npm start. That’s it.
  -But do I have to build my app and wait for a long rebuild every time i change something?
  -Nope. If you do a change the page will automatically refresh for you. If you change some CSS it will be live-reloaded for you, without doing a full page refresh.
  -Sounds very useful! I think it can speed up my development process a bit. But wait, what do i do if i ever want to deploy a production version of my website? Because no one is *actually* deploying an unminified version of index.html, app.css, and main.js in production anymore, right?
   -Yup, you’re right. If you ever want to deploy a production version of your site just run npm run build and everything that you need will be in your /build folder. Minified, optimised, and ready for deployment.
  -Thanks dude, that was very helpful.
  *curtain falls down, applause and cheers from the audience, our 2 developers take a bow, shake hands, and ride off on dragons into the sunset*
友荐云推荐




上一篇:QingStor™ 对象存储最佳实践之初探云端数据仓库
下一篇:Alternative Text and Images
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

舍不了的悲伤 发表于 2016-10-7 02:41:28
很有品味!
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表