This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (8)
- # beginners (1)
- # boot (127)
- # cider (17)
- # cljs-dev (17)
- # clojure (69)
- # clojure-argentina (3)
- # clojure-australia (35)
- # clojure-japan (1)
- # clojurescript (66)
- # core-matrix (2)
- # cursive (33)
- # datascript (1)
- # emacs (2)
- # hoplon (17)
- # instaparse (1)
- # melbourne (1)
- # off-topic (13)
- # re-frame (7)
- # reagent (3)
@serce, as good as you’re going to get: https://books.google.com/books?id=dQtnCgAAQBAJ&printsec=frontcover
and sometimes crashes, but re-running works fine, even in pretty small, uninteresting projects
lein repl may fail after 40 seconds, or it may launch in 2, or it may just take 30 to start and not fail…. why? i’m fine with even 10 seconds, as long as it’s more consistent and reliable
@bbloom: never seen that happen... I grumble that Leiningen is slow to start up some projects sometimes but it's very consistent for me. If a project works, it always works, and always takes about the same time to start up.
anyone have a snippet for testing for the existence of a resource file in a jar?
everything’s wonderful when working with files on disk, and then the physics of the universe change when you compile to .jar 😐
@cfleming: can cursive also display missing namespaces, for example, when I delete a whole file, I get warnings from places where it was used?
@borkdude: Yeah, you’ll get unresolved symbol warnings for the symbols that were in that namespace
@borkdude: Ummm…. no, I don’t think so. That would be very nice, though. Issue welcome!
@borkdude: In general, it seems like you’d want to be able to see all usages of elements from a namespace before you deleted it, i.e. you actually want a safe delete of a namespace.
in my case, I'm stripping an old project because I want to use it as a template for a new project
i.e. you’d want to be able to try to delete a namespace and see where the problems with that are?
a red curl under the filename to indicate there are warnings inside that file, like Eclipse has and also on the parent directories, would be good
@borkdude: Yeah, the error marker in the file would be good, I’ll have to investigate how to do that.
So I'm planning to make a site which is mainly a SPA, but probably with the usual forest of admin pages done in a traditional HTML forms style. My first thought was to use Rails, just because gems like Devise and Upmin autogenerate all the tricky auth and admin pages. I'm not quite ready to rule out Clojure, though. What do I gain/lose by using, say, Luminus? (Is Luminus still the state of the art?) Rails or not, I'm using ClojureScript for the SPA part.
A while ago, I experimented with using Liberator to do a pure REST API, but setting up authentication via Friend using only API requests seemed possible, but not documented or supported. If nothing else, I'd want to use a framework that takes some of those concerns out of my hands. I know enough about website security to know that it's better to use a well-respected library!
So if nothing else, I'd really like a turnkey solution for authentication/security, so I'm not stressing about CSRF and whatnot.
Hi all, I want a middleware to do request logging (ala what nginx would provide) I found this? _ (pprint long)
@stuartsierra: yes.. something with AOT probably.. the thing is that I managed to resolve this (by including the sources in the uberjar, and AOT compiling only the entry point ns IIRC) in very similarly built projects in both 1.6 and 1.7.. not sure why it doesn't help this time. also using lein not boot.
Yeah, I'm going through the Luminus tutorial right now. It looks like pretty much what I was looking for: a set of "sensible defaults" to show a beginner how to get off the ground with Clojure's various webapp-related libraries.
Mentioned along with Parse and Firebase here : https://github.com/martinklepsch/tenzing
Yeah, it looked like it fit into the same category as Parse. Since I'm making a small side project for my own education, though, it makes more sense for me to use Luminus and really see how everything is laid out.
Hi all, Im using buddy to do authentication and authorization. I have a split SPA and server side app. And so have two types of endpoints, one set are returning html to render and the others are doing REST/json.
@donmullen: Last time I tried this (like a year ago), I tried Liberator, and I couldn't quite figure out how to authenticate, store login status in the session/cookie, etc. On the other hand, I really liked its programming model.
I want to make a very short/quick and simple proof of concept to connect to a mysql db. It will need to insert new users who register thru a website, and verify their logins. What could I use? Should I go with strictly cljs instead of normal clj? I intend to do more with it later, but I just need something thrown together by tomorrow afternoon to show what it will basically look like.
I think people are shying away from Heroku due to price and limitations of free tier, and Google AppEngine has issues with startup time IIRC
@redbeardymcgee: Making a website which authenticates users against a mysql database is not terribly hard, but if you aren't already familiar with the Clojure web dev ecosystem, you might not get your proof of concept in a day. Do you know how to do this in another language, or is this your first experience?
If the choice of language doesn't matter, and you're a beginner, and you absolutely have to be up and running in a day, I suggest using a more popular language, where you can find dozens of bulletproof walkthroughs.
If it's got to be Clojure, I guess you could do what I'm doing right now and use Luminus! Just be ready to figure out on your own how to hook up mysql, etc. For the specific things you mentioned, I don't expect you to need ClojureScript.
amacdougall: yes i'm not intimately familiar with anything beyond bash/sh but i grok fundamentals and i'm very attracted to lisp/fp.
@redbeardymcgee: Well, give Luminus a shot! I'm doing the tutorial and sample app right now, and it seems pretty reasonable. Luminus isn't a framework, exactly; more like a generator for a pre-built template that represents a known-good configuration of libraries. If you're new to the whole game, though, just be warned that web dev requires at least passing knowledge of a lot of stuff, so it might take a while to gear up mentally.