TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lisp Tips

115 pointsby sabyaover 11 years ago

4 comments

vinceguidryover 11 years ago
I went through HtDP awhile back. Mind-blowing, changed the way I approached programming, yada yada. Scheme held a special place in my heart for years after.<p>Back then I would have loved to have found a job where I could have used it. I settled for Ruby. After a year of using Ruby seriously, I started to wonder again about using Scheme, so I took a look at some of the available options.<p>Naturally, like everyone else in this situation, I ran into the brick wall of just not having the community support Ruby has, so it&#x27;s very difficult to justify using it on any project except purely personal projects, and even then, it&#x27;s more about exploring a domain rather than exploring a programming paradigm, so I never did get to do anything serious in Lisp. Clojure&#x27;s nice and all, but the JVM is turning into quite the bit of baggage, hard to justify using it over Ruby.<p>That&#x27;s when I took another look at Ruby and realized it did pretty much everything I needed, meta-programming-wise, why bother with continuations and macros when you can use composition and module mixins to achieve practically the same thing? (environment tracking and easy DSL creation) Sure it&#x27;s not as mathematically pretty as Lisp is, but Ruby syntax is still much prettier than Lisp&#x27;s.<p>After awhile I realized that the HtDP way of solving problems and the OO&#x2F;SOLID way work equally well. You&#x27;d just use one with a language like Ruby and the other with a more functional paradigm like Lisp. OO is plenty flexible if you avoid listening to the zealots.<p>One focuses on the functions&#x2F;data and the other focuses on the classes&#x2F;objects. Screw that, I say focus on the domain. Make that logic as tight as you can, then introduce interfaces to it. With that model, Ruby works Just Fine.
评论 #6828233 未加载
cleverjakeover 11 years ago
too bad it hasn&#x27;t been updated in a half a year :&#x2F;<p>I would really like to find an active version of something like this
评论 #6823217 未加载
评论 #6822399 未加载
davexunitover 11 years ago
Someone should make a Scheme tips site.
评论 #6825926 未加载
mck-over 11 years ago
Here&#x27;s a SLIME tip I recently found out:<p>C-c I -- this will give you an inspector that is much better than using (inspect foo)