Git Product home page Git Product logo

bukuta.github.io's People

Contributors

bukuta avatar

Watchers

 avatar

bukuta.github.io's Issues

抽象能力不足

代码写了有一些,但抽象能力一直不强。

比如,写过几次节流场景的代码,比如浏览器缩放,滚动,但直到看underscore的throttle和debounce,才发现有些事情真的需要改变一下了,场景遇到了,也写过几次了,为什么下次还要重复?好的开发不是应该尽最大能力减少这些重复劳动么?

每次遇到图片轮播的样的小需求,可以花半小时搞定,但是下一次遇到了,还要再花半小时么?如果经过两个小时乃至半天的思考,可以将今后的时间缩短到10分钟以内,也是很大的进步,虽然今后可能不会写超过半天/半小时=8次了。

复用必然需要抽离典型的业务场景,从某一点切入,大而全的东西很酪炫,但也限制适用范围,小而精反而可以嵌入更多不同的场景。

复用的层次可高可低,dom,event,ajax,promise等可以在任意场景使用,而轮播则只有部分业务里需要。datagrid则更少。

今后需要在这方面持续关注。多思考,尝试。积累自己的代码。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.