by informatimago · 10y ago · 0 comments
He may write programs on paper, and send them to you to type them in, compile them, and print out a listing with the errors. You then send back the listing, and he will correct his program and repeat.
He'll become a great programmer, since he will have to be extra careful to avoid losing one week on some typo.
Now, it's been a few years since gcc has been able to produce a real listing of the compiled source. You would have to write some script to combine the error output with the source file to produce a classic listing. Similarly for other common modern programming language implementations.
On the other hand, without direct access to a computer, he would not attempt to write any interactive or GUI application, only batch programs, unless the interaction is performed only by an external tester for him.
Another idea: some progress has been made on optical character recognition, so if he can write well enough, it may be possible that you may be able to scan his written programs, and convert them to source file easily, without having to transcribe them. So the process could be smooth enough.
If writing ustensils include typewriter, then even better for the OCR!
Comments like this reminds me of how much of a difference is to live in a 3rd-world country compared to a 1st-world country. I am still on my twenties and I can still relate to what the parent comment says, I learned the basis of my programming skills reading books around ~8 years ago because during that time having a personal computer in my home country was a luxury. Very often I joke with my friends that most of the innovative things that we find in the market are already +3 years old. I still remember the popularity of the BlackBerry when it was already obsolete in the US because of the iPhone.
One thing I did during that time to learn some algorithms was to buy a deck of cards — which I suppose is allowed in jail — which allows you to understand sorting algorithms and some of the basic data structures like queues and stacks. Writing things on paper might also help to visualize and memorize some concepts (I know, memorizing is not the solution, but what else can you do when you cannot run your code in a computer).
I hope it helps, and good luck to @givinguflac 's friend.
I'd pay good money to know what the prison superintendent thinks of this cryptic communication.
(I kid, of course.)
The guy could 'run' his hand written programs on his own.
Unless, by chance, you were suggesting he set up some kind of turing machine where running is a different matter than reading your program over in your head?
Reminds me of this Reply All podcast episode https://gimletmedia.com/episode/64-on-the-inside/
"For years, Paul Modrowski has been writing a blog from inside a maximum security prison. Only thing is, he was arrested when he was 18 and has never seen the internet."
Can you share with readers the version number for the last gcc that can do this satisfactorily?
I would concentrate on the things that don't require a computer- algorithms and mathematical type stuff (the stuff I am not particularly good at these days because I am usually setting up servers, using a database and high level frameworks).
Basically it's a listing that intermixes the original C code with the generated assembly.
It worked fine on my Ubuntu 16.04 system, running GCC 5.4.0 so I don't understand what was better before.
We learned to code by typing out programs on the selectrics...
I was going to ask if he has access to a smartphone to take and send photos of paper?
Set up a server for it. Hell turn it into a business.