Talk:Determine if a string has all the same characters: Difference between revisions

posted some thoughts and answers, and a character quip.
mNo edit summary
(posted some thoughts and answers, and a character quip.)
Line 9:
 
[[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 13:45, 30 October 2019 (UTC)
 
<br>
----
<br>
 
Not just of course, &nbsp; &nbsp; &nbsp; <big> ... ''the same comment applies to the other task''</big>, &nbsp; &nbsp; &nbsp; there are numerous others.
 
There are many Rosetta Code tasks that deal with a &nbsp; '''character''' &nbsp; or &nbsp; '''characters''', &nbsp; and there are many other tasks that use the word &nbsp; '''character''' &nbsp; or &nbsp; '''characters''', &nbsp; all of them &nbsp; (if not most of them, &nbsp; unless noted otherwise) &nbsp; as far as I recall, &nbsp; refer to a byte, &nbsp; ASCII/EBCDIC character(s), &nbsp; to an 8-bit character, &nbsp; or other such similar designations/nomenclatures.
 
 
Some of Rosetta Code tasks that I found which deal specifically with &nbsp; ''character''/''characters'' &nbsp; (words which are in their task title) &nbsp; are &nbsp; (and I'm sure that some were missed/overlooked):
&bull; Character code
&bull; Character codes
&bull; Character matching
&bull; Determine if a string has all the same characters
&bull; Determine if a string has all unique characters
&bull; Display an extended (non ASCII) character onto the terminal
&bull; Given a character value in your language, print its code
&bull; Idiomatically determine all the characters that can be used for symbols
&bull; Just in time processing on a character stream
&bull; Read a file character by character/UTF8
&bull; Remove the first and last characters from a string/Top and tail
&bull; Special characters
&bull; Split a character string based on change of character
&bull; String Character Length
&bull; Strip a set of characters from a string
&bull; Strip control codes and extended characters from a string
&bull; Terminal control/Display an extended character
&bull; Terminal Control/Reading a character at a specific location on the screen
&bull; Words Of Equal Characters
 
 
There are way too many other Rosetta Code tasks to mention that deal with &nbsp; ''characters'' &nbsp; in some form or another.
 
 
Since Rosetta Code deals (essentially) computer programming languages, &nbsp; and almost always &nbsp; (in my opinion), &nbsp; deals with characters that are, in essence, the same as bytes (8 bits). &nbsp; This Rosetta Code task is in that tradition. &nbsp; I didn't expect to have to define what a character &nbsp; ''is'', &nbsp; just as all the other tasks dealt with this question. &nbsp;
 
If somebody wants to add a definition to all the existing Rosetta Code tasks that use the word '''character''', &nbsp; I would not stand in their way.
 
 
As for the problem of &nbsp;
''How are languages with Unicode support expected to deal with this?''
is a question I'm not able to answer competently. &nbsp; Perhaps that query could be answered/addressed by learned people with more experience with Unicode support in languages they know well. &nbsp; Defining &nbsp; '''character(s)''' &nbsp; at this late point would really add a lot of verbiage to quite a few Rosetta Code tasks, &nbsp; not to mention discussion pages. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 15:56, 30 October 2019 (UTC)
 
As an aside, &nbsp; I always thought of &nbsp; ''Thundergnat'' &nbsp; as quite the character, &nbsp; but he is much more than 8 bits; &nbsp; a description I hope he takes as a compliment. &nbsp; &nbsp; &nbsp; <big><big><big><big> 😉 </big></big></big></big> &nbsp; &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 15:56, 30 October 2019 (UTC)