google的类名使用 [英] google's use of class names

查看:104
本文介绍了google的类名使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到一个非常奇怪的方式在G +和gmail中命名类。

i noticed a very strange way of naming classes in G+ and gmail..

例如: abh-Jb ab-Rf-dB a -Rf-dB dsr (见自己的G +代码!)

example: a-b-h-Jb a-b-Rf-dB a-Rf-dB d-s-r (see G+'s code for yourself!)

谁会这样做?不可能跟踪你在将来做什么..同样的gmail。

who the hell does that? impossible to keep track of what you did in future.. same for gmail.

这是一个已知的方式做css我不熟悉吗?是OOCSS?如果一个Google员工正在读这个,你能解释一下吗?或者如果你不是编写代码的人,那么请分享你的想法或证明我是一个蠢的屁股,不知道一个相当普遍的css命名好的做法(我可以称它为?)

it is a known way of doing css that i am unfamiliar with? is it OOCSS? if a googler is reading this, can you please explain? Or if you are not the one who wrote the code, then please share your thoughts or prove that i am a dumb ass and don't know about a fairly common css naming 'good practice' (can i even call it that?)

推荐答案

Google使用称为 Google Web工具包(或简称GWT)来将Java应用程序编译成他们的Javascript / HTML / CSS对应。 GWT用于GMail和Google Wave,我的假设是它也用于G +。

Google uses something called the Google Web Toolkit (or simply GWT) to compile Java "applications" into their Javascript/HTML/CSS counterparts. GWT was used for GMail and Google Wave and my assumption is that it was also used for G+.

GWT编译器术语拟合)编程名称Javascript函数,CSS类,HTML表单ID等,因此它们几乎不会是清晰易读的。

The GWT "compiler" (CS purists would never call GWT a compiler but the term fits) programatically names Javascript functions, CSS classes, HTML form IDs, etc. so they are almost never something legible.

这篇关于google的类名使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