We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Ruby's Strings and What Java Can Learn From Them

Formal Metadata

Title
Ruby's Strings and What Java Can Learn From Them
Title of Series
Number of Parts
611
Author
License
CC Attribution 2.0 Belgium:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language
Production Year2017

Content Metadata

Subject Area
Genre
Abstract
Ruby's Strings aggregate a collection of bytes and an encoding, allowing forIO to avoid transcoding, regular expressions to execute against raw bytes, and7-bit strings to be compactly represented. Only the last item has been adoptedby Java. To make matters worse, most Java APIs depend on Java's stringrepresentation, making them incompatible with alternative languages like Ruby.We'll explore the advantages of Ruby's string compared to Java's and discussoptions for improving Java's string support in the future.