Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2012-05-03から1日間の記事一覧

JavaScriptで正規表現 | 数字の指定

概要 数字の指定について 構文 [\\d]. = アルファベット、数字、アンダーバー [\\D]. = アルファベット、数字、アンダーバー以外 例 <html> <head> <script language="javascript"> function executeRegExp(target,pattern) { regExp = new RegExp(pattern); document.write('input:target=' + target +</head></html>…

JavaScriptで正規表現 | アルファベット、数字、アンダーバーの指定

概要 アルファベット、数字、アンダーバーの指定について 構文 [\\w]. = アルファベット、数字、アンダーバー [\\w]. = アルファベット、数字、アンダーバー以外 例 <html> <head> <script language="javascript"> function executeRegExp(target,pattern) { regExp = new RegExp(pattern); document.wr</head></html>…

Javaプログラマーが学ぶRuby基礎/クラスの確認

概要 Rubyのクラスの確認について説明します。 構文 Rubyのクラスの確認は以下の構文で利用出来ます。 # クラスの確認 variable = "" puts variable.class # => 変数の型を取得。この場合はString型 puts "true" if variable.instance_of?(String) # => 変数…

書籍 Refactoring to Patterns | Creation | Move Creation Knowledge to Factory

パンくず 書籍 Patterns to Patterns Creation Move Creation Knowledge to Factory 概要 Move Creation Knowledge to Factoryのリファクタリングについて 使用する場面 オブジェクトの生成にいくつか設定が必要であり、 生成のための処理を各クライアント側…

書籍 Refactoring to Patterns | Creation | Replace Constructors with Creation Method

パンくず 書籍 Patterns to Patterns Creation Replace Constructors with Creation Method 概要 Replace Constructors with Creation Methodのリファクタリングについて 使用する場面 オーバーロードした多数のコンストラクタが存在し、 クラスを利用する側…