Fork me on GitHub
#clojure-uk
<
2019-02-25
>
maleghast07:02:14

Hello everyone :-) \o

maleghast07:02:18

(I just realised that o/ looks a bit “Roman Salute, compared to \o )

maleghast07:02:13

I’m sat on a plane that should__ be on Final Approach to Heathrow, but is actually still on stand at Glasgow International. Imagine, if you can, how my mood is...

guy07:02:07

Morning folks!

👋 5
3Jane07:02:21

I’m not saying anything but that looks like a photo that usually precedes a stack of documents about a person lost in Bermuda Triangle or some such

😱 10
3Jane07:02:20

Also o/

👋 10
thomas08:02:57

morning \o

alexlynham09:02:14

morning morning

dominicm09:02:33

(try (slurp "/tmp/404") (catch java.io.FileNotFoundException e (println "re-throwing e") (throw e)) (catch Exception e (println "Handling e"))) this is rather disappointing 😞 I was hoping re-thrown things would continue through the chain

practicalli-john09:02:01

Splashed out on a new 2nd hand Lenovo on eBay... £600 for a computer that is £1500 new, there must be something wrong with it apart from a few scratches (or I just got very lucky). Should know by Wednesday

practicalli-john09:02:15

It does have a French keyboard, but it's the same physical layout as UK and I use my Model01 keyboard all the time. Or I could learn French again this year ;)

maleghast09:02:43

Sounds like a deal to me @jr0cket

alexlynham10:02:00

what specs did you get @jr0cket? Was it a Carbon?

Conor10:02:41

Kudos on your fine choice of keyboard switch, Alps (even Alps clones) are very nice

alexlynham10:02:27

is the model01 alps then?

Conor10:02:20

They are Matias Quiet Clicks AFAIK

practicalli-john10:02:57

@alex.lynham X1 Carbon 6th generation 8gb Ram 512 SSD HD screen (1920x1080) Matt finish

zyxmn15:02:37

is your preference for X1 Carbon due to price ? Lets say if money was no object what would laptop would you buy?

practicalli-john15:02:49

Its not about price, its about build quality, robustness, it has the best low profile keyboard and I like the asthetics and design. If money was no object I would just buy several Lenovo's 🙂 I'd get the new X1 Carbon with 4 cores (8 threads) along with the X1 Extreme with 6 cores (12 threads) and mainly out of curiosity, I would get the Lenovo P1 with 6 core Xeon processor. Actually, I would like the X1 Extreme in the X1 carbon form factor ideally (so if money was no object, I'd pay Lenovo to make me one 🙂

practicalli-john15:02:29

Oh, and ThinkPads have always run Linux perfectly (or perfectly enough that I havent ever noticed any issues)

zyxmn16:02:37

That's a plus mark on Lenovo. I thought the Dell XPS 13 might have been a contender if money was not a criteria. Mainly due to the form factor. I have never used a Lenovo before but I am very curious now

practicalli-john16:02:05

Now that Dell started to put the webcam back where it should be, then its a great laptop. Its amazing that they support Linux so well and ship their laptops with Ubuntu (the only bad thing about Lenovo, athough you only pay for windows if you get the pro version). If you are not fussy about your keyboards, then Dell XPS is a good choice, but for me Lenovo wins every time.

👌 5
alexlynham17:02:15

I’ve tried but not owned the XPS but I’m a total convert to the thinkpad

alexlynham17:02:43

in many ways it’s nicer than the new macbook, the only thing that’s not as good is it’s super expensivo to get the RAM and an equivalent screen

zyxmn18:02:31

Does a 4k screen on a small laptop make a difference?

alexlynham09:02:47

I notice the difference between a retina and a 1080p big time

practicalli-john10:02:35

I have the 2600x1440 and I run all my apps full screen, so resolution is just fine. The second hand laptop I just got has a 1920x1080 display. I will be using this for YouTube broadcasts and demos, so it’s the perfect screen resolution. I dont have a 4K TV yet, so I guess I haven’t acquired a taste for that. I have avoided the 4K screens because they are glossy and therefore very reflective. If there were a Matt finish to a 4K laptop screen, I might consider it, especially if it was an OLED display. The 4K screens do seem to be significantly more expensive and use a little more battery (because you have to turn up brightness to diminish the reflections). I have a curved ultra wide monitor at home which is more than enough for my needs. Still waiting for my matrix adaptor, then I won’t need a screen :)

alexlynham10:02:49

I think that’s basically mine but newer

alexlynham10:02:03

mine was a 6th gen processor but 3rd gen thinkpad carbon

practicalli-john10:02:52

Should keep me going until the 7th Generation X1 Carbon machines are out (July/August 2019). Although I tend not to buy until the price has dropped, so would be around Jan 2020.

alexlynham10:02:35

I think if I was going to go for one of the new ones it’d have to be beefy beyond belief to be future proof (ish)

3Jane11:02:42

Guys, if you were to have a data import/transformation script, and a website, both in the same repo, both written in Clojure, how would you structure it?

guy11:02:38

