Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Make Your Ruby Script Confusing

193 views

Published on

about Constants in Ruby

Published in: Software
  • Be the first to comment

  • Be the first to like this

Make Your Ruby Script Confusing

  1. 1. MAKE YOUR RUBY SCRIPT CONFUSING SATOSHI TAGOMORI (@TAGOMORIS)
  2. 2. CONSTANT
  3. 3. DO YOU UNDERSTAND ABOUT CONSTANT IN RUBY?
  4. 4. Constant Name starts with capital alphabetical letters can be overwritten (with warnings)
  5. 5. Samples...
  6. 6. (Re) Constant Name starts with capital alphabetical letters can be overwritten (with warnings)
  7. 7. Try some Ruby versions!
  8. 8. Nobu did it (as always) Feature #13770: "Can't create valid Cyrillic-named class/module" http://d.hatena.ne.jp/nagachika/20180410/ruby_trunk_changes_63127_63130 https://bugs.ruby-lang.org/issues/13770
  9. 9. What I did:
  10. 10. rb_enc_isupper() "UPPER" in Onigmo
  11. 11. UnicodeData.txt http://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt
  12. 12. List "CAPITAL" "LETTER A" from UnicodeData.txt using Ruby Try this script ...
  13. 13. "A" with something above
  14. 14. "A" with something below "A" with something above & below
  15. 15. "A" with something on left shoulder "A" with something on right "A" with something on both
  16. 16. "A": something interesting https://emojipedia.org/tag-latin-capital-letter-a/
  17. 17. ENJOY MAKING RUBY SCRIPT CONFUSING!
  18. 18. "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." -- John F. Woods https://groups.google.com/forum/#!msg/comp.lang.c++/rYCO5yn4lXw/oITtSkZOtoUJ https://stackoverflow.com/questions/876089/who-wrote-this-programing-saying-always-code-as-if-the-guy-who-ends-up-maintai

×