Re:Build Your Own Text Editor (2017)
by bediger4000 on Sunday November 13, 2022 @09:53AM
(#33583573)
This is a lot of fun. I used this step by step tutorial to write the same editor in Go.
[ Parent
| on HN ]
Me too. It started a whole chain of events for me:
- I used the tutorial to write it in Dart (https://github.com/timsneath/dart_console/blob/main/example/...)
- I refactored the console pieces (raw mode, ANSI VT sequences) into a separate package (https://pub.dev/packages/dart_console)
- I wrote Windows interop code for the previously Unix-only parts of the editor
- I created a separate package for the Dart/Win32 interop pieces (https://pub.dev/packages/win32)
- I wound up growing and expanding this package to the full Win32 surface area
- Another OSS contributor took and extended my work to support the WinRT
Now there are tens of Dart packages that use the Windows interop work that all started with this little tutorial on a completely unrelated area. So thank you to the author!
Re:Build Your Own Text Editor (2017)
by bediger4000 on Sunday November 13, 2022 @03:35PM
(#33587060)
Thank you for following up. I refactored my original Go version into somewhat more idiomatic Go. I'll compare with your Dart version to see if the packages I ended up with are "organic" or just determined by Go peculiarities.
Is your code available somewhere, like on GitHub?
Re:Build Your Own Text Editor (2017)
by bediger4000 on Tuesday November 15, 2022 @05:24PM
(#33615963)
Sure. I'm bediger4000 there too