Talk:Generate lower case ASCII alphabet: Difference between revisions

From Rosetta Code
Content added Content deleted
 
Line 6: Line 6:


"It's bug prone to enumerate all the lowercase chars manually in the code." I disagree with this pretty strongly. If the intent is to disallow such things as strings and literal lists of the 26 letters, that's fine, but it could be a little more clear. "During code review it's not immediate to spot the bug in a Tcl line like this contained in a page of code:" You don't even have to be able to program or know what ASCII is to spot that error, just know your (English) alphabet. An off by one error or a < instead of <= on the other hand can elude the best of us at times. I would drop the editorializing and just clarify that literals of the full alphabet are disallowed. &mdash;[[User:Sonia|Sonia]] ([[User talk:Sonia|talk]]) 17:18, 26 November 2014 (UTC)
"It's bug prone to enumerate all the lowercase chars manually in the code." I disagree with this pretty strongly. If the intent is to disallow such things as strings and literal lists of the 26 letters, that's fine, but it could be a little more clear. "During code review it's not immediate to spot the bug in a Tcl line like this contained in a page of code:" You don't even have to be able to program or know what ASCII is to spot that error, just know your (English) alphabet. An off by one error or a < instead of <= on the other hand can elude the best of us at times. I would drop the editorializing and just clarify that literals of the full alphabet are disallowed. &mdash;[[User:Sonia|Sonia]] ([[User talk:Sonia|talk]]) 17:18, 26 November 2014 (UTC)

== ASCII alphabet vs. EBCDIC vs. Latin (English) alphabet ==
I assume you meant a lowercase Latin (or English) alphabet. &nbsp; Other than the internal coding of the character (or rather, the lowercase letters), &nbsp; the glyphs (depending on the code page) aren't any different then an &nbsp; '''EBCDIC''' &nbsp; version. &nbsp; Generating the same lowercase letter sequence in '''EBCDIC''' doesn't &nbsp; ''define'' &nbsp; it as a lowercase '''EBCDIC''' sequence.

After saying that, a Latin (or English) alphabet may however, display differently, depending upon what code page is being used. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:04, 7 April 2016 (UTC)


As to the &nbsp; &nbsp; ''use a reliable style of coding'' &nbsp; &nbsp; phrase, I interpreted that to mean to code the program in such a way to not assume that the lowercase letters may not be contiguous on other systems, and that the programer should test if a particular character is indeed, a lowercase character. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:04, 7 April 2016 (UTC)

Revision as of 23:05, 7 April 2016

Description needs work

(I know, it's out of draft and has a bunch of solutions already.)

It starts okay, but then I don't know what "For this basic task use a reliable style of coding" means. Is it a dig at some style used in some other tasks? I don't think it belongs. "a style fit for a very large program" Why? This is not a large program. Anyway, what does this mean? Should I add a program version number? Use map/reduce? Outsource tech support? "use strong typing if available" Few languages allow you to pick strong or weak. This extra requirement for a very few languages seems strange.

"It's bug prone to enumerate all the lowercase chars manually in the code." I disagree with this pretty strongly. If the intent is to disallow such things as strings and literal lists of the 26 letters, that's fine, but it could be a little more clear. "During code review it's not immediate to spot the bug in a Tcl line like this contained in a page of code:" You don't even have to be able to program or know what ASCII is to spot that error, just know your (English) alphabet. An off by one error or a < instead of <= on the other hand can elude the best of us at times. I would drop the editorializing and just clarify that literals of the full alphabet are disallowed. —Sonia (talk) 17:18, 26 November 2014 (UTC)

ASCII alphabet vs. EBCDIC vs. Latin (English) alphabet

I assume you meant a lowercase Latin (or English) alphabet.   Other than the internal coding of the character (or rather, the lowercase letters),   the glyphs (depending on the code page) aren't any different then an   EBCDIC   version.   Generating the same lowercase letter sequence in EBCDIC doesn't   define   it as a lowercase EBCDIC sequence.

After saying that, a Latin (or English) alphabet may however, display differently, depending upon what code page is being used.   -- Gerard Schildberger (talk) 23:04, 7 April 2016 (UTC)


As to the     use a reliable style of coding     phrase, I interpreted that to mean to code the program in such a way to not assume that the lowercase letters may not be contiguous on other systems, and that the programer should test if a particular character is indeed, a lowercase character.   -- Gerard Schildberger (talk) 23:04, 7 April 2016 (UTC)