Fork me on GitHub
#off-topic
<
2017-10-08
>
souenzzo02:10:44

Where is the source code for this package? https://www.npmjs.com/package/create-react-class

dominicm08:10:41

@souenzzo it's buried in the react github, hard to find

dominicm08:10:58

My trick was to npm install it, and read the source from node modules

pesterhazy11:10:11

looks like the code was removed for v16 so when you pull in the npm module you get the version 15.6.2...

pesterhazy11:10:34

so you need to go back to an earlier version in the repo to find the source

dominicm11:10:57

That makes sense. How annoying.

lmergen11:10:26

what are people using for a private maven repository nowadays ? i cannot use the s3-wagon, but i like the simplicity of that solution. i'm looking for something that i can host myself, authentication / security is not required since it's all shielded in a private network

lmergen12:10:48

i saw artifactory, but it's horribly expensive and way too much for my situation

lmergen12:10:04

ah, wait, i just noticed that lein also has an ssh/scp wagon... :thinking_face: that looks like something i can use

pesterhazy12:10:04

@lmergen there's https://jitpack.io/ and I believe @danielcompton is working on a solution as well

lmergen12:10:34

that's awesome

pesterhazy12:10:06

I'm working on a simplistic dependency manager that may or may not help here: https://github.com/pesterhazy/moth (note: it's still very early stage)

pesterhazy12:10:49

it's not Clojure-specific, but instead a general way to download private dependencies to a folder of your project directory

lmergen12:10:54

where exactly does it fit within the bigger ecosystem ? it can be used as a lein wagon ?

pesterhazy12:10:16

I haven't explored how it would work with lein/boot/maven...

lmergen12:10:29

okay, so it's a replacement for maven ?

pesterhazy12:10:34

all it does it to take care of the dependency management/downloading part

pesterhazy12:10:55

not really competing with maven et al - it's not a build system

lmergen12:10:15

yeah i see

pesterhazy12:10:23

so if you can get lein to add a jar from a local directory to the classpath, that should work

lmergen12:10:37

cool, it's an interesting project

lmergen12:10:58

you just received your first star 😉

lmergen12:10:00

i'll follow it

pesterhazy12:10:04

hehe thanks 🙂

pesterhazy12:10:35

I know that private repos are a pain point, with maven as well as with other package managers

lmergen12:10:46

it's such a pain

pesterhazy12:10:52

especially in smaller teams where you don't have a company nexus/artifectory/...

lmergen12:10:03

they're horribly expensive

lmergen12:10:07

and complex

pesterhazy12:10:20

yeah they do way too much

lmergen12:10:21

i just want to fire up a http server that understands GET, HEAD and PUT and call it a day

pesterhazy12:10:30

exactly! that's the idea behind moth

lmergen12:10:53

that's also interesting

jjttjj18:10:33

not really sure where to ask this but i'm thinking about keeping all my application state in normal clojure atoms, and adding watchers to them that periodically saves the data somewhere durably. Is this something anyone knows of as having been done before or is there a term for this i'm missing? It's almost like a reverse cache

jjttjj21:10:11

Thanks for the reply! I was actually aware of most these, but these provide durability up front, what I'm looking for is the speed of a normal atom for all operations but that will eventually save to some storage such as one of these)

danielcompton20:10:11

@lmergen yep I'm working on https://www.deps.co, a private hosted Maven repository service

Drew Verlee23:10:55

Does anyone know if a way to filter hacker news and/or Reddit by sentiment analysis? I know it sounds absurd but I want to filter out the drama.

seancorfield04:10:55

That's easy: just stop reading Hacker News 🙂

seancorfield04:10:37

(and stop reading Reddit too! 🙂 )

seancorfield04:10:13

Seriously, I don't know why those communities are so high-drama... I never bother with them unless someone links to a specific interesting thread.

dominicm06:10:26

http://lobste.rs is a cool site that is HN-like at a fraction of the drama. Very high quality imo. Let me know if you want an invite