Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kitd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
511.
▲
by
kitd
3y ago
> Paul has to be careful with wording. Ironically, this is the topic of the excellent linked essay on taboos and heresies: http://www.paulgraham.com/say.html
512.
▲
by
kitd
3y ago
This is fine as far as it goes. The problem is that the exception can only report context that it knows about. By contrast, the Go version allows you to include any extra context you want, to make debugging easier. Eg, your error might not
513.
▲
by
kitd
3y ago
Quite apart from the Python discussion, the author captures why I prefer errors as values (a la Go) to exceptions (a la Java), and I have written both styles for many years. > Regardless of the specific approach, returning errors as val
514.
▲
by
kitd
3y ago
> rep-tiles Lol, nice!
515.
▲
by
kitd
3y ago
A specific lock and a specific wall. They don't have the right to require all locks and walls to be built with fundamental flaws so they can be broken with the tap of a hammer.
516.
▲
by
kitd
3y ago
They also stopped paying bonuses for patent work. Not surprising it dropped off thereafter.
517.
▲
by
kitd
3y ago
For a few years, at my office in the UK, they charged 8p for the hot water to put your tea bag in.
518.
▲
by
kitd
3y ago
Channels broadly have footguns around how closed and nil channels are treated I appreciate your concerns but one could say similar things about nil pointers or accessing slices out of range. Anything you use should be handled with care.
519.
▲
by
kitd
3y ago
Southern Spain, in the Dona Ana National Park near Cadiz, was the location decided on by this project: https://www.nbcnews.com/id/wbna42072469
520.
▲
by
kitd
3y ago
English is drifting as we speak, literally. Ha, nice :)
521.
▲
by
kitd
3y ago
Here's Htmx's "Delete a row" example, which I think is what you're after: https://htmx.org/examples/delete-row/ The Examples page in general shows most typical use cases.
522.
▲
by
kitd
3y ago
Question from a total noob: How modular are these segmented mirrors? Ie, if the budget runs to 'only' 39m now, is it possible to upgrade it to 42m later by adding segments to what's already there?
523.
▲
by
kitd
3y ago
Seems ripe for automation in this day & age. 15 per day, pff! I'm sure with the right cloud services and a well-engineered state machine we could get it up to over a 100. Should be just about enough to handle Tory members as electi
524.
▲
by
kitd
3y ago
You can use the `replace` option in the Go mod file to redirect your dependency references elsewhere if you need to.
525.
▲
by
kitd
3y ago
And you don't even need to use XML with Polyglot Maven https://github.com/takari/polyglot-maven
526.
▲
by
kitd
3y ago
It's not the `if err != nil` that's the problem, it's the following `return nil`. As I mention above, return instead the error with some identifying information and context, and you get highly targeted details needed to locat
527.
▲
by
kitd
3y ago
Impressive work. This reminds me of an experimental JVM that was around about 20 years ago from a group called Velare. They could do durable coroutines just like this, but by throwing a particular exception rather than using `yield`. They a
528.
▲
by
kitd
3y ago
I think we're arriving at the same solution, with approximately the same amount of boilerplate if done to same degree of accuracy.
529.
▲
by
kitd
3y ago
The problem (as alluded to above) is that stacktraces give you no context to what went wrong, only where it happened and the (possibly cryptic) underlying error. IMO the real value in proper error handling (ie what makes fixing errors eas
530.
▲
by
kitd
3y ago
Go's boilerplate if err != nil return err, nil becomes something that your eyes just skim over OTOH, if you make sure you do something like if err != nil { return fmt.Errorf("what I was doing when the error happene
531.
▲
by
kitd
3y ago
public interface MyWellDefinedBoundary { ... } ;) Edit: I should say this is what OSGi was good for. Now it's been replaced, its need is greater than ever.
532.
▲
by
kitd
3y ago
Or consider developing one yourself. In which language? ;)
533.
▲
by
kitd
3y ago
One of my favourite micro-instances of Brunel's engineering are the brick arches of Moulsford Railway Bridge on the Thames near Wallingford, Oxfordshire. The railway has to cross the river at an angle, so a plain perpendicular bridge w
534.
▲
by
kitd
3y ago
As another example, Brunel's Maidenhead Railway Bridge to this day holds the world record for having the lowest ratio height:span for brick arches.
535.
▲
by
kitd
3y ago
Nice. I crossed the Clifton Suspension Bridge every day going to school and back for a few years.
536.
▲
by
kitd
3y ago
I'm going by the testimony of a psychiatrist who had been following the trial. Depression can apparently push people into a mental world where everything is at rock bottom and what gets written is just an expression of that.
537.
▲
by
kitd
3y ago
Those notes had little effect in her conviction apparently, according to a criminal psychiatrist on BBC radio. It is behaviour typical of someone suffering depression, for which she was having treatment at the time.
538.
▲
by
kitd
3y ago
You're right, but I think the article is about the RSS warning the official inquiry rather than the public. One would expect them to have a higher threshold of quality of evidence than the typical tabloids or Twitter feeds.
539.
▲
by
kitd
3y ago
No it wasn't. See my sibling comment in this thread. At worst, it alerted authorities to there potentially being foul play. Her actual conviction was based on other factors.
540.
▲
by
kitd
3y ago
On the afternoon of the conviction, there was an expert criminal psychiatrist on BBC radio who had been following the trial closely. Apparently those notes, though they made all the headlines, played little part in her conviction, and are t
More ›