My Love

I will be stronger


  • 主页

  • 关于我

  • 标签

  • 分类

  • 归档

为什么面向对象编程糟透了

发表于 2019-05-19 | 分类于 翻译
字数统计: 3.2k | 阅读时长 ≈ 14

信息来源:阮一峰每周分享

文章来源:Why OO Sucks


When I was first introduced to the idea of OOP I was sceptical but didn’t know why—it just felt “wrong”. After its introduction OOP became very popular (I will explain why later) and criticising OOP was rather like “swearing in church”. OOness became something that every respectable language just had to have.

我第一次接触面向对象编程时不知道为什么是持怀疑态度的,我就是感觉“不对劲”。在面向对象编程变得越来越流行(我稍后会介绍为什么)后,批评面向对象就好像“在教堂诅咒别人”。面向对象变成每种可敬的编程语言所必须要拥有的东西。

阅读全文 »

为什么 SQL 如此成功?

发表于 2019-05-10 | 分类于 翻译
字数统计: 3.2k | 阅读时长 ≈ 15

信息来源:阮一峰每周分享

文章来源:The Unreasonable Effectiveness of SQL


Two score and five years ago two young IBM researchers brought forth on databases, a new language, conceived in relational, dedicated to the proposition that data can be manipulated declaratively and easily. In the years since Don Chamberlin and Ramond Boyce published SEQUEL: A Structured English Query Language relational model and SQL have been extended and adapted to a significant number of technologies: OLTP, OLAP, object databases, object-relational databases, and even NoSQL. SQL has inspired query language design for non-relational databases: SQL for object databases, SQL for object-relational, SQL for XML, SQL for spatial, SQL for search, SQL for JSON, SQL for timeseries, SQL for streams and so on. Every BI tool interacts with the data using variety of SQL. In fact, SQL is the most successful 4th generation language.

45年前,两个 IBM 研究人员提出了数据库的概念,一种基于关系构建的新型语言,专注于数据易用和声明式操作。在 Don Chamberlin 和 Ramond Boyce 发表 SEQUEL: A Structured English Query Language 论文后的这些年间,关系模型和 SQL 已经被扩展并适用与大量技术: OLTP、OLAP、对象数据库、对象关系数据库以及 NoSQL。SQL 启发了非关系数据库的查询语言设计:对象数据库 SQL、对象关系数据库 SQL、XML SQL、空间 SQL、JSON SQL、时序 SQL,流式 SQL 等。每种与数据交互的 BI 工具都在适用各种各样的 SQL。实际上,SQL 是成功的四中通用语言之一。

阅读全文 »

类型正在向右移动

发表于 2019-04-25 | 分类于 翻译
字数统计: 1.2k | 阅读时长 ≈ 5

信息来源:阮一峰每周分享

文章来源:Types are moving to the right


If you take a look at statically-typed programming languages that are still popular today but were designed in the previous century, before the turn of the millennium, you’d notice that most of them and, at the same time, the more popular and mainstream ones, like C (circa 1972), C++ (1985), and Java (1995), write types to the left of names:

如果你环顾一下当下正流行但却是上个世纪(也就是千禧年之前)设计的静态语言的话,你就会留意到他们大多数,同时也是更受欢迎和主流的那些比如 C语言(大约1972年)、C++(1985)以及Java(1995),是在名称左侧书写类型的:

阅读全文 »

抽象的代价

发表于 2019-04-13 | 分类于 翻译
字数统计: 2.5k | 阅读时长 ≈ 11

信息来源:阮一峰每周分享

文章来源:The Cost of Abstraction


阅读全文 »

hive自定义UDAF的编写

发表于 2019-03-18 | 分类于 大数据
字数统计: 3.2k | 阅读时长 ≈ 15

最近学习中遇到一个编写HIVE UDAF函数的问题,最后没弄明白怎么写的,后来看到别人写的UDAF函数后深受启发,所以在这里记录一下UDAF的编写过程。

阅读全文 »
1234…17
Jony Chiao

Jony Chiao

bulabula

84 日志
12 分类
22 标签
GitHub E-Mail
© 2017 — 2022 Jony Chiao
访问人数 访问总量 次