摘要: 接触领域驱动设计DDD有一年多的时间了,中间看过不少书,参与过一些讨论(ENode QQ群)。目前对DDD的认知还停留在理论阶段,所以对领域建模非常感兴趣,这里说的建模是指以DDD的思想为指导再加上DDD的工具,比如聚合、实体、值对象等等。 昨天有群友分享了一个建模的案例,我想在这儿记录下来,有两个 阅读全文
posted @ 2016-09-21 23:28 june.js 阅读(1074) 评论(2) 推荐(2) 编辑
摘要: 概述 由于最近在工作中需要用到树形结构来解决一些问题,所以萌生了系统学习“数据结构和算法”的想法,于是乎从最简单的表结构开始。由于数组是最简单的表结构的实现,也是各个编程语言内置的数据类型,所以不做更多的记录。表结构中以下实现打算学习: LinkedList Stack Queue HashTabl 阅读全文
posted @ 2016-07-12 00:12 june.js 阅读(161) 评论(0) 推荐(0) 编辑
摘要: In a relational database, denormalization is an approach to speeding up read performance (data retrieval) in which the administrator selectively adds 阅读全文
posted @ 2016-05-30 11:33 june.js 阅读(152) 评论(0) 推荐(0) 编辑
摘要: In creating a database, normalization is the process of organizing it into tables in such a way that the results of using the database are always unam 阅读全文
posted @ 2016-05-30 11:33 june.js 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Denormalization In computing, denormalization is the process of attempting to optimize the read performance of a database by adding redundant data or 阅读全文
posted @ 2016-05-30 11:24 june.js 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 注意,扩展方法本质上是静态方法,所以拿到MethodInfo时,应该这么调用 methodInfo.Invoke(null, new object[]{params}) 阅读全文
posted @ 2015-09-06 16:14 june.js 阅读(2302) 评论(0) 推荐(1) 编辑
摘要: 刚开始学习编程的时候,老对字符串编码的理解模模糊糊。也一直看这方便的资料,今天在看Dive in python时,突然有了新的理解(不知道是否正确)。 Python有个built-in函数ord(),返回一个字符的unicode值。这个函数并没有其他参数,那就是说,给定一个字符,就会有一个特定值对应 阅读全文
posted @ 2015-04-10 09:32 june.js 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 5 import pyodbc 6 7 8 class MSSQL: 9 """ 10 封装pyodbc 11 """ 12 13 def __init__(self,host,user,pw 阅读全文
posted @ 2015-01-13 09:32 june.js 阅读(1413) 评论(0) 推荐(0) 编辑
摘要: Or,How to use variable length argument lists in Python.The special syntax,*argsand**kwargsin function definitions is used to pass a variable number of... 阅读全文
posted @ 2014-08-13 23:14 june.js 阅读(256) 评论(0) 推荐(0) 编辑
摘要: from xml.etree import ElementTreeclass CommentedTreeBuilder ( ElementTree.XMLTreeBuilder ): def __init__ ( self, html = 0, target = None ): ... 阅读全文
posted @ 2014-06-05 00:33 june.js 阅读(2533) 评论(1) 推荐(0) 编辑