Fork me on GitHub
#clojure-uk
<
2016-08-23
>
maleghast02:08:12

@agile_geek @seancorfield @mccraigmccraig I continue to be very glad that I looked at Scala, thought “that’s neither fish nor flesh” and decided to go with Clojure as my intro to Functional. I am still struggling to get Clojure into my working life - people want me to do “other things” and I have trouble finding anyone remotely interested in me as a Clojure developer 😞 - but I am always going to write Clojure code. Clojure is the single most rewarding programming environment that I have ever used.

seancorfield02:08:14

Yes, learning Scala is certainly a valuable exercise. It’s an interesting approach to that particular space (i.e., what might a "better Java" do to help folks move to FP gradually — while still appealing to "enterprise" shops).

seancorfield02:08:54

I get the impression Odersky has learned a lot from Scala out in the wild — and the Dotty work on a next gen type system seems like progress to me.

seancorfield02:08:11

(although I don’t track the Scala world very closely these days)

seancorfield02:08:55

My "Intro to Functional" happened in the early 80’s — I’m very happy to have a viable JVM language for FP in the "real world" these days...

bigkahuna06:08:11

Has anyone used Javaslang or AOL Cyclops? These two complementary libraries bring monadic approaches into Java. You get some of the USPs of Scala without some of Scala's baggage. I also like that Javaslang replicates Scala collections. It's been heavily influenced by Scala in that respect. I like those libraries as I can still use mature Java tools whilst still getting to use Scala features I like without having to use Scala. Of course if I could use Clojure in my day job that would be a different story all together.

agile_geek06:08:06

@maleghast I suffer the same issues with using Clojure in my professional life. I'm working on a plan to try and develop a client who will let me develop something under my terms at the moment but timing seems to be conspiring against me.

maleghast06:08:27

@agile_geek - I genuinely wish you luck with that; I have long-since believed that I am only going to fully transition to Clojure full-time by persuading a client (of which I currently have exactly none, as I am in a full-time job) to let me solve their problem(s) with Clojure.

maleghast06:08:53

@agile_geek - Either that or start my own business and build the tech on the Clj / Cljs stack 😉

agile_geek07:08:08

@maleghast I'm hoping the first enables me to do the second.

maleghast07:08:31

*fingers crossed* for you @agile_geek 🙂

agile_geek07:08:20

I have put in a proposal for some consultancy that could lead to this result but they're unlikely to be able to start it till October/November so I'm not sure I can be out of contract that long.

maleghast07:08:20

Oh man, that’s tough… Are you able to get on a plane and live cheap in the Greek Islands for 8 weeks or something?

maleghast07:08:30

(I have a friend out here who is considering going to Bali for 6 weeks to wait for a job to start)

agile_geek07:08:31

I have 3 adults to support so not an option!

jonpither08:08:54

I might be allergic to beer, makes me tired the next day

thomas08:08:37

@jonpither maybe just the alcohol?

korny08:08:03

@bigkahuna javaslang and pals look nice - thanks!

korny08:08:34

Which raises one of my problems with Java - it’s such a vast “community” (if you can call it that) that better ways of working often fall through the cracks. If something neat shows up in clojure land, I can hear about it fairly quickly. And I even get a reasonable bit of buzz about new things in JavaScript land. But Java projects like this get lost in the noise of “hey wow, look what Spring is doing now” 🙂

glenjamin08:08:23

otfrom: somewhat late, but OSX has /etc/paths.d the contents of any files in there get added to your path

korny08:08:17

@glenjamin is that dynamic or when you load a new shell?

glenjamin08:08:29

when you load a new shell

thomas08:08:52

@korny as you say…. one if the things I like about the Clojure community is the fact that is quite small and you can know most things and keep up to date about what is happening.

korny08:08:48

Of course, the ruby community was like that once 🙂

korny08:08:33

And I remember a ranty talk from an old smalltalker, about how the Smalltalk community failed because it stayed too small and didn’t play nicely with business concerns...

thomas09:08:03

I have this theory that the industry is not good at picking up things from academia (and academia not good at promoting its knowledge) and that is how we ended up with this disconnect between the two.

thomas09:08:50

