@smith.adriane I want to try making a productivity app with stuff like timers, and way to store notes
is the app for personal use or will it be distributed to other users?
@smith.adriane I want to try a personal one
i'm not exactly sure why cljfx wasn't a good fit, but it seems like it could work in principle. the folks in #cljfx are pretty responsive if you have questions. if you have cljs experience, an electron app is pretty straightforward. I would recommend something like https://github.com/Day8/re-frame (#re-frame for questions) as an overall framework, browser apis for timing, and then use the https://nodejs.org/docs/latest-v13.x/api/for storage.
@dominicm You may be interested in https://github.com/contribsys/faktory — It’s not in the Java ecosystem, but I would choose this over Quartz or somesuch.
I have not read any of this code, but there are at least a couple of examples of people creating little interfaces in clojure. Here’s one: https://github.com/apa512/clj-faktory
I built it after failing to find anything in Clojure that worked like Sidekiq. If anyone wants to try it, it's probably better to look at the tests than the readme.
@smith.adriane Thanks a lot
Looks useful, thanks!
Quick question I need to perform a function on two sequences/vectors A B, for every item on A with every item on B and collect the results. I know map
will operate on nth of A and nth of B, I need A0 to B0, A0-Bn...
(for [a-alem A, b-elem B] (some-expression involving a-alem b-elem here))
Is it possible to inherit deps from another alias in deps.edn?
@karol.wojcik Not in deps.edn itself, only from the command line you can merge alias deps together
There was a conversation about this recently in #tools-deps - there might be something like this one day
Actually that would be useful for convenience, but I know that allowing it would cause a mess in classpath.
As mentioned, combining deps in the command can be an effective way to define separate aliases and merge them together, eg. clojure -M:env/dev:repl/rebel
merging the dev alias to set up the dev class path and the rebel alias to run the Rebel UI.
Some more examples:
https://github.com/practicalli/clojure-deps-edn#repl-experience
You're not the first to ask
Is there a preference between returning a) {k v}
versus b) [k v]
from map
when using into
? I have always used the latter. Seems like there may also be some perf considerations. Have done absolutely zero testing in that regard. For example...
(into {}
(map (fn [[x y]]
;; A
{x y}
;; B
[x y]))
my-coll)
Guys, color me shocked. I just found this strange behaviour:
Clojure 1.10.1
user=> (contains? [1 2 3] 1)
true
user=> (contains? [1 2 3] 2)
true
user=> (contains? [1 2 3] 3)
false
Maybe I should post in #beginners. But how on earth can this be correct?? Please enlighten me. Thanks!!!!common question. check (doc contains?)
> Returns true if key is present in the given collection, ...
vectors are associative collections from index to value. The docstring walks through this as well
@https://app.slack.com/team/U11BV7MTK Thanks! As I said, maybe I should have posted in #beginners :;)
next time 🙂 buts its a common question. you're not the first. probably not the last to ask either 🙂
lol, okay. Sry for bugging you for the nth-time. Btw, awesome community here
never a bother!
if i don't have time i don't answer.
yes, fair enough
Is there a reason deps does not capture the project name like lein did? Is the current approach to just maintain your own pom.xml?
@shaunxcode For now, yes, but Cognitect have talked about an upcoming tools.build
project that we might reasonably expect to address that issue somehow...
(they've said almost nothing publicly about tools.build
but given that pom.xml
generation/sync'ing is already part of the Clojure CLI to some degree, we might assume they would enhance that in future tooling)
cool I look forward to that! For the time being I will just have a skeletal project.clj I use for lein deploy etc.