5 ms·
This is a lot of fun. I used this step by step tutorial to write the same editor in Go.
by bediger4000 4y ago
This is a lot of fun. I used this step by step tutorial to write the same editor in Go.
- timsneath 4y agoMe 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/kilo.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 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 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!
- bediger4000 4y agoThank 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.
- bmitc 4y agoIs your code available somewhere, like on GitHub?
- bediger4000 4y agoSure. I'm bediger4000 there too