jdougan

Joined 17 years ago

Karma
1,389
Submissions
578
Member since
Dec 5
Contact at 'ibvq.enaqbz' rot13 , ' at ' , 'tznvy.pbz' rot13

https://hnbadges.netlify.app/?user=jdougan

View on Hacker News

Recent submissions

Comment · 25 days ago
> most supervisors try to discourage students from writing in this way because there is a delicate art to it that you are unlikely to be able to meet at that career stage.

And it seems to me they will continue to to unlikely to meet it if they don't get any practice at it. Which loops back to being another pedagogical problem.

Comment · 1 month ago
Smalltalk has #reject: which does that. You could, of course, just wrap a not around the test in the closure, but sometimes reject with a well-named predicate is easier to read.

bsnpApproved := tvShows reject: [ :eachShow | eachShow hasNaughtyContent ].

Comment · 1 month ago
Ruby inject appears to be derived from Smalltalk #inject:into:

#(1 2 3 4 5 6 7) inject: 10 into: [ :sum :each | sum + each squared ].

or from your example:

someHash := myArray inject: (Dictionary new) into: [ :accumulator :item | ... ].

The way I remember the order is it reflects the assignment you'd do is a while loop, sum := sum + each.

Comment · 1 month ago
The EMP effect depends on there being atmosphere to generate electrical fields from the bomb gamma flux. Being close enough and line of sight from the atmosphere can be sufficient to generate the effect in the nearby atmosphere. 400km is apparently the optimum height for coverage but not strength. Too far and inverse-square ensures the flux isn't sufficient. So just detonating a bomb "in space" may not do anything depending on the direct path distance to the satellites in question (the bomb gamma flux etc. of course poses its own threat). Look it up, the physics are interesting.
Comment · 1 month ago
I'd love to see them go back all the way to the Apple I eventually.
Comment · 2 months ago
So, how can we get this unwound, or at least properly compensated?
Comment · 3 months ago
Smalltalk does something similar. Maybe that syntax would be better for him?
Comment · 3 months ago
And these extensions are for what use cases?
Comment · 4 months ago
I wonder if this could be practical for controlled environment devices like game consoles.
Comment · 5 months ago
I'm curious as to how time efficient that actually was.
Comment · 5 months ago
Humber encoding?
Comment · 5 months ago
Reminds me of the Xanadu Humber encoding.
Comment · 5 months ago
I was always partial to the “make Wednesday a second weekend” plan. No more hump day and 2 “Fridays”. Of course that is also 2 “Mondays”
Comment · 5 months ago
alternate futures where the 33bit versions of the i960 became the processor family of choice.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton