Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A opportunity raised by /undo #226

Open
davewsmith opened this issue Aug 29, 2023 · 0 comments
Open

A opportunity raised by /undo #226

davewsmith opened this issue Aug 29, 2023 · 0 comments
Labels
in-content Lesson content to-change Change something
Milestone

Comments

@davewsmith
Copy link
Collaborator

If you haven't covered it elsewhere in the book, there's a "sometimes the the need for a re-design comes up during implementation, and that's entirely normal" opportunity in this chapter. Sometimes ongoing development nudges one towards the need for new internal APIs. Recognizing how a clean API can simplify ongoing development is common on 'real' programming. Acting on that can lead to more habitable programs.

Here, as Actions get more interesting, especially when considering why the Entire key would require special Action rather than just being another char to insert, one might pause and consider that a large part of the complication in new Actions is that way the text under edit is represented isn't behind a clean API -- one that hides whether the internal representation is a string, an array of line strings, or a more sophisticated gap buffer.

@gvwilson gvwilson added to-change Change something in-content Lesson content labels Sep 28, 2023
@gvwilson gvwilson added this to the version_1 milestone Sep 28, 2023
@gvwilson gvwilson self-assigned this Sep 28, 2023
@gvwilson gvwilson modified the milestones: version_1, version_2 Sep 28, 2023
@gvwilson gvwilson removed their assignment Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-content Lesson content to-change Change something
Projects
None yet
Development

No branches or pull requests

2 participants