💾 Archived View for midnight.pub › replies › 2312 captured on 2022-04-29 at 13:48:04. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
Hello ~techwing,
gui programming :-) yepp. I have tried it once (tcl/Tk) and then abandoned it. Not my world. So, yay, welcome to the plain/text shell club!
Would I have to do it again ... I would probably try to write a gui, which will call the program on the shell. I'm sure, this is not always the correct answer. And yes, sometimes you have to keep state in the gui ...
The other option I could think of is this: write a library. ALL function/logic resides in this library. And the cmd line program uses the library as does the gui program. But, of course, don't listen to me! There are probably better ways to write software. But I sympathize, because I am still stuck on the command line after roughly 35 years.
Cheers,
~ew
That’s the approach widely adopted. Emacs has emacs base and then emacs nox over it for CLI and separate emacs for GUI