Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ruby ¼ò½é

    Ruby£¬Ò»ÖÖ為簡單¿ì½ÝÎï¼þ導Ïò編³Ì£¨ÃæÏò¶ÔÏó³ÌÐòÉè¼Æ£©¶ø創µÄ½Å±¾語ÑÔ£¬ÔÚ20ÊÀ¼Í90Äê´úÓÉÈÕ±¾ÈËËɱ¾Ðк루¤Þ¤Ä¤â¤È¤æ¤­¤Ò¤í£¯Yukihiro Matsumoto£©¿ª·¢£¬×ñÊØGPLЭÒéºÍRuby License¡£ËüµÄÁé¸ÐÓëÌØÐÔÀ´×ÔÓÚPerl¡¢Smalltalk¡¢Eiffel¡¢Ada ÒÔ¼° Lisp ÓïÑÔ¡£ÓÉ Ruby ÓïÑÔ±¾Éí»¹·¢Õ¹³öÁËJRuby£¨Java Æ½Ì¨£©¡¢IronRuby£¨.NET Æ½Ì¨£©µÈÆäËûƽ̨µÄ Ruby ÓïÑÔÌæ´úÆ·¡£
    RubyµÄ×÷Õßì¶1993Äê2ÔÂ24ÈÕ開ʼ編寫Ruby£¬Ö±ÖÁ1995Äê12Ô²ÅÕýʽ¹«開發佈ì¶fj£¨ÐÂ聞Ⱥ組£©¡£Ö®ËùÒÔ稱為Ruby£¬ÊÇÒò為PerlµÄ發Òô與6ÔµÄ誕Éúʯpearl£¨ÕäÖ飩Ïàͬ£¬Òò´ËRubyÒÔ7ÔµÄ誕Éúʯruby£¨紅寶ʯ£©ÃüÃû¡£
    RubyÃ÷顯±ÈÆäËû類ËƵijÌʽ語ÑÔ£¨ÈçPerl»òPython£©Äê輕£¬ÓÖÒò為RubyÊÇÈÕ±¾ÈË發Ã÷µÄ£¬ËùÒÔÔçÆڵķÇÈÕÎÄ資ÁϺͳÌʽ¶¼±È較貧·¦£¬ËùÒÔ現ÔÚÔÚ網ÉÏÈÔÈ»¿ÉÒÔÕÒµ½RubyµÄ資ÁÏÌ«ÉÙÖ®類µÄÅú評¡£約ì¶2000Ä꣬Ruby開ʼ進ÈëÃÀ國£¬Ó¢ÎĵÄ資ÁÏ開ʼ發Õ¹¡£
    ¼õÉÙ±à³ÌʱºòµÄ²»±ØÒªµÄËöËéʱ¼ä£¬Áî±àд³ÌÐòµÄÈ˸ßÐË£¬ÊÇÉè¼Æ Ruby ÓïÑ﵀ Matz µÄÒ»¸öÊ×ÒªµÄ¿¼ÂÇ£»Æä´ÎÊÇÁ¼ºÃµÄ½çÃæÉè¼Æ¡£ËûÇ¿µ÷ϵͳÉè¼Æ±ØÐëÇ¿µ÷ÈËÐÔ»¯£¬¶ø²»ÊÇһζ´Ó»úÆ÷µÄ½Ç¶ÈÉèÏë[1]¡£

ÈËÃÇÌرðÊǵçÄÔ¹¤³ÌʦÃÇ£¬³£³£´Ó»úÆ÷×ÅÏë¡£ËûÃÇÈÏΪ£º“ÕâÑù×ö£¬»úÆ÷¾ÍÄÜÔËÐеĸü¿ì£»ÕâÑù×ö£¬»úÆ÷ÔËÐÐЧÂʸü¸ß£»ÕâÑù×ö£¬»úÆ÷¾Í»áÔõÑùÔõÑùÔõÑù¡£”ʵ¼ÊÉÏ£¬ÎÒÃÇÐèÒª´ÓÈ˵ĽǶȿ¼ÂÇÎÊÌ⣬ÈËÃÇÔõÑù±àд³ÌÐò»òÕßÔõÑùʹÓûúÆ÷ÉÏÓ¦ÓóÌÐò¡£ÎÒÃÇÊÇÖ÷ÈË£¬ËûÃÇÊÇÆÍÈË¡£

