Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
barsonme
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
481.
▲
by
barsonme
10y ago
I'd be totally down to remove speed limits in some places (I drive cross-state every weekend, so I'd love it :-) but, in my opinion, speed limits can be useful in certain areas. Off the top of my head: - Residential areas (like
482.
▲
by
barsonme
10y ago
What about something like speeding? Let's say we get rid of speeding laws since they're not 100% enforced. Should we have unregulated driving? Move towards a law that simply says "no driving unsafely"? IMO those are both
483.
▲
by
barsonme
10y ago
I'm not sure I 100% understand your question, but in Go a string is a two-word struct. type string struct { data unsafe.Pointer len int } The C version would be typedef struct string { const *
484.
▲
by
barsonme
10y ago
I think it's fantastic that some companies use their platforms to help the disadvantaged—it's a good use of their resources, in my opinion. Sometimes platforms and politics don't mix, though. I don't watch ESPN because I
485.
▲
by
barsonme
10y ago
Sorta depends where you're at. In cities that have hot summers and cold winters (Spokane, etc.) you get terrible roads. Poorer parts of cities have worse roads than richer parts (compare north Tacoma to basically the rest of Tacoma). I
486.
▲
by
barsonme
10y ago
The problem is [16]byte would always be wasting 12 bytes for IPv4 addresses if you only used one type for both. So, two types must be made which requires extra code and doesn't allow for == comparison which is what OP (GP? whomever...)
487.
▲
by
barsonme
10y ago
So does Go, so a net.IP could be [16]byte or [4]byte, but I'm sure you can see the obvious problems that might occur there (with having two separate IP types). Most UUID libraries I've seen and written use [16]byte as the concre
488.
▲
by
barsonme
10y ago
Is American and Cuban poverty the same?
489.
▲
by
barsonme
10y ago
Obligatory Popehat: https://popehat.com/2012/09/19/three-generations-of-a-hackne...
490.
▲
by
barsonme
10y ago
I'd think so. Now we _know_ admins can and have edited comments without people knowing. Makes you wonder if they've done it in the past.
491.
▲
by
barsonme
10y ago
Funny. Almost reads like an Onion article :-)
492.
▲
by
barsonme
10y ago
Oh yeah. I drive a 2000 Toyota Corolla, so even a Camry is 'fast' to me. I just have to convince the SO to let me purchase a motorcycle...
493.
▲
by
barsonme
10y ago
It's insane. I visited my uncle in Petaluma and he drives a volt. He's normally a very slow driver ( drives us insane ;), but one day we were running late to dinner (don't do that to my aunt...) so he decides to floor it (ag
494.
▲
by
barsonme
10y ago
The right too. I have many friends who've taken to gloating over this. That won't help this divide, only widen it. If the right can't see past itself to be graceful in victory and try to understand the left's anxiety and
495.
▲
by
barsonme
10y ago
I'll echo a comment I made on Facebook: I think Mark Zuckerberg's comments show both ways we can react to this election. You've got to decide: will you be constructive or destructive? "We can't create
496.
▲
by
barsonme
10y ago
As a lifelong Republican I'm not. It's going to be a bitter fight as the GOP either decides to shed its alt-right folk or embrace them and the GOP is going to come out rough either way. There's a definite divide between the m
497.
▲
by
barsonme
10y ago
I'm not sure how you can some to an objective conclusion on such a subjective issue.
498.
▲
by
barsonme
10y ago
To _you_ the GOP seems broken. To millions of other people the GOP is fine. To millions of others the Democratic party is broken. If you can't recognize faults in both _you_ are the problem. Nothing in politics--especially subjective i
499.
▲
by
barsonme
10y ago
> Not sure why some people consider the Democratic party "extreme". They most definitely seem like a moderate party. The Republican party, well, they're just incredibly laser focused on cutting taxes on the rich. And Repub
500.
▲
by
barsonme
10y ago
First, the two major parties are so incredibly established that third parties barely exist. So, starting a third party that can compete with the other two is near impossible. Second, since radio and television (media) started catering towar
501.
▲
by
barsonme
10y ago
I think what you're getting at is _assertiveness_, not anger. Assertiveness expresses urgency (and perhaps frustration) without hostility. It's the difference between: > ... I've been hung up on 3 times in the last 30 minu
502.
▲
by
barsonme
10y ago
This is a good point--I remember even the online game "Runescape" had a warning that would pop up if you tried to sell an item worth X for a very low price. It would seem to me (somebody who knows squat about stock trading) that a
503.
▲
by
barsonme
10y ago
Pay as in money? I'd disagree. Governments are lazy because citizens don't hold them accountable for not doing their jobs properly. Why? Same reason we collectively complain about politician or gov't office X doing their jobs
504.
▲
by
barsonme
10y ago
Conversely, there are a fair amount of older folk who are very much okay with government surveillance and a general lack of privacy (particularly our inherent rights) because, e.g., they have "nothing to hide" My impression (in
505.
▲
by
barsonme
10y ago
A map is a pointer to the actual map implementation. When declared via var m map[T]T you're basically writing var m *runtime.hmap which is a nil pointer. Go has sane zero values, so it makes sense that reading from a
506.
▲
by
barsonme
10y ago
I disagree. Return interfaces where it makes sense. E.g., returning type Buffer interface { io.Writer io.ByteWriter WriteString(string) (int, error) ... } from `bytes.NewBuffer' would be a b
507.
▲
by
barsonme
10y ago
I'm curious--why? What, really, is the point?
508.
▲
by
barsonme
10y ago
Here are the rules: https://golang.org/ref/spec#Exported_identifiers An identifier may be exported to permit access to it from another package. An identifier is exported if both: the first charac
509.
▲
by
barsonme
10y ago
Well, yes kind of. type foo struct { a int // "private" B int // "public" } You cannot specify default values and Go refers to them as "exported" not private, bu
510.
▲
by
barsonme
10y ago
The projects I've seen have gone with "leader/follower" https://github.com/django/django/commit/8a95b4fca793eeb8adce...
More ›