Comments (9)
肿么感觉,看着糟糕代码都是我会写的,心好累
from blog.
第一个例子是不是有误?
元音开头的单词ENDING是way
啊
from blog.
我也是这种感觉,槽糕的代码都是我现在在写的
from blog.
前面的#${(Math.random() * 0xFFFFFF << 0).toString(16)};
`#$
是啥意思,只有我觉得这是很装逼的写法吗。
from blog.
@flyinhigh 哈哈,前面那个其实是包含 es6 的 template string 的语法(内插值)啦,去了解下就知道了~
from blog.
写得很棒~一点儿小意见...
- 第一个例子既然用 const 了,可以用 includes 替代 indexOf...
- 最后少了个
:let randomColor = () =>
#${(Math.random() * 0xFFFFFF << 0).toString(16)};
from blog.
@BuptStEve 很仔细。用新的includes很好,来清除掉怪异的!!indexOf
from blog.
这个不是去年jsconf的js code smells的ppt吗? http://elijahmanor.com/javascript-smells/
是不是说明在文章开头原作者和来源好一点?
from blog.
@chengmu 说的很对,现在的文章都会在开头说明来源。老文章并没有这些意识 /(ㄒoㄒ)/~~
from blog.
Related Issues (20)
- 2016/04/23 在2020年,技术变成什么样的?
- 2016/04/24 在顶级科技公司工作是什么体验 2016年版
- 2016/04/25 那些未被讲诉的走向人生巅峰的建议
- 2016/04/26 赚钱像门手艺,需要反复实践
- 2016/04/27 架构师的参考指南
- 2016/04/28 程序员也要学会说的数学术语!
- 2016/04/29 近在眼前的新科技:想想五年内我们生活改变
- 2016/04/30 听年迈40的开发者讲故事 HOT 4
- 2016/05/01 Facebook 是怎么看待开源这件事的?
- 2016/05/02 Reactive Programming 101 入门综述
- 2016/05/03 微架构:微服务的设计模式
- 2016/05/04 Node.js 是怎么工作?
- 2016/05/05 不听音乐就没法工作!- 论音乐是怎么影响工作效率的 HOT 3
- 2016/05/06 创业老板或企业家每天都做什么?
- 2016/05/07 畅游世界的16款应用
- 2016/09/12 CNUT Container 容器大会 2016 笔记
- tmp-markdown-angular2 HOT 2
- JavaScript 社区的新趋势(2016)
- ArchSummit 2016 Beijing Notes HOT 1
- Gopher China 2017 参会小结 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.