and that the industry is driven by practical limitations that the hardware had for long time

otfrom09:08:16

thomas: I've had some experience that academia is quite bad at picking things up from industry too and are very bad at industry collaboration (esp w/SMEs)

rickmoynihan09:08:18

thomas: That's certainly true - but I think it's deeper than that... academia often has a lack of understanding around marketing; in particular the role of marketing around actually defining a product/solution/problem... I think a lot of this is because there's too big a disconnect between academia and industry. Obviously purely theoretical research can be worthwhile too - but often I get the sense that some academics are frustrated that their research isn't adopted by industry... and despite their claims I think it's often not because of promotion; it's because they don't understand the constraints around acceptable solutions. For the record I have a massive respect for a huge amount of research - and industry is certainly poor at picking that up too... but in those cases that's a business opportunity 🙂

rickmoynihan09:08:24

universities also seem to incentivise papers more than commercialisation... and having been part of a university startup (many years back) I have experienced (second hand) how torturous IP negotiation can become

rickmoynihan09:08:58

so I think that's another reason people choose not to pursue commercial angles

rickmoynihan09:08:12

otfrom agreed. It's a real shame, as some of the most rewarding learning experiences of my life have come from working with academics in a a commercial setting. From my perspective there are dozens of hard commercial problems that I'd love to work with a gifted academic on.

jonpither09:08:16

was wondering if anyone has some reading on the life-cycle of a dev team. I.e. if a team doesn't refresh/rotate then it gets stale - some thoughts around this?

quentin09:08:58

interesting perspective jonpither. I’ve experienced the opposite side dof it… team refreshing too quickly

jonpither09:08:45

yeah. I've recently seen a team arguably suffering from it's own success - people become entrenched & comfortable and it becomes difficult to get rotation happening, to discuss/approach large scale refactorings. If it ain't broke...

jonpither09:08:14

problem is that if you don't rotate, over time attrition will eat into a team and the codebase becomes old-fashioned, difficult to wrestle with

jonpither09:08:46

a software team is a bit like a sports team - it can't stand still, needs re-investment and new energy or else is starts to fail. in a sports team the process is a more rapid and more obvious...

quentin09:08:11

interesting

jonpither09:08:32

those are my thoughts, but I'd welcome some reading / higher authority 🙂

quentin09:08:57

of course, but the intuition makes sense

jonpither09:08:10

I've seen quite an extreme example recently, where only ~3 devs left understand a massive system, but they are so comfortable and still productive, and the project is considered to be very successful, just hard to make a case for change

korny09:08:33

Hmm - I have read some good books on teams, but don’t remember anything particular on this. I’ve definitely seen both extremes - teams that got stale, and teams that rotated too much...

korny09:08:44

Understanding massive systems is tricky - I’ve had projects where everything got touched regularly, so even new people got exposed to all parts; and projects where whole modules became legacy because no-one had to change them, so no-one did, and all the people who knew them well rotated off.

jonpither09:08:36

"change for changes sake" sounds like a bad thing, but actually it's wise just to continually rewrite / touch code. Few businesses would expect this recommendation tho... they probably like 'if it aint broke'

otfrom10:08:18

I think this is part of what microservices is aiming at: "don't refactor, throw away and rewrite b/c it is that small"

korny10:08:56

I’ve heard arguments both ways (on changing code) - I had a discussion with Adam Tornhill (the code-maat guy) who felt that commonly changing code showed risk areas and rarely changing code showed stabiliity; I tend to feel the opposite, commonly changing code is well understood, rarely changing code is quite possibly technical debt

otfrom10:08:04

korny: the academic literature points to areas that change a lot as having the highest bugs, but also suggests it changes a lot b/c it is a difficult thing (and many of the changes are bug fixes)

otfrom10:08:21

recency matters too, your bugs are mostly likely to be in the most recently changed thing

korny10:08:49

That’s what Adam says - my problems is that most of the academic literature i’ve dug into, was based on typical industry practices, i.e. untested bulk code written in slave pits

otfrom10:08:45

korny: well, that does cover most code. ;-)

jonpither10:08:18

bit of a plug, but I wrote this after being inspired by software theory 'https://juxt.pro/blog/posts/after-the-honeymoon.html'

