Fork me on GitHub
#clojure-uk
<
2018-12-27
>
alexlynham09:12:03

Morning morning

otfrom12:12:09

org-mode 4 life. πŸ˜‰

dominicm12:12:18

If I use org mode, do I have to put everything under headers?

dominicm12:12:27

What do you use on Android?

dominicm13:12:10

I have a lot of org-mode questions πŸ˜„

dominicm13:12:23

Well, more, .org file questions.

otfrom14:12:11

saying I use orgzly on android is stretching it a bit (I don't sync things up)

otfrom14:12:17

I bet @jr0cket does something

dominicm14:12:56

I'm trying Orgzly. My only meh is that it's hiding the text at the top of the file. But that might be normal for org files.

dominicm14:12:16

Oh, and also that Orgzly doesn't work with sub-folders. I had intended to use org as a wiki. So I would have files like "pokemon/squirtle.org" and "work/death_star.org", things like that.

otfrom16:12:00

I've started using C-u C-x C-e in rich comment blocks to start to build up unit tests. I'm reasonably happy with it but feel I could build something with some more sugar potentially (tho it is a good workflow for now)

folcon18:12:45

This is insert evaluation at point?

otfrom12:12:44

@U0JUM502E yeah, C-x C-e is eval-last-sexp and the C-u modifier inserts it. IIRC it works in most lisp-ish modes the way you'd expect.

4
otfrom16:12:11

any other repl driven development stories ? ^^

seancorfield16:12:15

@otfrom I do something similar. I've been using comment forms for some time, usually below functions to "evolve" the code for the function as I'm developing it and sometimes those turn into things that are worth putting into formal "unit tests". I felt validated when I heard Stu refer them as Rich Comment Forms (because that's what Rich does).

otfrom16:12:45

I was doing that too and thought I was "cheating" until I heard that Rich and Stu do it. I think the only problem I have is that b/c I'm usually parsing some clients data I tend to leak too much client info into the things I'm writing (which can be a problem if they are FLOSS πŸ˜‰ )

otfrom16:12:33

putting C-u in front of the C-x C-e to capture what I want for testing I've only started doing, well, today

seancorfield16:12:41

Write a spec and generate random data for it? πŸ™‚

otfrom16:12:57

@seancorfield I should do. πŸ™‚

seancorfield16:12:21

What does C-u C-x C-e do different to just C-x C-e? (it's been years since I used Emacs now)

otfrom16:12:23

I think we've talked about this before though, and it is just a pain to write the generators when creating strings that parse to int/double/date/etc

otfrom16:12:50

putting the C-u means that it ends up in the buffer you are editing rather than in the minibuffer echo

seancorfield16:12:02

@otfrom Ah, yeah, we have our own set of generators for that, built via macros from predicates and stringify functions.

otfrom16:12:04

so, just easier to copy and paste

otfrom16:12:28

I remember talking to you about those generators aaaaaaages ago

otfrom16:12:55

I'd still love to find a library that does nice string -> type conversions. It is getting dull re-writing them all the time.

seancorfield16:12:25

Hmm, "evaluate into the buffer". I hadn't thought of that as a key-bound workflow. Useful. I should propose it as an addition to Chlorine πŸ™‚

seancorfield16:12:59

We should open source some of our string -> type conforming specs and generators I suppose.

seancorfield16:12:19

I finally created a GitHub organization for work so we can publish stuff more easily!

otfrom16:12:20

or we should do ours. If you get there first I'd be happy to contibute.

seancorfield16:12:07

Once we have a few more things up there, we'll probably publicize it https://github.com/worldsingles -- the commons repo has our condp-> and similar macros.

practicalli-johnny23:12:23

@dominicm @otfrom Obviously I am using Spacemacs to write most of the content in .org files, I am using Github to share my orgfiles these days as they render pretty well (will be looking at tweaking some of the css GitHub uses - would be cool if the headings folded like in Emacs). I use orgly on Android for taking notes when I don’t want to break out the laptop. I just sync those notes with Dropbox and then add them to Github when back on the laptop.