from Hacker News

Tutorial: Zero to Sixty in Racket

by Learn2win on 8/18/16, 1:54 PM with 10 comments

  • by spinningarrow on 8/18/16, 5:11 PM

    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."

  • by cubano on 8/18/16, 7:05 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/16, 6:37 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/16, 6:16 PM

    Great to see Northeastern's computer science program represented on Hacker News
  • by pbw on 8/19/16, 2:13 PM

    Does he use the symbol for lambda without saying how to type it or whether there's an ascii equivalent like "lambda"?