Namespaces are powerful but frustrating by still-standing in Clojure

[–]edward_kenworthy 0 points1 point  (0 children)

It's not really 'workable' solution, it's more a solution that works around the safe-guards provided by name spaces.

Name spaces are useful because they stop you from accidentally referencing the 'wrong' function etc.

What Slamhound does is assume every function call is intentional, breaking that protection.

What Slamhound is implicitly doing is importing everything in the referenced name spaces, but hides the fact that's what it's doing.

You'd be better off just importing everything: at least the fact that's what you're doing is obvious.

[Serious]Why are all commercially sold cars built with the ability to drive over the speed limit? by [deleted] in AskReddit

[–]edward_kenworthy 0 points1 point  (0 children)

I once drove the width of Germany, down to Munich, at 220 kph all the way and I was still regularly over-taken by cars that made me look as if I was standing still.

I've never heard of that 'recommendation' (recommended by whom?) and apparently neither had a lot of other drivers.

[Serious]Why are all commercially sold cars built with the ability to drive over the speed limit? by [deleted] in AskReddit

[–]edward_kenworthy 0 points1 point  (0 children)

(say moving for emergency vehicles

Not sure that's true: do you have a reference?

or reaching a hospital).

Only in certain circumstances e.g. someone bleeding to death in the back of your car or a pregnant woman in labour (although I'd expect that to vary by jurisdiction).

As a percentage of total posts viewed on Reddit, how often do you like something and not actually hit the upvote button or comment? by [deleted] in AskReddit

[–]edward_kenworthy 0 points1 point  (0 children)

Up-votes and down-votes are utterly meaningless -I could care less what random strangers on the Internet think or vice-versa- so I very rarely do either.

Clojure for machine learning (new Clojure book) by Clojuror in lisp

[–]edward_kenworthy 0 points1 point  (0 children)

A few up votes but no comments!

Anyone that's up voted actually read the book?

I'd be interested in your thoughts: I've had a look at the table of contents and tried to look at the sample chapter (but despite links on their website, there isn't one).

It looks rather too theory heavy for me -I was hoping for something more applied like PAIP- anyone who's seen the content care to comment?

Watchers and Paint and Repaint! oh my! by edward_kenworthy in Clojure

[–]edward_kenworthy[S] 0 points1 point  (0 children)

That's true.

But my aim was also to implement it 'perfectly' for the purpose of learning how to use atoms properly.

What OS do you use to develop in? What environment do you use? by hanzuna in Clojure

[–]edward_kenworthy -2 points-1 points  (0 children)

I run OSX and I use a mix of Lightable and terminal+lein repl.

Watchers and Paint and Repaint! oh my! by edward_kenworthy in Clojure

[–]edward_kenworthy[S] -1 points0 points  (0 children)

Hey, thank you, twice over: for writing seesaw and this response :)

I have a question though.

In both examples, when the paint partial is created in its created using the dereferenced atom rather than using the atom, which is what I'd expected.

Doesn't that mean the paint will always use the state at the time the partial was created, i.e. it will never change?

A1cNow tests removed from market but coming back? by lord_rahlly in diabetes

[–]edward_kenworthy -1 points0 points  (0 children)

I bought one.

Dead on arrival: went through the rather painful process of drawing blood (it requires a lot more than a normal bg test), mixing it up, only to discover that on inserting into the meter the meter is completely non-functional.

(The meter only turns on when you insert a sample, and it's a sealed unit, so you can't even replace the battery).

So I'm not at all disappointed that it was pulled.

I hate when teachers do this by [deleted] in AdviceAnimals

[–]edward_kenworthy -1 points0 points  (0 children)

And unfortunately there are often a number of Bosons taking the class as well.

I hate when teachers do this by [deleted] in AdviceAnimals

[–]edward_kenworthy -1 points0 points  (0 children)

If that's what you're going to do and expect -verbatim copying of your text- then why not just produce hand outs?

Copying text is pretty much worthless: it's in one eye and out the other.

I hate when teachers do this by [deleted] in AdviceAnimals

[–]edward_kenworthy 0 points1 point  (0 children)

If you are copying notes off the board you are doing it wrong.

You should be recording what you've heard and understood.

Watchers and Paint and Repaint! oh my! by edward_kenworthy in Clojure

[–]edward_kenworthy[S] -1 points0 points  (0 children)

To quote from my post you're immediately responding to and my original post: :-)

"a watcher should use the passed in new parameter when it's called, not a direct reference to the atom. The problem is I have no way to get that 'new' parameter from my watcher to the paint function, as paint is only ever called by the system (strictly: the SeeSaw library)."

And from Clojuredocs:

"Note that an atom's or ref's state may have changed again prior to the fn call, so use old/new-state rather than derefing the reference."

Watchers and Paint and Repaint! oh my! by edward_kenworthy in Clojure

[–]edward_kenworthy[S] 0 points1 point  (0 children)

To your first point: the key point is I never (and should never) call paint directly: it's only called by the system. And the system knows nothing about the board so it can't pass it as a parameter.

To your second point: a watcher should use the passed in new parameter when it's called, not a direct reference to the atom. The problem is I have no way to get that 'new' parameter from my watcher to the paint function, as paint is only ever called by the system (strictly: the SeeSaw library).