Reputation
844
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
10 18
Impact
~264k people reached

Dec
27
revised Are there any programming languages that follow a minimalist development approach?
added 223 characters in body
Dec
27
revised What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
edited title
Dec
27
answered Are there any programming languages that follow a minimalist development approach?
Dec
27
comment What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
@Brad: I haven't used those, but that document looks well worth a read.
Dec
27
comment What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
Answer to a possibly related question here: stackoverflow.com/questions/15649/…
Dec
27
revised What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
edited title
Dec
27
comment What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
@MichaelT: yup, those were the chapters I looked at. They specifically deal with how to store the elements of a document as objects, and how to design their APIs so that they can render themselves. It doesn't discuss how to map the user's caret position/text selection to the document representation.
Dec
27
comment What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
@MichaelT: it does indeed, that was my first thought too. I couldn't find any examples in it related to this particular question, although I should take another look.
Dec
27
revised What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
edited tags
Dec
27
comment What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
Gotcha. Do you have any examples of data structures that might be used for this mapping?
Dec
27
comment What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
Sure: my question though is about how to keep track of the link between the tree representation and the text displayed to the user.
Dec
27
revised What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
added 194 characters in body
Dec
27
asked What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?
Dec
20
comment What to do when a sprint is finished early?
Same thing you do when your code's compiling: xkcd.com/303
Oct
25
awarded  Popular Question
Sep
22
awarded  Yearling
Jul
31
comment How to program for constraints/rules
@Gaurav: modelling cards as objects sounds like a fine way to treat the cards themselves, but you’re quite right that that doesn’t complete the job of modelling a card game. A card game is a separate thing from the cards used to play it (hence playing cards are used to play lots of different games).
Mar
11
comment I'm a Subversion geek, why should I consider or not consider Mercurial or Git or any other DVCS?
@MartinGeisler: ah, cool, I’ll take a look at that. I’ve never actually used Git, but there are definitely times with Mercurial when I’ve made accidental or disorganised commits and would like to clean them up a bit.
Mar
11
comment I'm a Subversion geek, why should I consider or not consider Mercurial or Git or any other DVCS?
@Benjol: sure, that was my understanding too.
Mar
4
awarded  Popular Question