To avoid this problem, complex attributes should be initialized in the constructor; however, this is not necessary for simple attributes such as strings, booleans, and so on.
为了避免这个问题,应当在构造函数中初始化复杂属性;然而,对于字符串、布尔值等简单属性则不需要这样做。
One problem I've seen with applications is when engineers attempt to use a database as though it were a programming language, creating arrays by using text strings with comma-separated identifiers.
我在应用程序中看到的一个问题是,工程师试图将数据库当作编程语言来使用,即通过使用具有逗号分隔的标识符的文本字符串来创建数组。
Now, if you have to include one or several Unicode-encoded scripts in UNIX locales, you face a problem: POSIX locales and, by extension, Linux strings, are always encoded using 8-bit bytes.
现在,如果必须在UNIX locale中添加一个或者几个Unicode编码的脚本,那么您会面临一个问题:POSIX locale和扩展的Linux字符串一直是使用8位字节编码的。
应用推荐