Re: Beginning Clojure Development

2015-09-10 Thread Gregg Williams
All the above suggestions are good. In addition, I've learned a lot by doing the problems at 4clojure.com. BUT after you solve a problem, the real learning starts. You then get access to other people's solutions. (You get to choose whose answers get listed, and some of the best programmers are

I'm trying to decode some source code to understand how it works

2015-06-22 Thread Gregg Williams
Hi-- The code in question is a solution to http://www.4clojure.com/problem/58 (write a function that does function composition, without using 'comp'). The solution I'm trying to understand is by amalloy: (defn mycomp [ fs] (reduce (fn [f g] #(f (apply g %))) fs)) For

Re: OO Programmer trying to move to Clojure: Encapsulation

2015-02-09 Thread Gregg Williams
@Dru, I feel I'm ahead of you in learning Clojure, but I'm not yet to where @Colin is. However, I'm close enough that I recognize how accurate and concise his advice is--in fact, I'm saving it to remind myself! Also, I just finished reading Functional Programming Patterns in Scala and Clojure,

Re: practice for learning clojure

2014-07-10 Thread Gregg Williams
solutions, looking at both the factors of elegance and readability in solutions. do you have any good projects/solutions recommended? 在 2014年5月28日星期三UTC+8上午3时15分37秒,Gregg Williams写道: Hi, Randy, I'm several years into learning Clojure. Here's what has worked for me: * Use either Light Table

Re: practice for learning clojure

2014-05-27 Thread Gregg Williams
Hi, Randy, I'm several years into learning Clojure. Here's what has worked for me: * Use either Light Table or (if you're determined) Emacs as your IDE. * I learned a lot from taking this free online course: http://iloveponies.github.io/120-hour-epic-sax-marathon/index.html * I have *all* the

Re: Lack in the documentation

2012-02-18 Thread Gregg Williams
Please understand that these are* personal notes* and as such are very, very messy. http://seanneilan.com/Clojure.html In a similar vein, I posted three pages of (early) notes on working with the labrepl tutorial environment, starting at

Re: Lack in the documentation

2012-02-16 Thread Gregg Williams
I think the big problem, is that Clojure makes a big deal about being Simple. That is, avoiding unneeded complexity, but then throws its users into the sea of complexity that is Java. If I want to write arbitrary binary data to a file, I really don't want to take the time to learn what a

Re: Lack in the documentation

2012-02-16 Thread Gregg Williams
is part of this thread: http://groups.google.com/group/clojure/browse_thread/thread/f97699164e9be29e/a9b91350905109b1?lnk=gstq=Gregg+Williams#a9b91350905109b1 ) For future reference: I invite you to be less dismissive of someone who would like to be of help. To quote from the abovementioned thread: I

Re: C-c C-x keybindings for swank-cdt don't work

2012-01-28 Thread Gregg Williams
George, I don't know why it works (my init.el file doesn't seem to mess with anything), but adding that code to the end of init.el makes things work. You're doing great things for the Clojure community--many thanks! On Jan 27, 7:27 pm, George Jahad cloj...@blackbirdsystems.net wrote: Sorry, the

C-c C-x keybindings for swank-cdt don't work

2012-01-26 Thread Gregg Williams
Hi--After several attempts, I've gotten CDB working...sort of, and I'm stuck. Following the example on http://georgejahad.com/clojure/swank-cdt.html, I execute the following: (use 'clojure.set) (use 'swank.cdt) (set-bp clojure.set/difference) which execute OK. When I execute: user (difference

Re: classpath on seesaw????

2011-11-15 Thread Gregg Williams
Hello! As a beginning Seesaw user, I had the same trouble. Here is a solution that I just confirmed as working: $ cd seesaw/src $ lein deps $ lein run -m seesaw.examples.kitchensink (in the last line, note the omission of ...test. ...) Dave, thanks for all your work. One small problem: you've

Re: porting an old project - where to begin?

2011-06-04 Thread Gregg Williams
luck with your project--I'd like to see a project of that size recoded in Clojure! Gregg Williams http://www.GettingClojure.com Info and forums for people who aren't Clojure experts...yet! On Jun 4, 12:24 am, Daniel doubleagen...@gmail.com wrote: I suppose the noob tag is appropriate ie I

Re: Clojure stack

2011-05-18 Thread Gregg Williams
forward or it dies. I think this is true for a programming language as well, and I think that moving forward means growing the user base. I've *been* saying yes to newcomers--go to http://www.GettingClojure.com --but I need your help. Are you ready to say yes...to newcomers? Gregg Williams manager

Re: Learning Idiomatic Clojure

2011-05-12 Thread Gregg Williams
This is good advice, but I can't parse 1a after the phrase or maybe, and I'm not sure about 1b. Can you reword them, making it clearer when you're using a Clojure keyword? I want to be sure I understand what you're saying--it sounds insightful! Thanks. On May 11, 9:09 pm, Ken Wesson

Re: 2D graphics options with Clojure?

2011-05-02 Thread Gregg Williams
I have been using a longstanding, well-supported Java 2D drawing toolkit called Piccolo2D (http://www.piccolo2d.org/index.html). Here is some text from its home page: - Piccolo2D is a toolkit that supports the development of 2D structured graphics programs, in general, and Zoomable User

help--reading keyboard input from Clojure is surprisingly difficult

2011-04-08 Thread Gregg Williams
Having worked with Clojure for over a year, I can sympathize with Clojure beginners (like myself) who find it extremely difficult to do simple things with Clojure. (It took me weeks to get Clojure working with Emacs, Swank, and the Clojure Debugging Toolkit, but I'm persistent.) Now this. I'm

Re: help--reading keyboard input from Clojure is surprisingly difficult

2011-04-08 Thread Gregg Williams
is finished! --- Gregg Williams, gregg AT-SIGN GettingClojure DOT-SIGN com http://www.GettingClojure.com: because we're *all* still learning Clojure! -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: DDJ for Clojure/Lisp/FP

2011-03-14 Thread Gregg Williams
authors, reviewers, people with ideas for content-- and maybe an administrator/logistics person. Who's interested? Best wishes, Gregg Williams On Mar 13, 5:30 pm, Andreas Kostler andreas.koestler.le...@gmail.com wrote: Hi there, Is there something like Doctor Dobbs Journal for Clojure/Lisp

Emacs/Slime: can't get a REPL with local environment after break

2010-11-26 Thread Gregg Williams
I hope everybody is having a good weekend (esp. after Thanksgiving in the US). Has anybody been successful using Emacs to create an environment where you can set a break statement and, when it is hit, you have REPL access to the program's current environment at the point of the break? I've tried

can't get a slime server running

2010-11-21 Thread Gregg Williams
Hi--I'm on Mac OS X Snow Leopard, and I'm going crazy trying to get a slime server running (I've done it successfully before, on both OS X and Windows). Leiningen is installed and running. Here's a completely new terminal window: - Last login: Sun Nov 21 21:25:14 on ttys000 You have mail.

Re: New Release of the Clojure Debugging Toolkit

2010-10-11 Thread Gregg Williams
You going to do some speech recognition in Clojure? Unfortunately, no. I just have some hand RSI problems, and I use Dragon NaturallySpeaking for writing e-mails and documenting Clojure code. You can see an example of the notes I've taken while going through the labrepl exercises at

Re: New Release of the Clojure Debugging Toolkit

2010-10-10 Thread Gregg Williams
Thanks for your ridiculously long instructions on using cdt; I appreciate your thoroughness. I'm working on the %$#...@^@! Windows platform (Windows XP, to be precise), and I'm unable to set cdt-source-path in my .emacs file. I can get my Clojure REPL to start just fine: C:\techjava -

Re: New Release of the Clojure Debugging Toolkit

2010-10-10 Thread Gregg Williams
doing a: git fetch git checkout windows from within your cdt repo, and see if that works any better for you? Thanks! On Oct 9, 11:31 pm, Gregg Williams greg...@innerpaths.net wrote: Thanks for your ridiculously long instructions on using cdt; I appreciate your thoroughness. I'm

two announcements: a new Clojure article, and a new site for beginners

2010-08-13 Thread Gregg Williams
please share your ideas in the Suggestions for This Site section of the forum, or write me at gregg4 at-sign GettingClojure dot-sign net. I'd love to hear from you! Thanks for listening, and good hacking! Gregg Williams GettingClojure.com site manager -- You received this message because you

Re: Idea for personal Clojure project

2010-07-30 Thread Gregg Williams
Daniel (and anyone else reading this) I would like to correspond with you because I'm working on a project for which your word graphing is a subset. I invented a standardized electronic notecard (see http://infoml.org), with the idea that writers and others could dump chunks of information (with

Re: Clojure's n00b attraction problem

2010-07-06 Thread Gregg Williams
. I want to help create the beginner's site I never had! (More content coming from me, but slowly) --Gregg Williams On Jun 27, 2:58 pm, Greg g...@kinostudios.com wrote: This weekend I've been diving head-first into Clojure, and I've documented a lot of the sticking points that I've run

Re: Beginner's question regarding implementing a constructor using gen-class

2010-05-11 Thread Gregg Williams
Okay...eleven days later and I've finally got something that works! You can find a fully working Clojure version of GraphEditor.java at http://gist.github.com/398198 Clojure beginners, there is a lot you can learn from comparing the Java and Clojure versions of this program (though Clojure

Re: Beginner's question regarding implementing a constructor using gen-class

2010-04-29 Thread Gregg Williams
Alex, thanks for your two posts and for taking the time to look at the original source code. Some comments: Re: Integer being final. Actually, I remembered that...and then forgot. Tired? Clueless? You decide. I'm going to fold your observations into a new test program to see what happens;

Beginner's question regarding implementing a constructor using gen-class

2010-04-28 Thread Gregg Williams
Hi--another example, another failed attempt to do something that looks quite basic (grumble, grumble) ... I'm continuing on my path to learning how to use Clojure with the graphics library Piccolo2D (http://www.piccolo2d.org) by re- implementing some of Piccolo2D's sample programs. Now I'm

Re: Java interop question: proxy or gen-class?

2010-04-16 Thread Gregg Williams
Many thanks to Meikel Brandmeyer, whose code (after a one-character typo correction) worked the first time. As soon as I saw it, I understood every line of it; the problem was, it wouldn't have occurred to me to put all those elements (which, individually, I understood) together in just that way.

Re: Java interop question: proxy or gen-class?

2010-04-13 Thread Gregg Williams
Since my last post, I've implemented and successfully run everything in this sample program except the ToggleShape class, and I absolutely cannot figure out how to use proxy correctly. Here's the Java code that I'm trying to re-create in Clojure: class ToggleShape extends PPath {

Java interop question: proxy or gen-class?

2010-04-09 Thread Gregg Williams
Hi--I'm continuing on my path to learning how to use Clojure with the graphics library Piccolo2D (http:// www.piccolo2d.org) by re-implementing some of Piccolo2D's sample programs. This time, I'm working on the Building the Interface program described at

Re: Newbie question re. calling Java from Clojure

2010-04-05 Thread Gregg Williams
Thanks for the help! I found and corrected a few more errors. You can see the final result with documentation, at http://gist.github.com/354147 . -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Newbie question re. calling Java from Clojure

2010-04-02 Thread Gregg Williams
Hi-- I'm trying to write a GUI-based Java program from within Clojure, and I'm using an interesting library called Piccolo2D (http:// www.piccolo2d.org). The worldwide intersection of Clojure and Piccolo2D is probably *me*, but I'm hoping that someone here can point me in the right direction. I'm