Skip to content

Instantly share code, notes, and snippets.

View HoneyLuka's full-sized avatar

Luka HoneyLuka

View GitHub Profile
require 'open-uri'
require 'net/http'
require 'nokogiri'
require 'json'
require 'digest/md5'
$ignore_file_name = "ignore_url.cache"
$array = []
def append_ignore_url url

一、命名规范

1、统一要求

含义清楚,尽量做到不需要注释也能了解其作用,若做不到,就加注释,使用全称,不使用缩写。

2、类名

大驼峰式命名:每个单词的首字母都采用大写字母