O''''''''Reilly Network For Information About''''''''s Book part 1 ppt

O''''Reilly Network For Information About''''s Book part 1 ppt

O''''Reilly Network For Information About''''s Book part 1 ppt

... technical questions about this book, send email to: bookquestions@oreilly.com For information about books, conferences, Resource Centers, and the O'Reilly Network, see the O'Reilly ... (707) 829-0 515 (international/local) (707) 829- 010 4 (fax) There is a web page for this book, which lists errata, examples, or any additional information. You can access this page at:...
Ngày tải lên : 07/07/2014, 08:20
  • 6
  • 314
  • 0
O''''Reilly Network For Information About''''s Book part 11 ppt

O''''Reilly Network For Information About''''s Book part 11 ppt

... productive because they are weakly typed. They are misinformed. Consider this brief Ruby example: irb(main):003:0> i =1 => 1 irb(main):004:0> puts "Value of i:" + i ... questions relatively early in the design process. 4.3 .1. Strong Versus Weak Typing Strong versus weak typing decides how a type is enforced, or interpreted. In a weakly typed language (like...
Ngày tải lên : 07/07/2014, 08:20
  • 5
  • 280
  • 0
O''''Reilly Network For Information About''''s Book part 12 pptx

O''''Reilly Network For Information About''''s Book part 12 pptx

... and finishing work later, because much of your code x2 = 1 10 0.times do puts x2 x1, x2 = x2, x1+x2 end It's 6 lines; 16 words; 57 characters. Notice how the code just flows better. ... different, and convert objects that aren't. The extra syntax provides valuethe compiler has more information to catch bugs earlier. There's a cost, too. Static typing makes yo...
Ngày tải lên : 07/07/2014, 08:20
  • 6
  • 223
  • 0
O''''Reilly Network For Information About''''s Book part 13 ppt

O''''Reilly Network For Information About''''s Book part 13 ppt

... on information in a variable's type. You can't always get the same contextual information out of a Ruby or Smalltalk IDE. 4 http://www.agiledeveloper.com/articles/GenericsInJavaPartI.pdf, ... typing reduces certain types of errors (like misspelled variable names), and provides more information for your IDE and other tools. (Most security-related typing arguments refer to...
Ngày tải lên : 07/07/2014, 08:20
  • 6
  • 340
  • 0
O''''Reilly Network For Information About''''s Book part 17 ppt

O''''Reilly Network For Information About''''s Book part 17 ppt

... that I interviewed for this book recognized that static typing limits productivity for application development dramatically, though some said they were willing to pay the cost for certain types ... be much more consistent, and cleaner. The characteristics in Table 5-4 would form a cleaner foundation for another 10 years of successful growth. Table 5-4. Important language feat...
Ngày tải lên : 07/07/2014, 08:20
  • 7
  • 212
  • 0
O''''Reilly Network For Information About''''s Book part 19 pptx

O''''Reilly Network For Information About''''s Book part 19 pptx

... irb(main): 010 :0> ('a' 'z') = = = 'h' => true irb(main): 011 :0> ('a' 'z') = = = 'H' => false irb(main): 012 :0> (1 10) ... to primitives and arrays of primitives. 6 .1. 2. Typing Try to do an assignment without a declaration: irb(main): 011 :0> n =1 => 1 irb(main): 012 :0> n.class =>...
Ngày tải lên : 07/07/2014, 08:20
  • 10
  • 250
  • 0
O''''Reilly Network For Information About''''s Book part 21 pptx

O''''Reilly Network For Information About''''s Book part 21 pptx

... hours/night) Lines of code 3,293 1, 164 Lines of configuration 1, 1 61 113 Number of classes/methods 62/549 55 /12 6 Table 7-2 shows the performance numbers. They're probably a little more controversial. ... (no preexisting cache) 71. 89 75.59 User scenario 1 (10 0 runs) (with preexisting cache) 80.86 17 4.39 never in danger of getting stuck in a corner, but for...
Ngày tải lên : 07/07/2014, 08:20
  • 8
  • 213
  • 0
O''''Reilly Network For Information About''''s Book part 26 pptx

O''''Reilly Network For Information About''''s Book part 26 pptx

... environments. I used the Squeak IDE for examples in this chapter. Squeak is a dialect of Smalltalk popularized by Disney. 8.4 .1. A Little Smalltalk Syntax Before we get too far, you should know ... block, so links don't get out of sync. The framework manages them for you.  Seaside is modal. This is the author's word for a continuation server ap proach. Seaside lets you...
Ngày tải lên : 07/07/2014, 08:20
  • 8
  • 248
  • 0
O''''Reilly Network For Information About''''s Book part 41 ppt

O''''Reilly Network For Information About''''s Book part 41 ppt

... function over accessing a member function. [11 ] The function never throws. [10 ] Such functions are known as shims. See [12 ] in the Bibliography. [11 ] The idea is that the line between operating ... responsible for making sure that the reference count is always correct and, if the reference counter drops to zero, to delete the pointer. Therefore, you must overload those funct...
Ngày tải lên : 07/07/2014, 08:20
  • 5
  • 255
  • 0
O''''Reilly Network For Information About''''s Book part 44 pptx

O''''Reilly Network For Information About''''s Book part 44 pptx

... the primary reasons for its success, but sometimes also a formidable source of headaches because of the complexity of certain parts of the language. For instance, the rules for numeric conversions ... the resource still exists. If it doesn't, accessing it wreaks havoc. With weak_ptrs, the information that the shared resource has been destroyed is propagated to all weak_ptrs o...
Ngày tải lên : 07/07/2014, 08:20
  • 6
  • 279
  • 0