started at . submit by
let's make a text editor 1 step at a time. for our first task, we need to wrap
words. submissions can be written in any language.
word wrapping is often a necessary part of displaying words on a screen,
especially when they need to stay in a particular area. it's probably a feature
of every piece of software you've ever used that shows text (so, all of it). let
me remind you what it is.
text is generally taken to be a one-dimensional concept unless you're writing
Befunge, but it's displayed on a two-dimensional surface. the thing about two
dimensions is that it's like a lot of one-dimensional things pasted together,
so it gives you more space in your space. it'd be more convenient if we could
just print everything on paper and screens one em tall. we wouldn't need word
wrapping then. but then books and screens would have to be very long, and you
wouldn't be able to fit them through doorways very easily. so instead we have
rectangles, and are resigned to cutting up text so it can fit: word wrapping.
there are many technical details as to how one might implement this. but this is
code guessing, where we don't care about them. at the minimum, I'll ask this: my
brand new code guessing editor will target displays 80 columns wide. at the
minimum, I should be able to wrap text for such a terminal. this is word
wrapping, so I also ask that you not break up continuous series of letters.
thank you. as any language is allowed, there is no fixed API.
1 entry has been received so far.