Re: how can I count lines of code?

2013-03-27 Thread Nick Ward
Not sure if this is the correct place to be asking this, but

sed '/^\s*$/d;/^\s*;/d' path/to/your/file | wc -l

On Wed, Mar 27, 2013 at 7:36 PM, larry google groups
lawrencecloj...@gmail.com wrote:
 I am curious, is there a simple command line script I could use to count
 lines of code? Or is there some trick in emacs that I can do? I'd like to
 know how many lines there are, minus the comments and white space.

 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: A ClojureScript One Question: Why is so much html created on the client side.

2012-08-10 Thread Nick Ward
I think it depends on the style of web site you are making.
On the more GMail style 'web app' end of the spectrum,
rendering/templating on the client side means you don't have to
inundate the server with AJAX requests (for example, if different
items are cached upon the initial connection). This will also result
in less latency, and a more responsive user experience.

I have no ClojureScript One specific experience, but this should give
you some idea of why it would be preferred over the traditional model.

Nick

On Fri, Aug 10, 2012 at 11:21 AM, john john.vie...@gmail.com wrote:
 Hello,
 I am just trying to understand the best practices in ClojureScript One.

 One thing that strikes me is that most html gets put (with the help of
 macros using enlive) in the actual cljs page.

 As someone who hasn't done web-applications for years I myself would have
 created as much dynamic html content
 as possible on the server. But yet ClojureScript One seems to prefer to
 have all html in maps and render it on the client?

 I also looked at Chris Granger's crate library and it seems to also follow
 this principle.

 Since I consider Chris Granger and Brento Ashworth to be web experts I would
 just like to know the disadvantages of having
 most html rendered on the server?

 Many Greetings
 John


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

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