Re: Clojure cheatsheet with tooltips (alpha)

2012-03-28 Thread Dave Sann
How are you able to make the tooltips extend beyond the browser window. I have not seen this before. Dave On Saturday, 24 March 2012 21:15:20 UTC+11, Andy Fingerhut wrote: > > There are still some problems with this, but it is ready for experimental > use, at least. Alex, please don't put this

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-27 Thread Rostislav Svoboda
> I think a tool like you describe sounds like a fun hack to write but I don't > see how it has anything to do with the cheat sheet. A tool that writes the code instead of you cannot be called a sheet anymore. It's cheating in its *purest* form :) But I repeat: Don't get excited too much. To make

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-27 Thread Alex Miller
Maybe I'm in the minority but I don't think the cheat sheet needs to be a queryable oracle for all Clojure information. It's just a tool to jar your memory or browse for a function by category. When I first started using Clojure I found it helpful to browse through sequence functions in parti

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-27 Thread Chip Collier
Hi, > The key question is "Why do we need a cheatsheet"? Well, the learning > Speaking from personal experience as someone who writes Python for a living. There are a lot of cases where I know that Clojure *could* already have a function to do something but I don't know what it's called. So I hav

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
> I have a repo called sente that is largely a blank slate. Would you be > interested in collaborating on this? Yes I'm *definitely* interested but I doubt I'd gonna be much useful for you. > If so let me know your github username and ill add you to the project. Thank you but I think it brings

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Devin Walters
I have a repo called sente that is largely a blank slate. Would you be interested in collaborating on this? If so let me know your github username and ill add you to the project. Cheers, '(Devin Walters) On Mar 26, 2012, at 4:31 PM, Rostislav Svoboda wrote: >> It's certainly a non-trivial pr

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
> It's certainly a non-trivial problem To solve this problem would mean 'to make computer think'. That's why I only mentioned 'frequently used patterns'. But it would be a great tool to help learn clojure. -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Devin Walters
This is basically exactly what I've been thinking about. I was going to get the cheatsheet into a place where I could use it easily so I could ask: (sente [1 2 3]) Since [1 2 3] is a clojure.lang.PersistentVector, we could return functions that operate specifically on that type. But the idea

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
> if there are any strong feelings about how to make the cheatsheet more of a > modular, queryable structure than it currently is. The key question is "Why do we need a cheatsheet"? Well, the learning curve is steep. I.e. there are things like [1] quite many functions and [2] they are hard to rem

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Devin Walters
Ah, I was thinking the reverse: (clojure.string/split (name :foo->bar) #"->") But yes, you might be right. I guess the only thing I'd say is that the structure as it currently exists is sort of a bear. It just "feels" too big, like there's a more modular solution, but maybe it's not necessary?

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Andy Fingerhut
It might be straightforward to write a bit of Clojure code that takes the first structure and transforms it into the second. Discarding information you don't want is usually easier than adding information that isn't there. Strings could be manipulated to remove characters that are illegal in ke

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread mnicky
just the first idea that came into my mind: maybe with something like RDF schema? On Monday, March 26, 2012 8:47:54 PM UTC+2, Devin Walters (devn) wrote: > > This is slightly off-topic, but I wanted to discuss the structure of the > cheatsheet. > > I would like to turn the cheatsheet into a mo

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Devin Walters
This is slightly off-topic, but I wanted to discuss the structure of the cheatsheet. I would like to turn the cheatsheet into a more queryable document than it currently is and allow for it to be a dependency via clojars. cheatsheet-structure has a lot of the display logic for various output

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Andy Fingerhut
Yeah, it was cl-format and many others that were doing that. I've fixed it via a quick method. Every doc string line that was over 80 characters is now wrapped, by itself, without attempting to detect or reflow entire paragraphs. Andy On Mar 26, 2012, at 2:35 AM, mnicky wrote: > Seems that t

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread mnicky
Seems that the text of cl-format overflows the right edge of the tooltip: http://i.imgur.com/B0ljt.png (tested in FF, Opera, Chrome) On Monday, March 26, 2012 11:12:50 AM UTC+2, Andy Fingerhut wrote: > > I've replaced this test page [1] with another one. The one I posted on > March 24 has been

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Andy Fingerhut
I've replaced this test page [1] with another one. The one I posted on March 24 has been overwritten. The version at [2] that does not use JavaScript, but only the title attribute on anchors, is still there as it was yesterday. [1] http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-25 Thread mnicky
On Sunday, March 25, 2012 1:41:29 PM UTC+2, Bost wrote: > > I personally find this one better: > > http://homepage.mac.com/​jafingerhut/files/cheatsheet-​clj-1.3.0-v1.4-tooltips/​cheatsheet-title-attribute.​html

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-25 Thread Rostislav Svoboda
I personally find this one better: http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-tooltips/cheatsheet-title-attribute.html The tooltips appear right at the place where I'm looking and pointing my mouse, and they tend to appear always at the same place - below the mouse and lin

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-25 Thread Philip Potter
This looks great! Big usability win! Phil On 24 March 2012 10:15, Andy Fingerhut wrote: > There are still some problems with this, but it is ready for experimental > use, at least.  Alex, please don't put this on clojure.org -- it ain't ready > yet. > > http://homepage.mac.com/jafingerhut/file

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread Peter Buckley
The tooltips work well on my BlackBerry, thanks! -Original Message- From: Rostislav Svoboda Sender: clojure@googlegroups.com Date: Sat, 24 Mar 2012 13:18:57 To: Reply-To: clojure@googlegroups.com Subject: Re: Clojure cheatsheet with tooltips (alpha) Hi Andy On 24 March 2012 11:15

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread Rostislav Svoboda
Hi Andy On 24 March 2012 11:15, Andy Fingerhut wrote: > There are still some problems with this, but it is ready for experimental > use, at least.  Alex, please don't put this on clojure.org -- it ain't ready > yet. > > http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-tooltip

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread mnicky
The tooltips themselves seem pretty nice, but on smaller windows, they are sometimes placed behind the edges and thus not visible: http://i.imgur.com/YA4gF.png On Saturday, March 24, 2012 11:15:20 AM UTC+1, Andy Fingerhut wrote: > > There are still some problems with this, but it is ready for ex

Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread Andy Fingerhut
There are still some problems with this, but it is ready for experimental use, at least. Alex, please don't put this on clojure.org -- it ain't ready yet. http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-tooltips/cheatsheet-full.html I found and used TipTip for tooltips [1],