On Nov 5, 12:16 pm, Dennis Haupt <d.haup...@googlemail.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hi, > > i'm half done with my asteroids clone. i stumbled over a few problems > and wanted to know how others already solved them :) > > i am used to "less concrete programming". i ask my tools to do the > actual analysis and coding for me: > * where is that used?
Your editor does have a search fn right? > * rename that again, all editors have this. > * show me all errors what do you mean? for example when I compile a file in emacs I (normally) get the line where the error is. or do you mean runtime errors? > * add a parameter here not sure I understand this one. if you mean (defn [a]..) to (defn [a b] ...) how do you do that without manual intervention in any language/ editor? (just adding more args to something doesn't mean they will be properly handled... that is our job) > * autocomplete this for me, i am too lazy to even remember the exact > method name emacs has this(possible not out of the box) and I suspect other too. > * show me a list of all methods and fields starting with an "e" that > fit in here. i know the one i want is in that list. emacs also has this(possible not out of the box) and again I suspect other too. > > as elegant as clojure may be as a language, it's dragging me down to > almost native text editing which i did more than 10 years ago when i > wrote a game in turbo pascal. > > how did you solve these problem and get some tool-support? or don't > you miss it because of something i am not aware of? I know IDE support isn't as good as in java but, after looking at your code, yes, there is something your not aware of and that is why clojure is giving you a hard time. The main thing to keep in mind is that when coming from java/scala, you'll have a hard time adjusting to clojure, and you're making it harder by trying something so inherently full of state. I understand the need to tackle problems that we like, but without a good understanding of the language you're going to have a really hard time, and that reflects in your code. First, understand the philosophy of clojure. look here http://tinyurl.com/5u3suzf and here http://www.infoq.com/presentations/Simple-Made-Easy If you understand that philosophy and identify with it then try to solve very small problems(preferably with little to no inherent state), and try to be as idiomatic as possible. To understand how to solve problems idiomatically, read books (e.g. joy of clojure) ask in the IRC or here on how to solve particular problems and complement this with understanding the key ideas of libraries that excel in this(e.g Ring). When you have a good understanding of the language and underling philosophy, invest some time to think about your problem and how to properly express it clojure. > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.14 (MingW32) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iQIcBAEBAgAGBQJOtSkdAAoJENRtux+h35aGeeQP+gJbQdNSZEdEIgjVFC/VZvRe > z1Rh9Z8xVwxbuyl/kx1GMLU3jZxJKkhp0OIp7RLbDgjwFFzwBnQ0CZSeuHd9bFD/ > S5Vmf6tXB4AdC3u3a7wZilEQuSuq+ARtJhMKdGIQfoXgqDYA7JwOvV8ZkpiR2T2d > pKqswheRVstBqo9/xyinfuLsJMujDlF9NshoIC0n1b/L4tzddq/kgzIATcg/NJ4N > I0Qd1lqGC1THU2nHtiaSR66KQE5Ciq22FN0nVoT3jW9EU/kJ9tao7L6SUTY3tcaA > th8mxKLYId/NrbRmsYUTyWe6O30HAUTLLFEnImYTW2fUMdwRYeAoZGc7t5V3yJ/p > dU4JN0dGA/ADbdTItykaao1DtGI2/kGe6p9VaKk3IPCVAOio9UwgOCUQylTKqy7M > CWbrDcSFCQs5pTY1Sw5We9LV2VOBoTsai6vH/qE7t98mJLVf0wHvLLIBOkf/QO5a > HuSyCJRpOrWQF2jbooDqAbaJAa6huxLQjMeO9Ri4sDx2gDRYsf9Fmdjp4TFWWjdZ > O5HEzhUR165peQHo4RQLLf8dnlkibsdbx60n+VJ0E4iE7ID+hBOFC76bAllnAS1K > Q8HqXUogMi/ZLXIAB4BA83q71IEDVcytuYAn9Ku2FQLrmWCiOD57uMhSLjtzK/8J > TIuaLwipARdzsqi/piwl > =MnRq > -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en