HNHacker News
TopNewBestAskShowJobs

kokanee

1,684 karma · joined June 18, 2020

submissionscomments
kokanee··on React is 10 years old
The great downfall of hooks, IMO, is that they allow you to create components that look clean and legible, but act unpredictably because all of your state updates are triggered by variable reference changes. The idea is that this makes your state updates happen automagically so you don't have to think about them, but this is a classic example of an abstraction that works until it doesn't.

Redux mainstreamed the concept of reference changes triggering updates, but I think this is a horrible pattern - we don't even have an operator in JS for explicitly passing by reference, so you end up destructuring large objects constantly in order to change one property and create a new object reference, which is a totally inefficient alternative to calling a render method. Plus javascript developers don't generally think about the concept of passing by reference vs value anyway, in large part because the language gives us so few tools for making those choices.

As a result, there is a class of bugs where the only solution is to change the list of dependency variables for a given hook. It doesn't take a huge amount of complexity for the implications of those dependency trees to bend the mind, and the "clean" syntax of hooks comes crashing down.

kokanee··on React is 10 years old
Sure, React still supports that, for some reason. But good luck getting a job offer or even a PR approved if you're using `this.setState()` in 2023.
kokanee··on You can serve static data over HTTP
I do this when possible. Caching can be a pain to get right though. If you’re set up to do hashed filenames for JS and CSS already, you can leverage that for cache busting your json, and then you need to inject the hashed filename into the app somehow.
kokanee··on Ask HN: Resources for older developers?
Thanks for your thoughts! Appreciate it.
kokanee··on Ask HN: Resources for older developers?
I'm in my mid-30s and facing the reality that I do not want to be a manager, but have a hard time picturing myself coding into my 60s. I'd be curious to hear more about what in your eyes separates "certain parts of our industry" that aren't suitable for older devs from those that offer good jobs which pay what you're worth. What kind of attributes would you look for in a company or product if you were searching for a job right now?
kokanee··on Ask HN: What is new in algorithms and data structures these days?
"Most commonly used X today are clever optimizations atop old Y" is pretty much the story of technology, isn't it?
kokanee··on Ink: React for interactive command-line apps
React kind of reminds me of English. It is ubiquitous for reasons that essentially boil down to imperialism. It imposes at least as many problems as it solves. There is ample evidence that we were getting along fine (if not better) without it. At some point it became the only language many young people know.

And if React is like English, then using it to write a CLI is like using Webster's dictionary to translate hieroglyphs.

kokanee··on Ask HN: What are ways to combat loneliness and build meaningful connections?
Yeah I think getting married is what happens after you solve your loneliness problem, not before.
kokanee··on Htmx Is the Future
I agree. These points are arguments against the philosophy of HTMX which asserts that you can get everything you need without client-side logic.

To be fair, I'm also not a fan of bloated libraries like React and Angular. I think we had it right 15-20 years ago: use the server for everything you can, and use the smallest amount of JS necessary to service your client-side needs.

kokanee··on Htmx Is the Future
There are two things that engineers tend to neglect about validation experiences:

1) When you run the validation has a huge impact on UX. A field should not be marked as invalid until a blur event, and after that it should be revalidated on every keystroke. It drives people crazy when we show them a red input with an error message simply because they haven't finished typing their email address yet, or when we continue to show the error after the problem has been fixed because they haven't resubmitted the form yet.

2) Client side validation rules do occasionally diverge from server side validation rules. Requiring a phone number can be A/B tested, for example.

kokanee··on New in Chrome 113
That would allow them to share doubleclick cookies across all subdomains of google.com. This FPS feature will allow them to share doubleclick cookies (or whichever cookies) across any domains that they choose to group into a "set." So regardless of whether you selected the "block third party cookies" setting, Chrome now ships with an internal list of domain groups for which it will ignore that setting.
kokanee··on New in Chrome 113
Abuse is subjective. Outside of Google, the general sentiment is that Chrome treating doubleclick.com as a first party to anything other than doubleclick.com is abusive.
kokanee··on Fakespot Is Acquired by Mozilla
There must be something different about my web use, because I keep hearing anecdotally that Firefox has reasonable performance relative to chrome. My experience is now and has always been that they aren't even close. I'm working on a React app at the moment and just confirmed: some basic operations that are buttery-smooth and instantaneous in Chrome have noticeable delay in FF. No extensions installed in either.
kokanee··on Every web search result in Brave Search is now served by our own index
I totally agree that this is a great sign. I'm a bit more pessimistic though - a search engine's willingness to actually let you click through to an organic search result is a function of A) how dominant in the search market they are, and therefore how much they can afford to jerk users around, and B) how mature they are economically, since growth is more difficult later in the life of the company.

This is to say that I don't trust Brave to keep doing things right as their incentives evolve. Trust is a finicky thing, but from the outset they strike me as an organization with lofty commercial intentions. And, I admit, I don't think I can trust anything Brendan Eich does.

kokanee··on Dropbox telemetry can't be disabled
I'm wondering where the line is between acceptable and unacceptable logs. Obviously no one appreciates analytics used by marketing teams, but virtually every internet service has logs used by engineers (which seem to be what this post is about). A few factors that seem relevant:

- Is the service running locally?

- Do we trust/expect that the data is not used for marketing (i.e. would the user have complained if the domain was "error-reporting.dropbox.com")?

- Is the data anonymous (think twice, everyone who has IPs or user IDs in request logs)

- Did we agree to relevant ToS or privacy policies?

If we think carefully about this, I'd bet that most people here have used or even implemented some form of logging that has privacy problems.

