SOLID Principles

The SOLID principles tell us how to arrange our functions and data structures into classes, and how those classes should be interconnected. The use of the word “class” does not imply that these principles are applicable only to object-oriented software. A class is simply a coupled grouping of functions and data. Every software system has such groupings, whether they are called classes or not. The SOLID principles apply to those groupings.

Clean Code - Smells and Heuristics

From Clean Code, Robert C. Martin


COMMENTS

C1: Inappropriate Information

Comments should be reserved for technical notes about the code and design.

C2: Obsolete Comment

Comments get old quickly. It is best not to write a comment that will become obsolete. If you find an obsolete comment, it is best to update it or get rid of it as quickly as possible.

The Career Advice I Wish I Had at 25

Original post: The career advice I wish I had at 25 - Shane Rodgers


In the future, when we turn 50, we will each be given a ticket to a time machine and, just once, we will be able to go back in time and talk to our 25-year-old selves.

Even then, time travel will be expensive and wreak havoc with frequent flyer programs. So there will only be one trip. So what if we could? What would we say? What advice would we give?

I often wish I could do this. Just once. So, just in case the time machine ever comes along, this is the career advice I would give my 25-year-old self.

SQLPAL and Drawbridge

Introduction

SQLPAL & Drawbridge is a virtualization technique which implements an virtualization layer that wraps unmodified Windows/Linux application into a container, so as to enable the app to run on Linux/Windows platforms, makes traditional applications easy to be cross-platform and well-isolated.

Drawbridge is a research prototype of a new form of virtualization for application sandboxing, raised and developed around 2011.

Then the SQL Server team launched a project named “Helsinki”, wihch aimed to transplant SQL Server to Linux platform, making SQL Server a cross-platform database. They did it by integrating Drawbridge into SQL Server Operating System (SOS). SQLPAL is born.

Configure Kerberos Authentication for Oracle 12c in Windows 2016 AD

Why

In order to test if Progress Oracle wire-protocol ODBC driver supports Kerberos authentication, I spent several days configuring Kerberos authentication for our test Oracle server.

Basically, the configuration consists of 3 machine provisioned in Azure:

  • A Windows 2016 AD Domain controller (with domain name SSIS.COM)
  • A RHEL machine that runs Oracle 12.1 on it
  • A Windows 2016 machine that acts as client.

References

Step by step

Freewriting 1

突然发现将近两年没更新了[捂脸]…

既然我司收购了Github,以后便要多建repo多发commit~

C#高级编程 Notes

Part 1 C# 语言

Core C#

常量总是静态的。

byte类型默认无符号,有符号的叫sbyte

decimal类型不是基本类型,在计算时候会有性能损失。

stringSystem.String):引用类型,对象分配在堆上。字符串不可变,修改一个字符串会创建一个新的string对象,原来字符串不变。

objectSystem.Object)。

case子句必须包含break语句,除非子句为空。