Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Mawr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
571.
▲
by
Mawr
2y ago
> A city-wide transportation utility obviates most of the need/desire for individual car ownership. chuckles Yes, yes it does...
572.
▲
by
Mawr
2y ago
I can't imagine any of that since it relies on >99% of cars being self-driving whereas currently <1% are. Even under the most optimistic estimates, how many decades would it take to get to that? 5? 10? > Self-driving vehicles
573.
▲
by
Mawr
2y ago
"1000C is not that hot, the Sun is hotter!" If you have to reach that hard to make your point, it's not a great point. Adding to the sibling's statistic of 40k deaths a year: > Motor vehicle crashes were the leading c
574.
▲
by
Mawr
2y ago
Fascinatingly, every argument you make is wrong. > it cost twice as much as an Uber Surely incidental since the typical price per ride is about the same. Generally though, the relationship between the cost to operate a service profitably
575.
▲
by
Mawr
2y ago
Start a Java project and a Go one. In the time you get everyone on the team to agree whether you should use Maven or Gradle, which testing framework to use, or figure out how to autoformat your code, your Go program will be done.
576.
▲
by
Mawr
2y ago
> It’s a tradeoff like anything else. Could not disagree harder with the sentiment. Selling your kidneys for $20 is a tradeoff too. You can't just throw "it's a tradeoff" around as a go-to discussion and critical thou
577.
▲
by
Mawr
2y ago
> So make cars pollute less Physically impossible to have them pollute less than methods of mass transportation. Mathematically, even. Just divide the number of people carried per pollution caused by cars vs trains, bikes, or even buses.
578.
▲
by
Mawr
2y ago
Funny, as years pass by I slide more and more towards the opposite. For most aspects of readability people discuss, there are objectively correct choices, with some leeway for the specific circumstances. Code that interleaves high and low l
579.
▲
by
Mawr
2y ago
No, your mildly asked question about a very charged topic got flagged. https://aulico.wordpress.com/wp-content/uploads/2008/10/swif...
580.
▲
by
Mawr
2y ago
Yep, the ecosystem doesn't support anything like it and a lot of Go people are downright hostile towards this solution :) You could also try your luck with https://github.com/uber-go/nilaway
581.
▲
by
Mawr
2y ago
Oh, people just don't understand the value of default settings. It's a constant theme even on this forum.
582.
▲
by
Mawr
2y ago
As far as I can tell every single one of those tools was inspired by Go's `gofmt` & `go vet` in the first place.
583.
▲
by
Mawr
2y ago
Assume all pointers are non-nil and use a generic Option type to represent values that may or may not exist: type Option[Value any] struct { value Value exists bool } func (o Option[Value]) Get() (Value,
584.
▲
by
Mawr
2y ago
Really, it's surprising that someone used dollars to convey the value of something? On a western, US-focused, English-speaking forum?
585.
▲
by
Mawr
2y ago
A bunch of aviation accidents have happened in the last few months. Is flying unsafe? See, your definition of safety seems to actually be "what feels safe to me". As such, it happens to be exactly opposite to what the data tells u
586.
▲
by
Mawr
2y ago
Well, from what I gathered, people think the Earth is flat. And I think the way I gathered that data is considerably less creative than the way you did if you managed to come up with that inane conclusion. In fact, you're so wrong that
587.
▲
by
Mawr
2y ago
Game theory would like to have a word. If I'm Putin and I know you will not defend your country if threatened, what's to stop me from annexing it? And then the whole world? After all, we don't want people to die in wars. It&#
588.
▲
by
Mawr
2y ago
Sounds like you should instead be making these invalid states unrepresentable by encoding them in types and/or adding assertions. Especially if you're exposing them as interfaces, as your example function names would imply.
589.
▲
by
Mawr
2y ago
And your point is completely wrong. It makes no sense for a language to by default optimize for the lowest possible binary size of a "hello world"-sized program. Nobody's in the business of shipping "hello world" to
590.
▲
by
Mawr
2y ago
If it's easy then why does nobody do it? ;) In all exception-based languages I know of, catching an exception is so syntactically heavy that annotating intermediate exceptions is never done: try { Foo() } catch (err)
591.
▲
by
Mawr
2y ago
You can abort via panic(), but that is expected to crash the application, which is perfectly fine. It's the act of attempting to catch the abort that is fraught with problems. While in Go that is rare, in languages with exceptions it&#
592.
▲
by
Mawr
2y ago
How can you "let the exception bubble up" when you don't know what "the exception" is nor where it's going to be thrown? The agency you imply here does not exist. All you can do is what you've described -
593.
▲
by
Mawr
2y ago
> I hate coding interviews but I am sympathetic to people who want to do them because I've met people who are such good bullshitters that they could fool most people. If you're talking about someone with no working experience a
594.
▲
by
Mawr
2y ago
That was likely the thought process of the interviewers, however wrong. FizzBuzz works well enough as a lowest common denominator screening test, but it doesn't scale up. At its core, it's an entirely made up problem with no relev
595.
▲
by
Mawr
2y ago
> In reality, a car lane can carry 2000 people per hour with an average car load. With mild car-pooling, it's easy to increase it to 6000 people per hour. The average car occupancy in the US seems to be around 1.5. How would increas
596.
▲
by
Mawr
2y ago
> No comparable European city is even close to Houston in average commute time. Even if that is true, average commute time is just a single factor. There's also health, cost, comfort, the environment, safety. Comparisons using a sin
597.
▲
by
Mawr
2y ago
Oh hey, I actually agree! By all means, let's compare fairly and price in all costs and externalities of car ownership vs public transport. You may not like the result, but that's life.
598.
▲
by
Mawr
2y ago
> absurd speed limits, speed bumps, and other “traffic calming” (or more accurately, anti car measures) I think they're intended to be anti-"getting killed by a car" measures. Traffic fatality statistics speak for themselv
599.
▲
by
Mawr
2y ago
First off, false equivalence - there is no "instead of", what the police do or do not is unrelated to the reduction of parking spaces. Second, implementing safety by modifying the physical environment is vastly superior to anythin
600.
▲
by
Mawr
2y ago
Repairing road damage is only a part of road cost. We do not build expensive 2-16 lane roads and massive parking lots to support trucks and buses. We build them because everyone needs to drive their personal vehicle to work each day at 8a
More ›