kokanee··on Dropbox to reduce global workforce by about 16%, or 500 staff
And they pivoted from that to instagram NFTs, which also failed.

https://about.fb.com/news/2022/05/introducing-digital-collec...

kokanee··on Dropbox to reduce global workforce by about 16%, or 500 staff
My take is that there has been an ongoing "AI/ML" hype cycle, but this latest craze is a more specific LLM hype. I expect to see a chatbot that can help you derive insights from everything you've uploaded.

For Dropbox, I predict that this will go exactly the way Dropbox Paper went.

kokanee··on Microsoft Edge is leaking the sites you visit to Bing
Parent commenter here. Before submitting that comment I literally checked once again to try and find these settings. I looked through the General, Tabs, Security, Privacy, and Websites settings. It didn't occur to me to look in Advanced for a display setting. I also looked through View, but never would have guessed that "status bar" is the name for the link preview feature.
kokanee··on Microsoft Edge is leaking the sites you visit to Bing
Mac user and web dev here - I appreciate a lot of things about the philosophy behind Safari, but I've lost untold hours to debugging and working around inane Safari bugs. It is truly the modern equivalent of IE for front end devs.

It also makes my blood boil that Safari both hides the full path of the URL you're currently visiting and doesn't implement the standard practice of giving you a preview of the full URL you're about to visit when you hover over a link. These are horrible choices for usability and security, especially at a time when phishing is so productive.

kokanee··on Microsoft Edge is leaking the sites you visit to Bing
Brave does an enormous about of non-browser "stuff." Video calls, offline playlists, customizable news feeds, crypto wallet... they are trying to build a "super app" rather than a browser. The idea is that you can trust them because they aren't FAANG, but the problem is that if they actually were to succeed then they would be FAANG.

I haven't used Firefox in ages but AFAIK it has very little bloatware. The problem, from the perspective of a web dev, is that it has quite a few rendering quirks/bugs. These days chromium sets the standard for the "correct" way to render things.

kokanee··on After the Lawn (2015)
This is a cultural attitude that prevails in the US. Home values are tied to curb appeal, not only of your house but of your neighbors' homes. It's a very unfortunate situation because a strictly aesthetic concern results in untold amounts of fertilizer and pesticide in our ecosystems and of course endless water use. It's easy to forget that fertilizer is an ecological disaster both on the production and consumption sides - ammonia production for fertilizer is one of the larger carbon emission sources on the planet. I really don't have a solution to suggest, but at the very least we can all start checking our negative reactions when we see an ugly lawn. Cultural attitudes can change over time.
kokanee··on Reddit will begin charging for access to its API
I think that both Cloudflare and the Lowe's stores of the world understand that these interventions have negative side effects. The problem is that leaving them out has even worse consequences, and no one has offered a sufficient alternative.

Put another way, one could reason that they'd prefer to do business with Lowes because they are actively investing in security measures. Perhaps your data is more likely to be compromised at Home Depot.

kokanee··on Reducing Iron Oxide with Ammonia: A Sustainable Path to Green Steel
I work at a company that is creating better electrolyzers for this process. Ammonia producers are clamoring for this technology. It works, and it is happening!
kokanee··on Responsible AI Challenge
Ah yes, I'll just reference the list of my non-neutral biases as I choose the moderation rules for my AI. My bias against swear words is neutral, so I will include that rule, but my bias against pollution is not neutral, so I will skip those moderation rules.

Obviously categorizing beliefs into "neutral" and "not neutral" is impossible. Your statement is a classic example of the false consensus effect -- everyone thinks they are neutral.

https://en.wikipedia.org/wiki/False_consensus_effect

kokanee··on Responsible AI Challenge
Your point seems to be that AI output should not be moderated. This would mean that the AI would adopt whatever biases and language patterns exist in the training data. In that scenario, the AI developer is still injecting bias by selecting which training data to use. There's also the problem that any unmoderated AI would be completely commercially unviable, of course. So, I think I understand what you're opposed to, but I'm curious what actions/methodologies you would be in favor of.
kokanee··on Where have all the sacked tech workers gone?
I think that when people describe these kinds of markets as "artificially" inflated, they're reacting to the sharp increase in income inequality. For a person who has had a 60-80th percentile income for 20 years, it probably feels more like prices are artificial than it feels like their economic status has declined significantly. Unfortunately the latter is the case, as increasingly fewer people gather an increasing share of wealth.

I would definitely agree that the pricing is not artificial, but I don't think I would call it fair.

kokanee··on ChatGPT Plugins
There are already 3 or 4 runners-up and they're all big tech companies.
kokanee··on ChatGPT Plugins
The technical capability is inevitable, but remember that people hate doing things themselves, and have proven time and time again that they will overlook all kinds of nasty behavior in exchange for consumer grade experiences. The marketplace loves centralization.
kokanee··on Google releases Bard to a limited number of users in the US and UK
I'm envisioning an office in Bangladesh full of people copying Bard prompts into ChatGPT and pasting the results.
kokanee··on Testing GPT 4's code-writing capabilities with some real world problems
I agree, but I would put it like this: 99% of a software developer's job isn't writing code, it's getting consensus across stakeholders what the "prompt" for the coding task should be, how that prompt should change over time, which parts of the problem should be included in this week's prompt and which one's should be tackled next week, etc. Also, more often than not, the task isn't exactly about generating code, it's about sending data between various clients and servers, tweaking code where necessary for compatibility and new data shapes.
← PreviousPage 6 of 9Next →