This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-14
Channels
- # beginners (4)
- # boot (78)
- # braveandtrue (3)
- # cider (9)
- # clara (6)
- # cljs-dev (4)
- # clojure (57)
- # clojure-brasil (1)
- # clojure-russia (99)
- # clojure-spec (20)
- # clojure-uk (40)
- # clojurescript (162)
- # component (17)
- # cursive (4)
- # datomic (21)
- # docker (2)
- # emacs (5)
- # figwheel (2)
- # hoplon (363)
- # jobs (1)
- # leiningen (1)
- # om (4)
- # om-next (5)
- # onyx (10)
- # proton (1)
- # re-frame (13)
- # reagent (13)
- # ring (3)
- # rum (1)
- # slack-help (1)
- # test-check (3)
- # untangled (7)
- # vim (24)
hello guys! what editor do you recommend to use nowadays?
yeah just to make sure it is still the best default setup
I was going to stick with it
@seylerius and do you suggest a guide to start with this kind of editor? (I’m coming from intellij/eclipse… also sublime guy)
The Clojure for the Brave and True tutorial includes a setup guide for Emacs & CIDER: http://www.braveclojure.com/clojure-for-the-brave-and-true/
nice! thank you bro! 🙂
@seylerius phew! finish all the lessons! what a challenge hahaa.. but I’m enjoying it 🙂
@leo.ribeiro I switched from Emacs to Intelij+Cursive, and pretty much never looked back. There's a lot of cruft that comes with an ancient editor like emacs, and switching to something more modern was a huge win for me. YMMV of course.
@leo.ribeiro that's a very subjective question I guess. Cursive and cider are the most stable and feature rich. Some people even use both 😄 I would also have a look at licenses and pricing if applicable.
Protorepl is a valid alternative if you are ready for a little bit of adaptation, young and promising tool 😀
@tbaldridge @richiardiandrea thanks for the feedback guys… As I’m a Intellij user, I think it would be no learning curve for the tool. But I really want to explore something outside intellij and incline to something lightweight and see if it is worth it over a powerful IDE.
I really enjoy Emacs because I edit such a wide variety of things, and appreciate being able to keyboard the fsck out of everything. I really get a fun "One App to Rule Them All" thing using Emacs.
Ach. Decisions, decisions. I'm trying to decide how to organize a map that needs to hold the following things, and define this in a spec: a shift (integer, -2
to N
), a count of that shift (could be optional, would default to 1
), a following shift or set of shifts (could be a single shift, a seq of possible shifts, or a shorthand referencing a concept like "off" or "anywhere but here", definitely optional), and a count of that follower (just as maybe-optional as the shift count, and would again default to 1). Any tips?
guys, my application have a web server ( immutant ), I want to run a long running task on side by side by this web server, I'm using Components schema, what is the best solution to run the task ?
@lxsameer Does it have to be a scheduled task or just a long running process that you can kick off when the server starts?
For scheduled tasks we use this: http://clojurequartz.info/
@lxsameer http://immutant.org/documentation/current/apidoc/guide-scheduling.html Immutant comes with its own scheduling abstraction
guys what's wrong with this code ? http://dpaste.com/33ZVAKM
i get this exception: "clojure.lang.ExceptionInfo: Unable to resolve symbol: t in this context"
it seems that timbre's namespace can't be resolved, but I have timbre in my dependencies
would it be considered bad practice to programatically define functions at the top level?
for instance, if i'm trying to make a library to wrap an api, say over http from some external service
i might want to make an array of maps that contain metadata about what the functions do, what their arguments are like, and other semantics
since every function does the same thing but slightly differently (all just http requests, some post, some get, with various args), it stands to reason that the functions could just be generated from such an array of maps
what i'd like to know is whether or not there are any pitfalls when going that route, and whether you think doing something like that should be considered lazy or poor code
(btw i'm talking about evaluating something at the top level that invokes the "defn" symbol a bunch of times)
@bcbradley it's not a bad practice. many solid libraries such as enlive used in that way
@bcbradley I assume you want to create many functions with different names for each api features. I'm not so sure you can do that without resorting to macros though
I was happy with clojure reloading. Then I started using defrecord. Now, when I reload a certain namespace, I want to also "reload all namespaces that depend on this one." How can I do this?
qqq I give thee: https://github.com/clojure/tools.namespace
@schemee: okay so I load that library, I save files in emacs, then I just hit (refresh) ?
yes it's really a delight