Talk:Read a file line by line: Difference between revisions

From Rosetta Code
Content added Content deleted
m (clarifified how to enable prompting when not entering an edit summary.)
(→‎Some constraints?: Too mature to change the tasks nature now.)
Line 22: Line 22:


I'd like to see some constraints on this task. This task is a potential example of the classic "buffer overflow" problem, and neglecting to even mention that issue in this context seems irresponsible. Perhaps we could impose some reasonable line length limit? (Would a megabyte be a reasonable line length limit?) --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 23:06, 8 March 2015 (UTC)
I'd like to see some constraints on this task. This task is a potential example of the classic "buffer overflow" problem, and neglecting to even mention that issue in this context seems irresponsible. Perhaps we could impose some reasonable line length limit? (Would a megabyte be a reasonable line length limit?) --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 23:06, 8 March 2015 (UTC)
:Only potentially. This task is mature and too late to change. You could however try and write a new buffer overflow task, but we try and make tasks accessible to a wide range of languages and in some, the size of a string buffer may be naturally memory limited rather than limited by some smaller constant that the programmer is steered towards using by their normal language idioms.
: You would have to word it right. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 00:02, 9 March 2015 (UTC)

Revision as of 00:02, 9 March 2015

C++ could use an STL-algorithm implemented solution, ala: http://stackoverflow.com/questions/1567082/how-do-i-iterate-over-cin-line-by-line-in-c/1567703#1567703


Could someone show the NetRexx Solution? Thanks in advance!

YOY can't I get used to entering the summary
Could a prompt be implemented when one saves without summary?

--Walterpachl 16:20, 8 July 2012 (UTC)



Click on:

  • {option)   Preferences
  • (tab)   Editing
  • (checkbox)   [ ]   Prompt me when entering a blank edit summary.
  • (button)   Save

-- Gerard Schildberger 16:31, 8 July 2012 (UTC)

Some constraints?

I'd like to see some constraints on this task. This task is a potential example of the classic "buffer overflow" problem, and neglecting to even mention that issue in this context seems irresponsible. Perhaps we could impose some reasonable line length limit? (Would a megabyte be a reasonable line length limit?) --Rdm (talk) 23:06, 8 March 2015 (UTC)

Only potentially. This task is mature and too late to change. You could however try and write a new buffer overflow task, but we try and make tasks accessible to a wide range of languages and in some, the size of a string buffer may be naturally memory limited rather than limited by some smaller constant that the programmer is steered towards using by their normal language idioms.
You would have to word it right. --Paddy3118 (talk) 00:02, 9 March 2015 (UTC)