[Intro-projects] First intro project

48 views
Skip to first unread message

Gianluca Ciccarelli

unread,
Oct 12, 2015, 4:08:08 PM10/12/15
to Racket Users
Hi everyone,

I have finished my first "recreational programming" assignment in Racket and I feel pretty proud, maybe more like a 3-year-old-proud than like a 30-cough-year-old-proud :)

I followed the suggestion in the Intro-projects GitHub project, and linked my repository as an example for the "Find anagrams". I would highly welcome any comments you might have on it as a means to improve.

The repository is at [1]. I am being quite happy with Racket so far, and I am waiting for the wonders to come along the way.

Best,
Gianluca


[1] https://github.com/sturmer/ana.rkt

Greg Hendershott

unread,
Oct 12, 2015, 10:44:27 PM10/12/15
to Gianluca Ciccarelli, Racket Users
Welcome to Racket! It's a lot of fun, and there's a ton of interesting
stuff to learn about when you're ready.

I glanced at your code and it seemed very understandable. I wish my
earliest Racket code had been that good.

Whenever you feel ready to care about writing "idiomatic" Racket code,
you could read sections 4 and 5 of the Racket style guide. (The other
sections mostly don't matter for you, now.)

http://docs.racket-lang.org/style/Textual_Matters.html
http://docs.racket-lang.org/style/Choosing_the_Right_Construct.html

Otherwise my only suggestion is the usual one for a new language: Keep
writing and reading Racket code.

p.s. One tiny tip: I don't think you need to (require 2htdp/batch-io)
for `read-lines`. You can use `file->lines` provided by racket/file,
which #lang racket already requires for you.

Gianluca Ciccarelli

unread,
Oct 14, 2015, 3:53:36 PM10/14/15
to Greg Hendershott, Racket Users
Hi Greg,

Thank you for your warm welcome and for the kind remarks, I am flattered. I am happy to know there is a style guide, I had completely missed that.

I will keep your comment about the file->lines in mind, it is very useful (I had looked for a core package library, but wasn't able to find any)!

Cheers and thanks again,

--
Gianluca Ciccarelli
http://www.gergel.im
GPG key ID: 0x39BBDB6C
Reply all
Reply to author
Forward
0 new messages