Skip to main content
edited body
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237
  1. I'm always wary of naming my classes according to performance criteria. What if you (or someone else) finds a faster method of reading tokens from an input stream. Would you then write an EvenFasterReader? How about something like TokenReader?

  2. Consider letting the user pass the delimiters as well (optionally). This will make it more useful by allowing to parse input which is delimited by other things than white spaces.

  1. I'm always wary of naming my classes according to performance criteria. What if you (or someone else) finds a faster method of reading tokens from an input stream. Would you then write an EvenFasterReader? How about something like TokenReader?

  2. Consider letting the user pass the delimiters as well (optionally). This will make it more useful by allowing to parse input which is delimited by other things than white spaces.

  1. I'm always wary of naming my classes according to performance criteria. What if you (or someone else) finds a faster method of reading tokens from an input stream. Would you then write an EvenFasterReader? How about something like TokenReader?

  2. Consider letting the user pass the delimiters as well (optionally). This will make it more useful by allowing to parse input which is delimited by other things than white spaces.

fixed typos
Source Link
ChrisWue
  • 20.4k
  • 4
  • 42
  • 107
  1. I'm always wary of naming my classes according to performance criteria. What if you (or someone else) finds a faster method of reading tokens from inan input stream. Would you then write an EvenFasterReader? How about something like TokenReader?

  2. Consider letting the user pass the delimiters as well (optionally). WillThis will make it more useful by allowing to parse input which is limiteddelimited by other things than white spaces.

  1. I'm always wary of naming my classes according to performance criteria. What if you (or someone else) finds a faster method of reading tokens from in input stream. Would you then write an EvenFasterReader? How about something like TokenReader?

  2. Consider letting the user pass the delimiters as well (optionally). Will make it more useful by allowing to parse input which is limited by other things than white spaces.

  1. I'm always wary of naming my classes according to performance criteria. What if you (or someone else) finds a faster method of reading tokens from an input stream. Would you then write an EvenFasterReader? How about something like TokenReader?

  2. Consider letting the user pass the delimiters as well (optionally). This will make it more useful by allowing to parse input which is delimited by other things than white spaces.

Source Link
ChrisWue
  • 20.4k
  • 4
  • 42
  • 107

  1. I'm always wary of naming my classes according to performance criteria. What if you (or someone else) finds a faster method of reading tokens from in input stream. Would you then write an EvenFasterReader? How about something like TokenReader?

  2. Consider letting the user pass the delimiters as well (optionally). Will make it more useful by allowing to parse input which is limited by other things than white spaces.