maybe have the scripts in a separate folder called transformations or migrations. Then just make sure they arn’t bundled with the website? imo it depends on how they are used

3Jane11:02:30

I don’t know yet, it’s my first project in Clojure, I have an xml file with stuff (wiki dump) out of which I need to extract the useful data and dump into somewhere, that will later be presented through the website

3Jane11:02:47

I was going to use either luminus or duct as a guiding format

guy11:02:13

Why does it need to be in the same project btw?

3Jane11:02:23

same repo, ease of sharing

3Jane11:02:40

a self-contained example basically

guy11:02:57

ok then yeah some folder that isnt bundled with it. ESP if ur using wiki data

guy11:02:01

cos that is large

3Jane12:02:15

I mean data itself won’t be in it

3Jane12:02:27

just the script that processes the data.

guy12:02:34

🙇 got ya

guy12:02:00

or just have the file in the root project dir, i dont think its gonna be a big difference if its just an example

3Jane12:02:17

the same way you can run “build” or “test” project, I’d have a separate “build-data” or whatnot. I’m guessing that’ll need lein config somehow?

guy12:02:56

if you want to just run the script by its self you mean?

3Jane12:02:57

(I’ve previously used ant, make, and composer, so this is my mental reference model)

3Jane12:02:12

it won’t need to run all the time, just to generate static data once

guy12:02:32

mmm i wouldnt make it part of the website project personally

3Jane12:02:34

also I want to use it as a demo of “this is how you would write a very simple pipeline”

alexlynham12:02:29

typically for a data transformation if it’s input to the web app I would put it in a ./data directory

alexlynham12:02:50

like, if it’s used to bootstrap a project or db or something

alexlynham12:02:21

if the importer is its own ETL service then I’d make it a separate project in a separate repo, even if it’s only 50 lines and a couple of namespaces

dominicm12:02:55

I'm a bit late to the party @U82DUDVMH but edge was designed to solve this problem!

dominicm12:02:54

it is mono-repo by design, with modules and so on.

dominicm12:02:16

As a developer of edge, I can honestly say edge is the best experience I've had with getting started 🙂

dominicm12:02:40

If you do check it out, any notes on what you think, what you didn't like, etc. are really valuable.

guy13:02:07

can you link the repo @U09LZR36F

3Jane14:02:09

why am I doing this again?

3Jane14:02:58

git rm stuff
git commit -m "JUST GO LOOK AT JUXT REPOS"
😄

3Jane14:02:37

@alex.lynham input for the web app (grab some data from wiki, transform/extract some bits, format, web app uses them in a read-only way). I’m not intending to take it all the way to a final release, just to see how long it takes me to go from “a problem” to “a prototype of a solution”.

dominicm14:02:14

Let me know if you have any questions about edge btw

👍 5
3Jane14:02:16

how would you compare it to duct?

3Jane14:02:25

(maybe it’s apples and oranges, I’m only starting to explore the options)

3Jane14:02:34

(I see they’re both integrant based)

folcon15:02:46

@U82DUDVMH I tend to structure most of my extraction tasks by creating a resources folder and sticking stuff under that. Especially if this project is supposed to be one-off. Then write code under src to do the job :)…

folcon15:02:17

The edge example looks quite weighty? Is there a page that describes what each folder is for?

3Jane15:02:56

Yeah, I’m thinking edge represents what I’d like to achieve in a beta version

dominicm15:02:44

@U82DUDVMH I'd say that they're similar except that edge is more of an assembly of existing things (e.g. integrant, aero, etc.) and duct seems to have it's own config system, etc.

👍 5
dominicm15:02:05

@U0JUM502E which edge example do you mean, sorry? There's a lack of documentation on the internals though, and that's an area of active thought for me. Edge could be a bunch of libraries that you don't touch, but instead it's a repo where you can go modify the internals if they're not flexible enough for you. I'm still figuring out the process for when something leaves the edge repo.

dominicm15:02:30

@U0JUM502E oh, you're probably referring to main, yeah, I really need to sort that out. Don't look at main, it's deprecated 🙂 tutorial.vent is probably a better place to look.

folcon15:02:33

I meant the repo you linked to: https://github.com/juxt/edge

folcon15:02:11

Ah ok :)… Might be a good idea to pop that in the readme ;)…

folcon15:02:26

Good to see the vent folder has some decent docs :)… Not sure why you decided to use a file as a db?

dominicm15:02:49

@U82DUDVMH long-term, Edge is intended to become JUXT's super-power. I want to add edge-specific development tools, and also open source our productionizing code in a slightly more general way from our production releases. e.g. I'm formulating an "edge.aws" which will do things like integrate logging with cloudwatch automatically.

dominicm15:02:11

@U0JUM502E it was for teaching purposes, otherwise I have to spend time teaching people how to run postgres 🙂

folcon15:02:22

Makes sense :)…

dominicm14:02:33

@maleghast has your day improved much?

maleghast14:02:28

My day is going pretty well, thanks 🙂

5
dominicm15:02:42

did you reach your destination?

maleghast16:02:10

Oh indeed, and I have written code that works!

🎉 35
👍 10
maleghast16:02:20

Special Day!