2009-04-01から1ヶ月間の記事一覧

mysql5.4-beta

いつの間にかmysql-5.4.0-betaが出てた!mysql5.1と比較して59%も高速化してるってテストしないとhttp://dev.mysql.com/tech-resources/articles/mysql-54.html

javascriptでデザインパターンやるとこうなる

結構使いそうなFactoryパターンのサンプル (function(){// factory class function Order(class) { this.class = class; } Order.prototype.new = function () { return new this.class; }// Product class function Product() {} Product.prototype.execute…

ORACLEがSUNを買収!

74億ドルだって!すごいな。どうしても手に入れたかったMySQLをこんな形で手に入れるとはInnoDB,BDBは3年くらい前に買収されちゃっててFalconやMariaみたいなエンジンを開発してたんだと思うけどせっかくここまで作ったのにFalconが開発中止とかなったら…

pythonでProxyパターン

pythonでデザインパターン考えるときってサンプル無いから結構しんどいんだよね結構書き換えないといけない場合が多くて・・・それでもProxyパターンは結構楽でしたで、早くできたからスレッド使ってFreeBSDの起動時にくるくる回ってるのみたいなのを作って…

pythonでFlyweightパターン

コード #!/usr/bin/env python # -*- coding: utf-8 -*- import sysclass Stamp: type = "" def __init__(self, type): self.type = type def execute(self): if self.type is not "": print(self.type) class StampFactory: pool = "" def __init__(self): …