zefei

Joined 14 years ago

Karma
156
Submissions
30
Member since
Mar 3
http://zef.io/
View on Hacker News

Recent submissions

Comment · 3 years ago
The default _browser_ will mostly be Safari. But the moment webkit requirement is relaxed, all in-app browsers for Facebook, TikTok, Youtube, Instagram, etc will be replaced with their own forks without any respect for "do not track". They will become the second most used browsers on iPhone, not Firefox or Chrome.
Comment · 3 years ago
Some comments seem to be optimistic about the potential change from Apple. But once Apple relax webkit requirement from app store, it will mean all "do not track" cookie enforcement would be easily worked around.
Comment · 3 years ago
I think what the article is addressing is likely not what is being discussed in this thread. The article ("Unfortunately, I often see solutions abusing exceptions" followed by using exceptions to replace if statements) is very likely discussing poor understanding of the topic from student assignment rather than actual code in the industry. Such mistakes (abuse of exceptions in the article) often go away once students become actual professionals because these mistakes are more easily caught during code review than other types of common mistakes.
Comment · 4 years ago
It's just that science is easy to verify for the people that know how. If you are actual expect of any other topics (thus can verify if their news is any good), you'll find the news for those topics is at best as bad as for science, if not much worse. News cannot be 100% faithful to the material it covers, and the more you understand about the topics, the more discrepancy you can see.
Comment · 4 years ago
0211 0311 0411
Comment · 4 years ago
[pppp;;;;;]
Comment · 4 years ago
I don't believe this has anything to do with AI, it most likely is rule based (not the entire system, just inclusive warnings). People like to shit on AI, but AI wouldn't really make such ridiculous suggestions, only human can.

The suggestions look a lot like code linters in FAANG companies. People from the outside will be shocked at some of these "inclusive" linters if they take a look.

Comment · 9 years ago
Both flow and typescript are great tools. Typescript has much better tooling and great IDE integration, using typescript is a no-brainer for new projects. Flow's soundness does shine though once your codebase (and your team) becomes very big, as any unsafe cast can be reliably treated as error. I use flow at work, and so far my experience is that unsafe cast in flow always indicates a bad design or actual bug.
Comment · 11 years ago
Every time I read something about TempleOS, I was amazed by its concepts and Terry's dedication. I wonder if one day we could see something like "doom source code review" on TempleOS.
Comment · 11 years ago
I really hate people advocating micro services/libraries because they just migrated and "everything got much better". No, everything got much better because the known/actual problem domain changed and system is re-adjusted accordingly. When you start with very little knowledge of the problem domain, any fine-grained architecture is premature optimization, and what you really want is to rapidly expand your understanding of the problem.

Projects can fail in many ways, not trying to understand the problem better and not trying to re-adjust after are typical pitfalls. Migrating from monolith to micros is just a natural transition between SOME stages, and it shouldn't happen until you hit those stages. You may hit those stages very early, or sometimes never.

Comment · 11 years ago
Compared to facebook's barebone flux library, the only real advantage these frameworks provide is about server side rendering. But I'm worried this will become irrelevant once facebook Relay is out.
Comment · 11 years ago
I think checking whether target is reachable has the same complexity as reaching it
Comment · 11 years ago
Nice work! The pip/virtualenv loader is really great, and can make the plugin dev more purely focused on the plugin. I think this part can be a great standalone project.

But I don't know about the boilerplate functions, some of them feel useful (like output capturing, state preserving), while others are just shallow abstractions over the vim API, which is almost never good. Abstraction over API is only useful when it provides different and better semantics, like jQuery over DOM.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton