Fork me on GitHub
#hoplon
<
2016-11-13
>
fiddlerwoaroof03:11:25

How do I include definitions from another file in my .cljs.hl files?

fiddlerwoaroof03:11:25

I created a project with boot-new and I'm trying to include a file from the namespace my-project.library. I created the directory src/my_project and the file library.clj, but it's not being picked up by boot dev

fiddlerwoaroof03:11:21

Nevermind, figured it out.

mynomoto11:11:51

@fiddlerwoaroof can you share what was the problem? I'm writing a tutorial for beginners and would be nice if the problem you had was avoidable.

jamieorc15:11:56

I mind. It's boiler-plate noise as well as inconvenient for a system that will have a lot of html-as-lisp. It's inelegant and undesirable to have to prefix all the hoplon html element fns in a hoplon file. At that point, might as well not have a hoplon file.

mynomoto16:11:15

I actually like h/div more than the implicit refer that goes on .hl files. For beginners arriving on Hoplon is hard to know what comes from where and that would not be a problem without doing refer all from hoplon and javelin namespaces. The only reason that I use .hl files on my projects is for prerendered html.

micha16:11:06

@mynomoto did you try the ^{:hoplon/page "index.html"} namespace metadata approach?

mynomoto16:11:34

@micha I haven't, is that official in the sense that's not experimental and if it works it will be kept?

micha16:11:27

i think we should consider it experimental for now, but we can't know if we like it unless people try it out

micha16:11:49

these are important issues though that would be good to get consensus on

micha16:11:21

it would be good to develop an API that works well for everyone

micha16:11:35

without adding extra features that nobody wants

micha16:11:03

like you mentioned a number of things that you thought could be moved out of hoplon

mynomoto16:11:18

Is there an example of the metadata for html being used somewhere?

mynomoto16:11:54

I think everything that could be moved out should be moved out 😉.

micha16:11:58

i'm trying to get this terminal slack client working, cause the slack webapp is killing my CPU relentlessly

micha16:11:20

ridiculous that two slack webpages should be using one full CPU each

micha16:11:48

they should be using hoplon

mynomoto16:11:07

Slack is ridiculous in more than cpu usage. hoplon FTW!

mynomoto16:11:30

But I don't have that cpu problem here.

micha16:11:34

i wish the community had moved to something like telegram

micha16:11:51

some open, secure platform

mynomoto16:11:10

For most of what we do here discourse seems a better place for keeping records of solutions.

micha16:11:24

it gets overwhelming though

micha16:11:40

especially the overhead of keeping track of async communications

mynomoto16:11:55

I like gitter better than slack but if everybody is on slack there is no real option.

micha16:11:12

i'd like an option that isn't owned by any company

mynomoto16:11:13

At least we have separated contexts there.

micha16:11:16

something federated

mynomoto16:11:57

Unfortunately there is no money on that. So we only can pick which megacorp to use.

micha16:11:29

IRC is almost good enough

micha16:11:50

but support for code snippets and images is i think necessary

micha16:11:01

pastebin isn't good enough

micha16:11:19

rich text, basically

mynomoto16:11:00

We had irc but there is way more people here than ever on irc. And I like to be able to disconnect and not miss what happened.

micha16:11:21

i still pay for irccloud, but i don't check it often

micha16:11:46

i gues that's where the open solutions fall down

micha16:11:55

the storage

micha16:11:16

i wonder what could be done with amazon dev pay

mynomoto16:11:58

I think ux also is a problem. Slack may use lots of cpu but people enjoy using it, which is more than I heard people saying about irc clients.

micha16:11:31

i actually really do not enjoy the slack ui at all

micha16:11:07

like they are constantly doing fancy js bullshit that breaks my browser plugins

micha16:11:18

like no, i do not want to make a snippet, i just want to paste a link

mynomoto16:11:02

I don't like slack at all but I think it's better than irc. The way I use it the biggest quirk is that message has a limit and they don't create a snippet automatically when it's to big.

micha16:11:28

and the textarea is not monospace

micha16:11:43

and they somehow hack it so you can't easily make it so with a bookmarklet

mynomoto18:11:33

If people are not responding on discourse maybe we should shut it down? Latest topics have no answers...

micha18:11:06

hm i should do it once a week maybe

mynomoto18:11:57

I like the idea of having less places with more content and better responsiveness. We probably should stop sending people to irc from boot and hoplon sites.

dm318:11:44

Rust is using discourse forum pretty successfully as the main channel of communication

dm318:11:28

I think Slack works fine for the Hoplon-sized community. The common topics end up as Github Wiki pages

micha18:11:32

i like that slack is ephemeral

micha18:11:42

because i can answer questions when i'm able

micha18:11:56

without stressing about the unanswered ones that will live forever in discourse

dm318:11:04

that's also because there are ~5-10 people total

micha18:11:07

or spending time making an answer that will not be read

dm318:11:38

you also end up answering the same question a few times

dm318:11:40

🙂

dm318:11:45

which is not inherently a bad thing

micha18:11:58

it's difficult for me to write good technical documentation

micha18:11:08

and that's kind of what you need to do in discourse because of google etc

micha18:11:19

it's a lot of effort and stress

micha18:11:39

in slack you can have a more fluid discussion

micha18:11:09

also the fact that it might take a day for the forum message, response, message cycle

mynomoto18:11:31

@dm3 I like the idea of having something permanent but if people don't use I would rather that it didn't exist.

dm318:11:45

there should be an async channel

dm318:11:25

maybe closing discourse and accepting questions in Github issues could work

mynomoto18:11:35

We are not that much reposive on github either 😉

mynomoto18:11:06

But I think that having places where questions goes to die is bad.

dm318:11:12

yeah, that would leave a single "window"

micha18:11:20

discourse seems like the best solution there

dm318:11:20

to pass async questions throuhg

micha18:11:46

i just need to get on there more 🙂

dm318:11:51

do you need an account there?

dm318:11:01

I see a yahoo-login option

micha18:11:31

i can login and stuff, i am paying for it currently

mynomoto18:11:39

@dm3 to post you need, only to see what's there no.

micha18:11:45

i can add anyone to the admins or whatever too if you like

micha18:11:14

oh lol, i misunderstood your question @dm3

dm318:11:14

no, I was mainly thinking about barrier to ask a question

dm318:11:40

which I think is lower with github as pretty much anyone who'd use Hoplon will have an account there already

mynomoto18:11:08

@dm3 but issues are sort of a bad place for questions doesn't match the flow. Once answered do you close the issue?

dm318:11:28

yeah, I'd think so.

dm318:11:38

the problem currently is that discourse forum is pretty much dead

micha18:11:05

it would be neat if github had a thing where you could promote issues to a FAQ or something

micha18:11:23

what about stack overflow?

micha18:11:35

that's a good format because it can adapt to future changes

micha18:11:46

we have a tag there, or used to anyway

flyboarder18:11:30

@micha stackoverflow now has documentation

flyboarder18:11:12

but the #hoplon tag isnt popular enough i think

micha18:11:13

i like that you can vote up/down

micha18:11:27

and replace out of date answers with new ones

micha18:11:34

not replace, but augment

flyboarder18:11:40

yeah i think it's a bit better than a forum

flyboarder18:11:50

like a living documentation

micha18:11:55

i get stressed reading long threads

micha18:11:08

SO has the discussion page too

micha18:11:20

where you can discuss forum style

micha18:11:28

for a given question

micha18:11:06

the moderation might be useful too if the volume increases

micha18:11:24

like marking things as duplicate, off-topic, etc

micha18:11:37

link to other sections of SO when appropriate

flyboarder19:11:16

SO is also easy to track questions and things

flyboarder19:11:31

cross linking between the wiki and SO would help direct users to find things

flyboarder19:11:59

but currently all SO questions are old so i guess devs are just coming here?

mynomoto19:11:19

It would be nice to have "official" places to ask for help. We should deprecate/close unmaintained ones. Also more people need to participate, I can't be only micha and alan.

mynomoto19:11:56

In the current state SO and here on Slack seems the path of least resistance. The gamification on SO helps to have more people answering questions.

mynomoto20:11:50

I would like beginners having a good first experience when they have doubts. Today it may be amazing with micha answering here or fall in the limbo and getting no answer.

micha20:11:52

i am ok with whichever course we decide to take

micha20:11:00

probably leaning toward moving things to SO maybe

mynomoto20:11:18

I updated the template hardcoding the versions to avoid breaking it without us knowing as the issue alan opened. Also that should probably live under the hoplon org now. https://github.com/tailrecursion/hoplon-template/pull/10

mynomoto23:11:13

Something I have been working on: https://mynomoto.github.io/hoplon-tutorial/ hopefully it will be useful to someone starting.