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
end *a lot* of time studying other people's 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, >> >

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 pu

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 http://www.gettingclojure.com/notes:clojure-notes-l

Re: Lack in the documentation

2012-02-16 Thread Gregg Williams
ot;newcomer-hostile"? (See my post, which is part of this thread: http://groups.google.com/group/clojure/browse_thread/thread/f97699164e9be29e/a9b91350905109b1?lnk=gst&q=Gregg+Williams#a9b91350905109b1 ) For future reference: I invite you to be less dismissive of someone who would li

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 wha

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 wrote: > Sorry, the elisp got scrambled in the p

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
Good 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 wrote: > I suppose the noob tag is appropriate ie I was around so

Re: Clojure stack

2011-05-18 Thread Gregg Williams
w them code that promotes their understanding, right now; once they understand, show them how to "collapse it down" into the code that dazzles. In the movie "Annie Hall," Woody Allen said something like, "A relationship is like a shark. It has to be constantly moving

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 wrote: > On

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 Interf

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

2011-04-08 Thread Gregg Williams
nal post, please post it here. Don't consider this reply to mean that I feel the thread 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 be

help--reading keyboard input from Clojure is surprisingly difficult

2011-04-07 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 lear

Re: DDJ for Clojure/Lisp/FP

2011-03-21 Thread Gregg Williams
I'm writing again to report on the community's interest in my previous post. Two people expressed an interest in providing modest amounts of time to make a community-supported Clojure magazine (or magazine-like entity) happen; one of them has significant technical editing skills himself. So we've g

Re: DDJ for Clojure/Lisp/FP

2011-03-14 Thread Gregg Williams
ot;Reply to author". To start, I'd need 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 wrote: > Hi there, > Is there something like Doc

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 t

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

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 http://www

Re: New Release of the Clojure Debugging Toolkit

2010-10-10 Thread Gregg Williams
> > one you are running into, the path/file separator differences. > > > I've just pushed my best guess at a fix for windows to the windows > > branch here:http://github.com/GeorgeJahad/cdt > > > Can you try doing a: > > git fetch > > git checkout wind

Re: New Release of the Clojure Debugging Toolkit

2010-10-09 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:\tech>java - ag

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

2010-08-13 Thread Gregg Williams
d no one can edit it but you! I'm extremely open to changing the site, so 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 hackin

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 (

Re: Clojure's n00b attraction problem

2010-07-06 Thread Gregg Williams
t out. 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 wrote: > This weekend I've been diving head-first into Clojure, and I've documented a > lot of the sticking points th

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 progra

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

2010-04-29 Thread Gregg Williams
Have you ever wanted to abandon a simple program with a bug that has been DRIVING YOU CRAZY because it's just got to be something SO simple, you'd be embarrassed to admit that you didn't see WHAT WAS STARING YOU IN THE FACE all along? Well, this is mine: (ns org.InfoML.genclassObject (:gen-class

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; thanks.

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

2010-04-27 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 working

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

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 { priva

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 http://www.piccolo2d.org/learn/interface.h

(newbie) How to access a Java class's field?

2010-04-06 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 http://www.piccolo2d.org/learn/interface.

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 clojure@googlegroups

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