by spinningarrow on 8/18/2016, 5:11:52 PM
by cubano on 8/18/2016, 7:05:06 PM
Here is the same project, done in PHP in less then 5 minutes...
$split_by_whitespace = explode(file_get_contents('exaample.txt')," ");
$circular = array();
for ($i=0;$i<count($split_by_whitespace);$i++) {
array_push(array_shift($split_by_whitespace));
$circular[]=$split_by_whitespace;
}
sort($circular);
print_f($circular);
While I am sure there a lot of interesting use cases for Racket, but when it comes to processing array data, I'll take PHP everytime.by WillPostForFood on 8/18/2016, 6:37:24 PM
I really like Racket, but I wish there was more community and support around it outside the educational world.
by eorge_g on 8/18/2016, 6:16:05 PM
Great to see Northeastern's computer science program represented on Hacker News
by pbw on 8/19/2016, 2:13:29 PM
Does he use the symbol for lambda without saying how to type it or whether there's an ascii equivalent like "lambda"?
I have barely any Racket experience, but this sounds really good to me:
"My favorite part of Racket is how it supports a certain development style of evolving scripts into programs […] I transition from "no code" to "working code" to "robust code" to "re-usable code", the program is almost always runnable."