>simple text editor
Lisp-homos can't do anything with their shit language
JOJ
It was also supposed to be one made my LISP users, not one made twenty five years ago.
...
the graphical requirement was pretty lame, but rather than righteously flout that ("here's a vi-like editor for a terminal that someone might actually grow a practical editor out of, take it and fuck off"), someone posted a Racket solution that was a GUI text buffer editor with no features, not even file management.
Lisp confirmed terrible.
These threads are OK. Just post more code and less of the same sniping you can see someone already posted five times already.
Challenge #0: write an ed-style editor.
required tech:
1. command line args
2. reading/writing files
3. line-based replacement of file contents
4. interactive commands
minimal ed-like commands for those without culture. Feel free to make real ed commands instead:
1. 'p' to print out entire file content
2. '123 r blah blah blah' to replace line 123 with blah blah blah
3. 'w' to write file
4. 'w foo' to write to file foo
5. s/a/b/ to replace a with b in the entire file.
exhibit #0: open a file containing the following text and fix it with an ed session. You know what the problem is. No need to word wrap.Linux was originally developed for personal computers basedon the Intel x86 architecture, but has since been ported tomore platforms than any other operating system.[20] Linux isthe leading operating system on servers and other big ironsystems such as mainframe computers, and the only OS used onTOP500 supercomputers (since November 2017, having graduallyeliminated all competitors).[21][22][23] It is used byaround 2.3 percent of desktop computers.[24][25] TheChromebook, which runs the Linux kernel-based Chrome OS,dominates the US K–12 education market and represents nearly20 percent of sub-$300 notebook sales in the US.[26]Linux also runs on embedded systems, i.e. devices whoseoperating system is typically built into the firmware and ishighly tailored to the system. This includes routers,automation controls, televisions,[27][28] digital videorecorders, video game consoles, and smartwatches.[29] Manysmartphones and tablet computers run Android and other Linuxderivatives.[30] Because of the dominance of Android onsmartphones, Linux has the largest installed base of allgeneral-purpose operating systems.[31]
...
Well, I know LISP can't do much, but that's kind of pathetic...
it's a
new
goal post and it's numbered, so that later challenges can be easily distinguished from it.
meanwhile, "moving goalposts waaah" we've already got 5x the quota of in these threads. By my solemn of goalpost-moving, you are hereby required to complain about goalposts only in the context of a code solution to a numbered challenge, or to the original one.
TOP
FUCKING
WEW
LAD