Giter Site home page Giter Site logo

为什么类名要带TX前缀 about biny HOT 11 CLOSED

tencent avatar tencent commented on May 5, 2024
为什么类名要带TX前缀

from biny.

Comments (11)

billge1205 avatar billge1205 commented on May 5, 2024 1

@baiyutang 历史遗留问题 原来是php5版本的框架 没有命名空间 只能通过文件名做系统标识
php7之后要做到向下兼容,就没动这一块。
内部使用的框架已经去掉这些命名方式,有时间会整理输出开源(应该会以大版本的方式更新)

from biny.

sn01615 avatar sn01615 commented on May 5, 2024 1

重构

from biny.

billge1205 avatar billge1205 commented on May 5, 2024

只是标明系统库而已 和功能类做区分

from biny.

slince avatar slince commented on May 5, 2024

@billge1205 用命名空间区分吧,命名空间不影响速度

from biny.

billge1205 avatar billge1205 commented on May 5, 2024

嗯 请关注后续更新

from biny.

shiny avatar shiny commented on May 5, 2024

时刻提醒这来自 TX 的感觉可不好。

from biny.

wujunze avatar wujunze commented on May 5, 2024

@slince 请问sf1时代是什么意思?

from biny.

slince avatar slince commented on May 5, 2024

@wujunze symfony 1.x; 差不多php5.2的时候

from biny.

wujunze avatar wujunze commented on May 5, 2024

@slince 哦哦 Thanks

from biny.

baiyutang avatar baiyutang commented on May 5, 2024

image
我的强迫症都犯了,没必要在每个文件都加一个前缀,这个两个大写缩写放在文件前缀还很难受。
一般前缀或者后缀用来区别或者分类,但是整个库我们已经知道是腾讯的了,就不要在每个文件都加上TX了

from biny.

baiyutang avatar baiyutang commented on May 5, 2024

重构的时候喊上我。@sn01615

from biny.

Related Issues (20)

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.