Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
coddle-hark
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
coddle-hark
6y ago
They kind of did this with maps and slices except that they baked them right into the language instead of the standard library. Like, map is a keyword. The standard library doesn't have many data structures at all because, well, withou
62.
▲
by
coddle-hark
6y ago
I think map[T]bool is already a pretty good set; the only things you can do with sets are insertion, deletion, iteration and checking for existence and they're all well-supported. Of course, if you need a concurrent set you're rig
63.
▲
by
coddle-hark
6y ago
It's a real pain in the ass not having generics any time you're working with algorithms and data structures. Linked lists? Graphs? Trees? Go is generally quite nice to work with but it implementing these basic structures again and
64.
▲
by
coddle-hark
6y ago
I’ve yet to see a contraceptive that claims to prevent 100% of pregnancies.
65.
▲
by
coddle-hark
6y ago
The robots will gain civil rights the same way humans did, either by means of violence or swaying public opinion. Hopefully the latter. This isn’t a guess as to how future robots will work, this is an observation about how humans work.
66.
▲
by
coddle-hark
6y ago
Including your own! A big part of opsec is putting systems in place that mitigate dangerous but unavoidable human behaviour.
67.
▲
by
coddle-hark
6y ago
> cook until it is enough I’m glad recipes have moved past this but I still see code with these types of comments all the time. Maybe in another 100 years it’ll be unthinkable to write documentation this way? One can hope.
68.
▲
by
coddle-hark
6y ago
We use in-memory sqlite databases for unit testing a MySQL backed web service. It’s great! You can build and test the code without setting up a MySQL server and no risk of state leaking like you said. The syntax isn’t exactly the same but w
69.
▲
by
coddle-hark
6y ago
You’re in a bubble. Most people don’t use Excel, much less write formulas, and they certainly don’t write email filters.
70.
▲
by
coddle-hark
6y ago
I would go even further and say that the most important aspect of teaching programming in schools is simply exposure. Most people don’t stumble upon programming in their day to day lives, especially now in the age of iPads and other locked
71.
▲
by
coddle-hark
6y ago
Yeah but like... so what? Should the suit be thrown out just because it was conceived by people you don’t agree with? If so, do you think someone else should be allowed to open a similar case based on the work of a “right-wing think tank”?
72.
▲
by
coddle-hark
6y ago
It varies by country, even within Europe. In Sweden it’s illegal to market to kids.
73.
▲
by
coddle-hark
6y ago
I guess, but it’s not like the European tech sector is falling behind in terms of engineering. We have a healthy tech industry, just not a lot of world-dominating unicorns.
74.
▲
by
coddle-hark
6y ago
I can’t comment on why Europe isn’t the world leader in tech... but are we really missing out on much? The head counts (=jobs) of these companies are low compared to other sectors. Most (all?) have a strong European presence. Anyone can buy
75.
▲
by
coddle-hark
6y ago
You can limit the damage though; in theory there’s no reason why authentication needs to be centralised. You could split the backend up into multiple authentication services and “bucket” the auth requests per email address or something. So
76.
▲
by
coddle-hark
6y ago
Thank you!
77.
▲
by
coddle-hark
6y ago
It’s not that expensive, we had a private cabin going Florence - Munich for about the same price as a hotel night. That was with a shared bathroom but we had a sink in the room.
78.
▲
by
coddle-hark
6y ago
Yup, the Nightjet from Munich to Florence stopped for a while in Austria when we were travelling a few years ago.
79.
▲
Ask HN: Scene reconstruction from multiple video streams?
1 points
by
coddle-hark
6y ago
|
2 comments
80.
▲
by
coddle-hark
6y ago
I think it’s a general truth that all software projects tend to end up at the maximum possible complexity. Projects that aren’t inherently complex tend to achieve this by complicated tooling, deploys, and a slew of “special cases” that inev
81.
▲
by
coddle-hark
6y ago
I sold my PS4 because of this. I don’t have much time to play, maybe once or twice a month, but it felt like every time I turned the damn thing on I needed to first do a system upgrade (which takes forever) and then update the game itself (
82.
▲
by
coddle-hark
6y ago
You’re forgetting the opportunity cost.
83.
▲
by
coddle-hark
6y ago
I’d love 10G just for nerd points but even if they built it out where I live the equipment is still too loud (!) and expensive. You’re basically running a small data enter at that point.
84.
▲
by
coddle-hark
6y ago
There’s no “killer app” for a gigabit connection but it does speed up some things you already do: - Backups - System updates - Game patches - Torrents Having all those things be 10x faster than a 100mbit connection is nice. It’s a luxury, b
85.
▲
by
coddle-hark
6y ago
This exactly. I think it’s far more common that people hold on to a mildly successful business for years longer than they really should.
86.
▲
by
coddle-hark
6y ago
I can sympathise with some of these stories, like the ones where an overnight DDOS attack racks up a huge unexpected bill, but this one in particular is just a story of gross incompetence and negligence. The guy hacked together some code in
87.
▲
by
coddle-hark
6y ago
Also in Europe: The exact opposite.
88.
▲
by
coddle-hark
6y ago
> If we had been moving to a proprietary license, I think it would have been harder to get sign off, but that is pure speculation! Well good news for you then: There’s nothing stopping you making all future changes proprietary now that i
89.
▲
by
coddle-hark
6y ago
I think the problem is that Google doesn’t really want or need outside collaboration in their open source projects. They have project managers that steer the ship and more than enough smart people to write code. What do they need you for? I
90.
▲
by
coddle-hark
6y ago
You’ve been able to load remote images forever, that’s how badges work. Yes it’s a privacy issue but it’s worth it because when these backends go down (which they do, often) you get a readme full of broken images.
More ›