jonpither10:08:45

I like the idea that software is dead when there is no one with the underlying theory in their heads

otfrom10:08:05

other things to keep in mind: code maintenance effort scales with lines regardless of language (so choose a concise language), and the only thing proven to increase code quality is automated testing (can't remember if it was tdd or just testing)

thomas10:08:57

@otfrom do you think that is true (less lines of code better) for write only languages like APL?

thomas10:08:07

I suspect there might be an optimum

otfrom10:08:31

thomas: I don't think there are any good studies on that ;-)

otfrom10:08:13

mind you, all the studies on this say "our sample size is small, our sample group is not representative, our experiment was unnatural"

jonpither10:08:22

I think a big win for Clojure is that code-bases considered legacy are usually salvageable owing to their size

jonpither10:08:57

you can't resurrect a 1m LOC Java codebase, but you could probably cope with a ~25 LOC Clj one that is equivalent

jonpither10:08:56

I'd also say, the more tests, the more spec, more documentation, can go over a certain level that makes the resurrection more difficult, not less

thomas10:08:24

@jonpither I assume you mean 25kloc clj code base?

otfrom10:08:12

ah, this is what I was looking for http://neverworkintheory.org/

thomas10:08:02

could it be that the clj code base would be easier to resurrect because the architecture would be easier to reverse engineer?

thomas10:08:13

(speculating out loud here)

thomas10:08:43

1m loc of Java code… and you’ll have a hard time figuring out where to start even

glenjamin10:08:43

Dan North’s been talking about the idea of a “Software Half-life” recently

otfrom10:08:02

that has empirical software engineering and cs papers to say what has been shown to actually work

jonpither10:08:13

@thomas hopefully. I think you can be really crude and just say less LOC = more maintainable

korny10:08:04

I’ve seen million line Java codebases that could probably be replaced with 25 lines of clojure...

korny10:08:39

Ah - I had the concept of “Software half-life” in my head, couldn’t remember where from - I’m betting it’s Dan

korny10:08:51

Yeah - I have that bookmarked, I think it’s been at 7% complete for a long time...

quentin10:08:42

he needs to write a book called “writing a book, faster” first

korny10:08:15

re:LOC - I’ve been playing with code quality visualisation tools, and it’s quite nice to just visualise the code with size of files shown by lines of code, and type of file by colour. The minute you see a giant blob of 20,000 lines of SQL pop up, you know you’ve found a problem.

quentin10:08:42

or a db dump

thomas10:08:11

@korny is that when you know you have to run?

jonpither10:08:32

@korny what's your viz tool of choice?

korny10:08:52

I was using D3 nested treemaps

korny10:08:20

The 20k lines of SQL was their migration script - auto-generated from a diffing tool that compared the “old” and “new” dev databases.

korny10:08:16

I’m actually rolling my own viz tooling - it’s stalled a bit right now. The goal was to combine simple tools like cloc, code-maat outputs, and other things into an interactive D3 visualisation

otfrom10:08:49

korny: have you seen the stuff from Karsten at http://thi.ng ?

korny10:08:21

Yeah, I looked at that a while back - haven’t looked lately. Interesting stuff there, though the org-mode based literate programming model, while clever, was a bit of a barrier to me

rickmoynihan11:08:23

@jonpither: nice article... I once heard a myth (don't know if it's true) - that NASA has forgotten how they got to the moon, as basically everyone who worked on Apollo is either retired or dead... Even though they've doubtless written that knowledge down; the sheer quantity of it means nobody (or no team) knows how to do it anymore.... I don't doubt that they could put people back on the moon again; but they'd almost certainly be reinventing things (not least because of modern technology advances). I don't know the solution; other than perhaps to maintain a team of people practicing this stuff all the time. You need to keep these things alive in people and culture not just in books.

rickmoynihan11:08:28

budgets that crash to nothing and then spike up again must really damage this sort of thing

malcolmsparks11:08:58

I think it's likely that most systems spend most of their time with 0 devs tending to them. In DB we had 9000 systems in one dept, far more than the headcount. There are a few simple techniques that I believe help a system survive without constant tendering. Keeping devs around tinkering is probably a) wasteful and b) mundane for the devs. A lot of my http advocacy is centered around the concept of longevity whereas most people focus on other things, like scaleability and 'agility'

malcolmsparks11:08:31

But I do believe that as the industry matures, it will 'slow down'. There is plenty of evidence for that outside our bubble of excitement called clojure. So 'longevity' will gain importance as the fraction of a system's life where it is actively developed decreases.

rickmoynihan12:08:05

+1 malcolmsparks - agree tinkering and doing mundane things isn't a great idea... so long as there are practitioners and a culture you can buy into it as and when you need to. Naur's theory building stuff + context from experienced practitioners seems like one antidote

otfrom13:08:13

I feel with the library driven development of the jvm ecosystem and all the things over the years in lisp and unix that we've already become programmer archaeologists

otfrom13:08:45

and that we should be practicing those skills too, whereas they are generally looked down upon atm

kevin4213:08:10

Haha but no thanks for the hipster side of development

kevin4213:08:36

I’ve done like 7-8 years of python and feel the same, on the old side

glenjamin14:08:14

I kinda miss program archeology

glenjamin14:08:22

last few years i’ve ended up on greenfield stuff

glenjamin14:08:02

Greenfield stuff that mostly hasn’t shipped, despite my best efforts

glenjamin14:08:29

although this current one looks like it’ll ship into private beta soonish

thomas14:08:09

yes… that can be a problem on greenfield I guess… the first project I worked on took 4 years before it shipped.

korny14:08:26

I did a couple of “tech assessments” - more like forensic program archeology - looking into the mass graves to work out who should be tried for crimes against Knuth. Lots of fun.

glenjamin14:08:51

eugh, I have a thing about Knuth

glenjamin14:08:22

ever since I saw an interview with him where he talked about TeX. And said how great it was that it was done. And had no tests, and never changed anymore

thomas14:08:41

he wrote all the code for it… then went on a 2 week trip… and when he came back he compiled it for the first time… and started fixing any typos.

thomas14:08:13

there is no way I can do that.

dominicm14:08:51

@glenjamin: I don't understand your complaint about his assertions

glenjamin14:08:34

As I understand it, TeX is a mess, and plenty of people do want to change/improve/enhance/develop it. But they can’t - because it has no tests.

korny14:08:53

Yeah - better not look too closely at some of the old-school coding heroes sometimes 🙂 At least he isn’t an axe-murderer

dominicm14:08:01

I'm still not sure I understand. Are tests a precursor to development. Are they required entirely up-front?

glenjamin14:08:16

Tests are required to make changes to complex programs with confidence

korny14:08:38

Especially if you aren’t the original author of those programs

glenjamin14:08:49

He wrote some great software, but decided he didn't need tests because he understood it well when he wrote it. Now it’s calcified

korny14:08:39

I’m so glad none of my early projects have the longevity of TeX. I can’t imagine going back to the pre-testing world.

minimal14:08:53

Wonder what tests would look like for Tex output, pretty tricky I imagine

dominicm14:08:12

Could TeX be tested now by visual regression tests?

glenjamin14:08:43

Thinking about it now, it wasn’t even his decision to not write any tests that annoyed me, it was that he was still proud of it in retrospect

minimal14:08:11

Yep, annoying

minimal14:08:45

Maybe quad will be a good replacement one day. no tests yet though https://github.com/mbutterick/quad

glenjamin14:08:42

i have no idea how you even approach testing typesetting

mccraigmccraig15:08:17

@glenjamin: printing often involves stochastic screening these days, which might throw a spanner in the works of that type of test...

thomas15:08:24

from Wikipedia: In particular, since Knuth highly values the reproducibility of the output of all versions of TeX, any changed version must not be called TeX, or anything confusingly similar. To enforce this rule, any implementation of the system must pass a test suite called the TRIP test[44]

thomas15:08:54

<ftp://tug.ctan.org/pub/tex-archive/systems/knuth/dist/tex/trip.tex>

thomas15:08:19

more like a functional test, not a unit test

minimal15:08:06

% This is a diabolical test file for TeX82. Watch your step.

glenjamin15:08:35

oh, that’s interesting (and good)

thomas15:08:13

that file us surprisingly small acual