×ñÑ­ÉÏÊöµÄÀíÄRuby ÓïÑÔͨ³£·Ç³£Ö±¹Û£¬°´ÕÕ±à³ÌÈËÈÏΪËüÓ¦¸ÃµÄ·½Ê½ÔËÐС£
RubyµÄ×÷Õß認為Ruby > (Smalltalk + Perl) / 2[來Ô´請Çó]£¬±íʾRubyÊÇÒ»個Óï·¨ÏñSmalltalkÒ»ÑùÍêÈ«ÃæÏò¶ÔÏ󡢽ű¾執ÐС¢ÓÖÓÐPerl強´óµÄÎÄ×Ö處Àí¹¦ÄܵijÌʽ語ÑÔ¡£ÆäËûÌØÉ«°üÀ¨£º
ÔËËã·ûÖØÔØ
À¬»ø»ØÊÕ
ÈõÀàÐÍ£¨¶¯Ì¬ÀàÐÍ | 純Á¿變數£©
±äÁ¿ÎÞÐèÉùÃ÷£¨²»±ØÊÂÏÈÐû¸æ變數£©
ÔÚW


Ïà¹ØÎĵµ£º

Rubyѧϰ±Ê¼ÇÈý——Àà


#Ò»¡¢¶¨ÒåÒ»¸öÀà
class Person
  def initialize(name,age=18)
    @name=name;
    @age=age;
    @motherland="china";
  end
  def talk
    puts "my name is "+@name+" and I am "+@age.to_s
   &nb ......

phpRPC + Ruby + Arduino = Ô¶³Ì¿ØÖÆ

phpRPC + Ruby + Arduino = 遠³Ì¿ØÖÆLED開關(?)
àÅ£¬ÎÒÖªµÀ這ÊÇ個ºÜ無ÁĵÄSample :P
關ì¶phpRPC與Arduino請×ÔÐÐGoogle
觀¿´´Ëdemo֮ǰ請ÏÈ°²裝ÁíÍâһƪËùÌáµ½µÄserialport
與ÁíÍâÒ»個Gem
Ì×¼þ£ºphprpc
ÔÚ這個ļ ......

Fix Thrift 0.2.0 Installation with Ruby 1.9.1

When I try the command "gem install thrift" with Ruby 1.9.1, I got a compilation error with something related to a C function "strlcpy()".
Then I searched the web. It seems I am not alone and the community know it.
However I do not want to wait for official update, I want to ......

ruby Á¬½Ó²Ù×÷ sql2005


The following is improved version of the code created by David Mullet, from
http://rubyonwindows.blogspot.com/2007/03/ruby-ado-and-sqlserver.html
require 'win32ole'
class SqlServer
# This class manages database connection and queries
attr_accessor :connection, :data, :fields
attr_wr ......

ÓÃrubyдµÄwebץȡС¹¤¾ß

×î½üÓÉÓÚѧϰʹÓÃlinuxϵÄC¿ª·¢£¬ÐèÒª²éѯLinux Cº¯Êý²Î¿¼£¬¾Í¾­³£ÉÏhttp://man.chinaunix.net/develop/c&c++/linux_c/default.htm²é¿´£¬ÃèÊöµÃ±È½ÏÏêϸ¶øÇÒ»¹ÓÐÀý×Ó¡£
ÍøÉÏ»¹ÓÐÐí¶à¸÷ÖÖ¼¼ÊõµÄÍøÒ³¸ñʽµÄ²Î¿¼²ÄÁ϶¼·Ç³£Ç¿´ó£¬¿ÉϧºÜ¶àʱºò¶¼Ã»ÓÐÍø¡£ÓÚÊǾÍÏëд¸ö½Å±¾¿ÉÒÔ°ÑÎĵµÏÂÔØ£¬Ïñandroid¿ª·¢ÕßÎĵµÒ»ÑùŪµ½±¾µØ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