Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simonbw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
simonbw
7y ago
It's not just the comparisons, it's the additions, multiplications and divisions too. When you enter 10,000, each iteration of the loop is working with numbers 10,000 digits long. When you enter 100,000, each iteration is working
92.
▲
by
simonbw
7y ago
This froze and then crashed my browser (Chrome on iOS) while I was trying to type in a password. I’m not sure if that was intended, but I would definitely consider it a “worst-practice”.
93.
▲
by
simonbw
8y ago
Even if that were the case, the payment wouldn't be infinite. 1% + 1% of 1% + 1% of 1% of 1% ... doesn't converge to infinity, it converges to 1.0101010101...%.
94.
▲
by
simonbw
8y ago
I just submitted a request. I’ll post an update here if I get a response.
95.
▲
by
simonbw
8y ago
I’m not a parent so I don’t think I have a super great understanding of which punishments are most effective, but ones I can think of: - Taking away something that they like - scolding them - giving them a time-out I’m not sure if they are
96.
▲
by
simonbw
8y ago
I don’t think the turning long-term consequences into short-term ones is what’s vilified about spanking. There are other ways of doing this that don’t resort to violence.
97.
▲
by
simonbw
8y ago
I've made a few multiplayer games where players need to keep a game state synchronized with the server. I used redux for state and game logic, and it's been really nice to be able to share the reducers between server and client. T
98.
▲
by
simonbw
8y ago
I worked at a place that did something similar. If you walked away from your unlocked computer, when you came back you might find you'd sent an email to everyone in the office saying that you're buying lunch today.
99.
▲
by
simonbw
8y ago
It really seems like you do mean to make this political. GP was talking about accusations of Tesla doing something illegal. You came in and brought up political parties and the value of unions, making the discussion much more political. To
100.
▲
by
simonbw
8y ago
I believe in es6 Object literals are guaranteed to keep their ordering, and Object.keys() will iterate through them in the order defined.
101.
▲
by
simonbw
9y ago
I don't find that surprising. Most of the communications I have at work are with a specific person, not with a whole channel. It's not because I don't want other people to know what I'm saying to someone, it's that
102.
▲
by
simonbw
9y ago
I'm surprised I've never heard of them before. Are they doing the same thing as Uber Eats, Postmates, Eat24, GrubHub, Amazon Restaurants, etc? That seems like a really tough market to succeed in. How is so much money being funnele
103.
▲
by
simonbw
9y ago
> At no point does it ever cost 2^n or any x^n. That's only true if your n is referring to the number of iterations of each loop. If your n instead refers to the number of nested loops, you will indeed get a runtime of O(2^n). Seein
104.
▲
by
simonbw
9y ago
Is there really much of a difference between "const" and "con"? I get that one is 66% longer than the other, but does it actually affect the readability of the code or the amount of time it takes to write it?
105.
▲
by
simonbw
9y ago
I think he's saying use tabs on lines A, B, and C up until the indentation level (the "int"). Then on line B use spaces for all the whitespace from there until the text is aligned. /*t*/int f() { /*ta
106.
▲
by
simonbw
10y ago
I had this too.
107.
▲
by
simonbw
10y ago
Probably a 4xx error not a 5xx.
108.
▲
by
simonbw
10y ago
Would their new slogan be Artificial Artificial Artificial intelligence?
109.
▲
by
simonbw
10y ago
> Why not just use first and count variables? I think he addressed that in the post: The most common use for ring buffers is for it to be the intermediary between a concurrent reader and writer (be it two threads, to processes sharing m
110.
▲
by
simonbw
10y ago
I hovered over Luxembourg and it told me they have -6.0% non-fossil-fuel electricity.
111.
▲
by
simonbw
10y ago
Patents and trademarks maybe, but copyright? You have copyright on basically anything you create. Should I pay taxes on everything I put on github? On essays I write? What if I'm a famous artist? If I make some artwork to go in my livi
112.
▲
by
simonbw
10y ago
The competitors that came to fill in the gaps aren't following any of the newly passed regulations from what I've heard.
113.
▲
by
simonbw
10y ago
I'm pretty sure the parent comment was joking.
114.
▲
by
simonbw
10y ago
In general indeed gets its listings by aggregating them from across the web. They also have a lot of people post directly on their site. They also have the Job Spotter app that gives rewards to people to find and upload pictures of "He
115.
▲
by
simonbw
10y ago
He mentioned that in the article: > What's interesting is that while the most representative songs for each band are mostly their own songs, occasionally other bands songs creep in. For example, "Wrathchild", is an Iron Ma
116.
▲
by
simonbw
10y ago
If the FBI let people know what vulnerability is, the vulnerability could be fixed, which would result in fewer people understanding how to break tor. The FBI doesn't want the vulnerability to be fixed though, which is why they classif
117.
▲
by
simonbw
10y ago
The answer given by the article: However, that app [Swift Playground] is aimed at slightly older children – those aged 12 and up. But I have no idea if that's the real reason.
118.
▲
by
simonbw
10y ago
I don't think that's quite true. I believe the legislators enacted the law, then there was an initiative to repeal the law that was voted down by the people.
119.
▲
by
simonbw
10y ago
The full comment if people don't feel like clicking or it does get deleted: --------------------------- Jumping into the lions' den here, but I thought I'd drop in and offer a bit of clarification: That post is mostly to help
120.
▲
by
simonbw
11y ago
What about GOG is better than steam? I'm pretty sure you can sell your game DRM free on steam too. Valve is also pushing pretty hard for Linux gaming.
More ›