Top10 доводов против языка Ruby

Embed Size (px)

DESCRIPTION

Вольный перевод слайдов с конференции Matz'a.

Text of Top10 доводов против языка Ruby

  • 1. Top10 , Ruby - !

2. 10. 3.

  • , CPAN Perl,
  • Ruby:
    • 96
    • Ruby Application Archive (RAA) 1,200
    • RubyForge 800
    • RubyGems 900,000 gems-

4.

    • 100%
    • Ruby
    • Usenet
    • -

5.

  • , Ruby
    • HP, Intel, NASA NOAA
  • Ruby
    • , , , ,
    • Ruby on Rails
      • - Basecamp Blinksale

6. 10. ! 7. 9. 8.

  • ;
  • ()

9. -

  • obj.attribute =
  • dangerous! query?

10.

  • :
    • local_var = ...
    • @instance_var = ...
    • $global_var = ...
  • do...end {...}
  • Java-
  • : Ruby- #{...}

11.

  • Ruby:puts Hello world!
  • Java:threeVeryLongLines.weHopeWork...
  • Perl:#$
  • Lisp:((a(((b)))(c)))

12. 9. ! 13. 8. Ruby - - 14. Ruby - -

    • , ... !
  • ,
    • self, Python

15. Ruby -

  • , Perl
  • ( attr_accessor)
  • Ruby

16.

  • ,
  • ,

17. 8. Ruby - ! 18. 7. 19.

  • ,
    • :
    • : ()

20. Ruby ... 21. ...

  • Java,

22. 7. ! 23. 6. 24. - Ruby while { ... } until { ... } while ... end until ... end do { ... } while do { ... } until begin ... end while begin ... end until foreach { ... } each do ... end for(...;...;...) { ... } 25. ?

  • N + 1
  • foreach { ... }

26.

  • N + 1
  • .

27. 6. ! 28. 5. 29. ?

30. ?

31. 5. ! 32. 4. 33.

  • eval()
    • instance_eval()
    • class_eval() module_eval()

34.

  • Hook into Rubys math and conversion operations

35. 4. ! 36. 3. Ruby 37. - , 38.

  • ,

39. 3. Ruby ! 40. 2. 41. 96 Read/Write CSV XML YAML Talk to Email FTP Web Serve Code Servlets XML-RPC Work with Math Templates Threads Tools for Debugging Docs Testing 42. 2. ! 43. 1. (Mike Clark)