Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ht85
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
ht85
8y ago
Rewriting vanilla JS to Typescript isn't that big of a deal though. It would be more like building a house on a budget, then adding some fancy paint, furniture and alarm system. In my experience, if you spend a few weeks in the "e
212.
▲
by
ht85
8y ago
What you want to spy on are side-effects that are part of the function's contract. If you have a function that fetches data, you shouldn't test that its hitting the data layer, only that the correct data is returned. This way when
213.
▲
by
ht85
8y ago
It doesn't work for GUIs (e.g. github), but on the command line you can do `git blame -w` to ignore whitespace.
214.
▲
by
ht85
8y ago
The confirmation is coming from one of the database nodes but T2 might be executed on a different node, where T1 hasn't been replicated yet.
215.
▲
by
ht85
8y ago
They might be talking about non-monetary resources, like partnerships and experience?
216.
▲
by
ht85
8y ago
I find not having the option really annoying when you're in a situation (e.g. relaxing) where you want to navigate with one hand. The right hand can drive the mouse and has easy access to pgup/down, arrows and backspace, but reach
217.
▲
by
ht85
8y ago
Yeah but in that case the malicious website should only be allowed to push a single frame, allowing you to escape by going back twice. This is much better then the current solution where you have to long-clicking the back button and manuall
218.
▲
by
ht85
8y ago
He's referring to the typical phone performance (parse and execute) and network bandwidth for an Indian user, not the network latency.
219.
▲
by
ht85
8y ago
You have to account for everything when evaluating a company, and that includes negative sentiment of the public about using an application. Even if the company didn't do anything wrong.
220.
▲
by
ht85
8y ago
I think the article is referring to a scene that would be unlikely, not make sense given the context. Like identify a grey mass in the middle of the street as en elephant. "Confusing" would be a poor choice of word here though.
221.
▲
by
ht85
8y ago
Maintaining and migrating stored procedures can be a pain, especially when you're running a single tenant infrastructure, and even more if you don't migrate everyone at the same time. I've had a lot of success by creating a s
222.
▲
by
ht85
8y ago
It isn't, and I don't think I have. My point was that using a "more modern standard" would break hn for people using legacy browsers.
223.
▲
by
ht85
8y ago
el.classList isn't supported by IE < 10
224.
▲
by
ht85
8y ago
They might not bad mouth, but generally a bad leader will get you neutral "fine", "great" opinions. People under someone they respect and like will tell stories and use superlatives.
225.
▲
by
ht85
8y ago
To avoid having to implement the whole logic for any event you'd want to revert, you can have a "cancel" event that points to another event. You'd read the cancel events first and simply skip the events they point to.
226.
▲
by
ht85
8y ago
Here's a comment explaining how I fixed palm detection onmy XPS 15: https://news.ycombinator.com/item?id=17589505
227.
▲
by
ht85
8y ago
I think the context is very important. When you're an employee, while the quality of your work will affect your outcome, there is a "good enough" performance past which your efforts will have diminishing returns. If you boots
228.
▲
by
ht85
8y ago
Probably because housing a 150m+ transmission capable of mechanically transferring 10MW+ would make the tower far more expensive than what you'd save by not having to support the weight of the motor.
229.
▲
by
ht85
8y ago
If you're talking about entrepreneur under the "startup" model, it seems like balancing work and non-work is a contradictory idea, at least if you want to be successful. There are and always will be many people who are throwi
230.
▲
by
ht85
8y ago
I find it horrendous. Setting a static delay means that either you set it high and it'll feel incredibly sluggish when trying to move the cursor right after you type, and setting it low means that any pause while typing will cause palm
231.
▲
by
ht85
8y ago
> Touchpad does not support Palm detection for accidental swiping while typing All large touchpads suffer from this under X11 / synaptics. Synaptics has a PalmDetect setting, but I find it absolutely terrible. The way I configure mi
232.
▲
by
ht85
8y ago
It is actually not that bad if instead of a single query, you do one query per table. It even offsets some of the burden to the app, which is generally easier to scale than the database. The idea is that you query the "root" table
233.
▲
by
ht85
8y ago
Not a chemist or even a frequent caffeine user either, but from my experience you can't reduce the effect of something you take to its active principle. For me, the same whisky has very noticeable differences in the effect and after-ef
234.
▲
by
ht85
8y ago
Maybe it's written like a game engine for (;;) { if (detect_obstacle()) break; move_forward(); }
235.
▲
by
ht85
8y ago
Rust forces you to formalize memory ownership, and for complicated usages it can become pretty scary, yes. Have you tried to figure how the safe subset of C you're suggesting would look in Rust? If you're doing something simple, i
236.
▲
by
ht85
8y ago
I feel like for queries that are hard to understand at a glance, a picture is worth a thousand words. For the majority of people, myself included, writing helpful, high quality comments is really hard. Instead, for a CTE, I would rather add
237.
▲
by
ht85
8y ago
Errors from parsing the JSON should show up somewhere visible, as of now it looks like nothing happens unless you check the console.
238.
▲
by
ht85
9y ago
People don't expect trains to avoid them if they step on the rails. Recently I almost got hit by an electrical scooter. Ambient noise was very low, and I relied on sound alone until very late, and saw it at the very last moment. I'
239.
▲
by
ht85
9y ago
There is an extension for Chrome named "LinkedIn for Unregistered Users" that works on the basic profile page.
240.
▲
by
ht85
9y ago
- Adding value to the world - Building a sustainable business - Learning personally - Growing others - Working with great people This is where I looked at the URL and realized it was on their own website. First spo
More ›