Re: Switch devops environments via namespaces

2023-05-18 Thread Joe R . Smith
I mean, it works, it’s clever, … is it more or less “safe” is my question.  On May 18, 2023, at 12:02 PM, Felix Dorner wrote:  Clojure noob here, I might be totally off the track or committing crimes, so please advise. For ops, I have to often call rest services in different environments,

Re: clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-18 Thread Joe R . Smith
, adding an item to the front is as simple as creating a new list that points to the old list. E.g., adding 5 to the linked list 2 -> 3 -> 4 can be thought of as 5 -> 2 -> 3 -> 4. --- Joe R. Smith j...@uwcreations.com <mailto:j...@uwcreations.com> @solussd On Jul 17, 20

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-19 Thread Joe R . Smith
Building off of something Benoit mentioned about conj not being about order, but about adding to a collection, consider conj’s behavior when adding a map-entry to a hash-map:  (conj (hash-map :a 4 :c 1) [:b 3]) => {:c 1, :b 3, :a 4} conj is an interface for adding– not to be conflated with

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Joe R . Smith
FWIW, the same is true for the inverse operation.  If you pop an item off a list you’ll get the list, less the item you conj’d. Same is true with a vector.  --- Joe R. Smith j...@uwcreations.com <mailto:j...@uwcreations.com> @solussd On Jul 16, 2018, at 4:31 PM, Alex Miller ma

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Joe R . Smith
Another way to think about it is lists and vectors are different and the idiomatic way to add items to them is different. A (singly-linked) list is usually prepended to (otherwise you have to walk the entire list to find the end). A vector is usually added to at it’s n+1 index, where n is the

Re: Comparing and selecting web API libraries

2018-03-08 Thread Joe R . Smith
Definitely give Pedestal a look. There is also wonderful Lacinia integration (a Clojure GraphQL library).  Pedestal’s notable capabilities:  https://github.com/pedestal/pedestal/blob/master/README.md#notable-capabilities --- Joe Smith j...@uwcreations.com @solussd

Re: ANN: Cognitect acquired by Microsoft

2017-04-01 Thread Joe R . Smith
Beware the 1st of April.  --- Joseph Smith j...@uwcreations.com @solussd On Apr 1, 2017, at 3:00 PM, Gregg Reynolds > wrote: made ya look! -- You received this message because you are subscribed to the Google

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-01 Thread Joe R. Smith
The reason XML has a bad rap is because it has been used for things like configuration files. XML was intended as a host/platform/language-agnostic data interchange format, not something humans would write by hand, much less have to read. > On Feb 1, 2016, at 4:02 PM, Josh Tilles

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread Joe R. Smith
I’ll come out as an Emacs - Cursive convert. I had been using emacs for Clojure development for 6+ years before I switched. Originally I had no intention of actually switching, but, as Colin suggested, I found enough additional value in Cursive to make my experimentation with Cursive permanent.

Re: [:ann :book] ClojureScript Unraveled

2015-07-17 Thread Joe R. Smith
I believe [:ann :book] is a variant. :D On Jul 17, 2015, at 1:44 PM, Fluid Dynamics a2093...@trbvm.com wrote: Nitpick: a collection of tag keywords, which can be presumed not to have duplicates, is probably better represented as a set or a sorted-set rather than a vector, so #{:ann :book}

Re: [Documentation] looking for diagramming tools

2015-06-29 Thread Joe R. Smith
I use Omnigraffle to draw entity relationship diagrams like that. On Jun 29, 2015, at 4:13 AM, dImas Angga Saputra angga.dimassapu...@gmail.com wrote: Hi Everyone, I'd like to ask about recommendation about diagramming tools, So i saw this post :