HNHacker News
TopNewBestAskShowJobs

ht85

1,098 karma · joined May 17, 2016

submissionscomments
ht85··on Mercedes-Benz previews its operating system MB.OS
Wouldn't someone giving you their number based on the car you drive be a giant red flag?
ht85··on Mercedes-Benz previews its operating system MB.OS
Yeah, the manual explicitly says that cruise control should only be used in clear weather conditions.
ht85··on Staff, reportedly under threat of firing, break Twitter for Musk
Don't forget he's a genius guys.
ht85··on Microsoft to Replace Edge’s PDF Reader with Adobe Acrobat
> a secure heap implementation developed on Chromium and already used in Edge

"Don't worry guys, all the buffer overflows will lead them nowhere!"

ht85··on Speeding up the JavaScript ecosystem part 3 – eslint
https://github.com/estools/esquery/pulls

15 opened ones, last merged one from Feb 2021 :/

ht85··on Features I'd Like in PostgreSQL
> Likewise you can specify a database connection as read-only

We emulate that in prod by having admin users with read only permissions. They are granted other roles without the INHERIT option, thus needing an explicit `SET ROLE ...` before being able to do anything dangerous.

I also teach people the habit of combining `BEGIN; SET ROLE ...` everytime they need to write something. It has completely stopped "woops prod" incidents since it was implemented.

ht85··on $90k to $900k: Pay transparency laws usher in baffling pay ranges
If you want progress in the right direction, making people's income public would do a lot more than those gimmick measures.
ht85··on Ask HN: Is PayPal an open scam at this point?
Paypal is nice as a credit card proxy, I use it from time to time on low quality or shady e-commerce. Those website also tend to support Paypal checkout, removing the need to enter my details or create an account.

Their track record has repeatedly shown that you shouldn't keep a balance on it. If you're a seller, you should look into an alternative that has a functioning support process.

ht85··on Pipe Operator (|>) For JavaScript
I'll only allow it if you can pipe `|> debugger`
ht85··on Pipe Operator (|>) For JavaScript
You might already know, but until do expressions land, you can use IIFEs for ifs and switches assignments:

    const isSomething = (() => {
        switch (...) {
            case ...:
                return ...
        }
    })()
They are a bit ugly but the do wonders at avoiding `let`.
ht85··on New video of Tesla crash demonstrates the problem of semi-automated driving
Was the first car speeding? If not, how were they at fault?
ht85··on “The current climate in AI has so many parallels to 2021 Web3”
Web3 outs grifters like no other thing before, so there's that.
ht85··on Study finds that buttons in cars are safer and quicker to use than touchscreens
It's an interesting comment, but to take it at face value... cars back in 2000 didn't force good drivers to operate unsafe bullshit for mission critical controls.
ht85··on Study finds that buttons in cars are safer and quicker to use than touchscreens
> What's the proper control to use for interacting with a navigation

1. Voice control

2. Pull over

ht85··on A Visual Guide to React's useEffect (2021)
TS is transpiled, not compiled (at least most of it, there are exceptions like enums and certain ES features depending on target).
ht85··on A Visual Guide to React's useEffect (2021)
I had not seen that, thank you. The compilation being optional, backwards compatible, and producing readable / step-debuggable JS seems like a really nice approach.
ht85··on A Visual Guide to React's useEffect (2021)
I think that arch is the best and I've used it for low interactivity projects where the frontend is almost all display. Haven't tried it for complicated SPAs with lots of DOM interaction though.

Do you have any such experience? How do you architecture your models, events, processing, updating, etc? Do you have UI-less component-like pieces of code that you can compose? Or a fat root state manager that does everything?

Not sure if you work on any public repos, would love to have a look if you do for inspiration :)

ht85··on A Visual Guide to React's useEffect (2021)
One of the great qualities of react is to not be compiled, which removes an entire layer of confusion. It's a tradeoff but it is makes it a lot more predictable.
ht85··on A Visual Guide to React's useEffect (2021)
I see many complaints about the react APIs.

Personally, I like the way react is balanced. Yes, it can feel unintuitive or complicated to beginners, but that's because it puts a lot of emphasis on experts productivity and ergonomics while only using js, not being compiled.

Once you do things the "react way" (whatever that means, you'll get there if you take time to identify and eliminate "smells"), it just feels so... smooth? You can build everything with the same methodology and flow. Simple components can feel a bit over engineered, but the hard ones ones feel much simpler than they would be in other stacks, and upgrading code and functionality feels effortless.

ht85··on I am done. I give up
Completely agree. Am on my 3rd company, all of them have reached profitability fairly easily.

If you don't want to rely on luck, you have to work from the bottom. The VC, top down approach is very risky indeed, but a different game exists.

Finding people who have problems that could be solved through better software is not hard. Listen to them. Make their life easier. Generalize, improve, start selling to other people who have the same issues. Spot opportunities related to your market, your tech, your customers.

There is a ton of demand, especially at small/local scale. If you are efficient, a moderate amount of upfront work can provide ton of value to countless people. They will gladly pay for it, especially if they feel listened to.

ht85··on France fines Microsoft €60M for imposing advertising cookies
Zoom "stay logged" is greyed out if you have moderate privacy settings. Only website I've ever had an issue with.
ht85··on Windows 11 update added 'Search' label to taskbar search button – how to remove?
For a sec I thought you were asking how to remove Windows
ht85··on If PHP Were British (2011)
!be() <-> be() + be()?

I'm bad a philosophical math

ht85··on If PHP Were British (2011)
US: SUM(...) FR: BAGUETTE(...)
ht85··on If PHP Were British (2011)
be() || !be()
ht85··on Human Chess is a chess variant where playing the top engine move is forbidden
You mean all of humanity
ht85··on Human Chess is a chess variant where playing the top engine move is forbidden
It is "Human" chess because you win by forcing your opposition to mess up, instead of pursuing perfection yourself.
ht85··on Human Chess is a chess variant where playing the top engine move is forbidden
That wouldn't work as the speed at which the engine runs is not deterministic.

Engines can be configured to limit search to a certain depth, which will produce a result after every branch has reached the limit or been pruned. That process will vary in time but be deterministic.

Recent neural based engines tend to not be deterministic, especially if ran multi-threaded.

ht85··on Human Chess is a chess variant where playing the top engine move is forbidden
Forced mates are generally scored with the number of moves to mate, e.g. "M2"
ht85··on Stripe account suffered a card test
It would be nice to know if a few transactions can hurt an account or if it only happens with large, quick volume. OP, do you know at which rate the cards were tested on your platform?
← PreviousPage 3 of 12Next →