之前也会纠结于🍎的产品该买第几代的问题,后来知乎上有个人(抱歉,忘了谁)推荐了MacRumors(http://buyersguide.macrumors.com)这个网站。 继续阅读
作者归档:陈恺垣
PHP文档回顾
数组
key值会做如下转换:
- 包含有合法整型值的字符串会被转换为整型。例如键名 “8” 实际会被储存为 8。但是 “08” 则不会强制转换,因为其不是一个合法的十进制数值。
- 浮点数也会被转换为整型,意味着其小数部分会被舍去。例如键名 8.7 实际会被储存为 8。
- 布尔值也会被转换成整型。即键名 true 实际会被储存为 1 而键名 false 会被储存为 0。
- Null 会被转换为空字符串,即键名 null 实际会被储存为 “”。
- 数组和对象不能被用为键名。坚持这么做会导致警告:Illegal offset type。
方括号和花括号可以互换使用来访问数组单元
数据库杂谈之:如何优雅的进行表结构设计
链接:https://zhuanlan.zhihu.com/p/20785905
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。本文首发于知乎专栏,转载请注明出处 https://zhuanlan.zhihu.com/p/20785905数据库表结构设计作为后端软件开发不可或缺的一环,是每个后端工程师都会经历的过程。笔者也多次经历过这样的过程,也尝试过多种不同的设计方案,也从一些优秀的框架中学到不少,但并没有发现相关的文章对其进行总结。所以本文尝试把笔者看到的、学到的总结下来,希望对阅读本文的读者有所启发。 继续阅读
牛逼的澳洲小哥
这个牛逼的澳洲小哥,从0开始搭建原生器物。。。
6-Part Guide to NGINX Application Performance Optimization
选择恐惧症的福音!教你认清MVC,MVP和MVVM
文章很长,看原文:选择恐惧症的福音!教你认清MVC,MVP和MVVM
A beginner’s guide to Big O notation
(原文:https://rob-bell.net/2009/06/a-beginners-guide-to-big-o-notation/)
Mysql索引相关知识分享
(原文:http://www.kuqin.com/shuoit/20160428/351772.html)
3.关于索引: 继续阅读
How does a relational database work
(原文:http://coding-geek.com/how-databases-work/)
When it comes to relational databases, I can’t help thinking that something is missing. They’re used everywhere. There are many different databases: from the small and useful SQLite to the powerful Teradata. But, there are only a few articles that explain how a database works. You can google by yourself “how does a relational database work” to see how few results there are. Moreover, those articles are short. Now, if you look for the last trendy technologies (Big Data, NoSQL or JavaScript), you’ll find more in-depth articles explaining how they work. 继续阅读
14 Essential PHP Interview Questions(14个重要的PHP面试问题)
(原文:https://www.toptal.com/php/interview-questions)
Question1
Consider the following code:
$str1 = 'yabadabadoo'; $str2 = 'yaba'; if (strpos($str1,$str2)) { echo "\"" . $str1 . "\" contains \"" . $str2 . "\""; } else { echo "\"" . $str1 . "\" does not contain \"" . $str2 . "\""; }
The output will be:
"yabadabadoo" does not contain "yaba"
Why? How can this code be fixed to work correctly? 继续阅读