Giter Club home page Giter Club logo

ccnsanime_ffmpeg_pool's People

Contributors

a20034294 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

a20034294

ccnsanime_ffmpeg_pool's Issues

[style] Avoid using import * while importing modules

盡量避免用 import *,原因是

  1. Python 精神之一:Explicit is better than implicit
  2. import 一堆不必要的東西浪費資源
  3. 你不知道 import 進來的東西會不會撞到 identifier,比如兩個 module 都有 env 這個 object,當你 import * 的時候可能就會被 re-assign 了,但你沒注意到

Ref

Importing * in Python

[design] Environment variables should be read only once

環境變數應該只被單一 module 讀取一次,存成變數後提供給其他 module 讀取,原因是:

  • 每次都 call 函數讀 env 浪費資源
  • Python 每個 Module 執行的時間點不同,沒做好隔離的話可能同個 env variable 讀到不同的 value

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.