HNHacker News
TopNewBestAskShowJobs

weiming

1,099 karma · joined May 8, 2018

未名
submissionscomments
weiming··on Did New York Lose Anything with Amazon’s Rejection? It’s Complicated
As it turns out, there really was an AOC-ism of that nature.

https://twitter.com/akarl_smith/status/1096123735935987712?s...

weiming··on Did New York Lose Anything with Amazon’s Rejection? It’s Complicated
Over some years, Amazon was to pay some $X in taxes. But they were given a break to pay $3b less assuming some goals are met. The city receives $X - $3b.

Now the city receives $0.

weiming··on Did New York Lose Anything with Amazon’s Rejection? It’s Complicated
Too many debates I read online today assume that the city was going to hand Amazon a $3b check. Some sort of misunderstanding of how taxes/tax subsidies work.
weiming··on Congress votes to make open government data the default in the United States
Is this because they are required to make this info accessible, but are not required to make it easy?
weiming··on Electron 4.0.0
> where they’re talking about resource usage that ordinary users would never notice or question, or UI lag that most users wouldn’t care about

But this is such poor logic. We can notice these things, while regular users just suffer not knowing why their battery drains so quickly, unable to pinpoint the problem.

weiming··on Slot-based UI development in Swift
We've been using a DSL called SnapKit (was called Masonry in ObjC days) for years to make things way more tenable: http://snapkit.io/ If the maintainers happen to be on HN, thank you making for this!

Something like:

    make.left.equalTo(foo.right).offset(15)
    make.width.equalTo(400)
weiming··on Silicon Valley is changing, and its lead over other tech hubs narrowing
> Beyond immigration talk, the constant spewing...

Curious to see some examples cited.

weiming··on Bullshit jobs and the yoke of managerial feudalism
Speaking from experience, premiums go up every year, coverage decreases/copayments increase, and plans often get discontinued. I've had to switch to a different plan three times now.
weiming··on Salt not as damaging to health as previously thought, says study
Is there an objective and definitive list of food things that are bad for you? These "studies" keep switching their recommendations.
weiming··on A Visual, Intuitive Guide to Imaginary Numbers (2007)
> Focusing on relationships, not mechanical formulas.

The focus on formula memorization in schools is tragic. Once upon a time, I too have learned everything about imaginary numbers ... everything, other than why the heck they are actually useful. Can do all the calculations, don't know why I am doing them.

Are there other great math textbooks/websites (Calculus level and higher, Stats, Linear Algebra, etc.) that try to do this better? For someone older than school level who wants to learn again.

weiming··on Scorching Summer in Europe Signals Long-Term Climate Changes
For another datapoint, this year Tokyo experienced the coldest winter in 48 years [1] and is now in the middle of the hottest summer ever [2].

[1] http://www.asahi.com/ajw/articles/AJ201801250019.html

[2] https://edition.cnn.com/2018/07/23/asia/japan-heatwave-deadl...

Cold extremes are becoming colder, hot extremes are becoming hotter.

weiming··on Removing Bad Actors on Facebook
Could someone ELI5 why FB is in the business of policing any non-illegal speech at all? Political, partisan, foreign-made, domestic-made, poor taste humor, memes, etc. -- why not just keep all of it? It seems like a slippery slope if they turn to active moderation, and they have everything to lose by selectively choosing one or other side of some debate.
weiming··on Is WebAssembly the Return of Java Applets and Flash?
If you're a small-time indie dev, do what works so that you can ship. If you're a well-funded co. like Spotify, GitHub, or Slack, however...
weiming··on Is WebAssembly the Return of Java Applets and Flash?
Doesn't have to be a Mac only app. But be considerate to your users and use the best available SDKs for each platform, not one size fits all.
weiming··on Is WebAssembly the Return of Java Applets and Flash?
Electron (or embedded Chromium, etc.) is lazy development: save time on cross-platform work at the expense of your users' CPU overhead/battery time/SSD life.

Spend time watching some of each year's WWDC talks and noting how much effort Apple engineers give to fine-tune certain APIs to enable app developers to optimize battery use, disk access, or graphics rendering. State-of the art stuff. And then your Electron app just ignores all of that.

weiming··on Webpack 4 course: What is Webpack?
Why not one package per line of code? One package per expression? Surely, someone will want to reuse var x = a + b.

   const {get} = require("underscore.get");

   get(obj, 'a[0].b', defaultValue);
If your language requires this [1] just to be able to subscript things without going bonkers, it may be time for a new language.

[1] https://github.com/NarHakobyan/underscore.get

weiming··on Webpack 4 course: What is Webpack?
Technically not if packages are just the misguided habit of "one package per function" seen in the Node ecosystem. Same amount of code, increased amount of complexity/meta-problems to deal with.
weiming··on Webpack 4 course: What is Webpack?
Phoenix is actually very agnostic as far as asset packaging goes, one can swap Brunch for Webpack or Parcel (or nothing) easily. So it's not to say those 300+ build-time-only node packages have anything to do with Phoenix (or Elixir, or Erlang's) ability.
weiming··on Webpack 4 course: What is Webpack?
My pet peeve is each one of these (Webpack, Parcel, Brunch, $your_favorite_alternative) involves a very bloated node_modules folder and so many dependencies that no sane person with have time to verify by hand.

A vanilla install of Phoenix with Brunch yields a node_modules with 388 packages. What are the odds of one of them becoming rogue due to a hack, and how would I know?

Add to this the overall (perhaps perceived) fragility of having to maintain a node project and fumbling with JavaScript. Node was a great new thing for server-side stuff, but whose idea was it to start using it for building every single command-line tool?

weiming··on Cost of hosting the Meta Discourse forum on AWS
What percent of the cost is spent on EC2 instances? Curious how much that can be reduced by using something more "lightweight" like Elixir or even Node. Basically, not needing to spin up thousands of OS processes. (Discourse uses Ruby.)
weiming··on U.S. Opposition to Breast-Feeding Resolution Stuns World Health Officials
Great question as to where to draw the line. Maybe "don't endanger the health of others" is a useful rule of thumb. I don't mind/care if people smoke in their own homes, but don't want them smoking near my children in a park.

To show another extreme, the recent California bill making it not a felony to give HIV to others, or to donate blood if you're HIV-positive is where it seems like the government is being too hands-off.

weiming··on U.S. Opposition to Breast-Feeding Resolution Stuns World Health Officials
I'm wondering how much "the State" should intervene in matters like this. Some families may choose to breast-feed, some won't. Should this decision be government organization-mandated?

If the administration's decision is based on "the government should stay out of your family's life," then I may see logic here.

weiming··on How Reddit plans to make money through advertising
Wouldn't your statement be equatable with "Churches are still around despite some crazy attacking an abortion clinic"?
weiming··on How Reddit plans to make money through advertising
I thought they did away with nearly most of those "famous" toxic subreddits.
weiming··on Taiwan’s Technology Secrets Come Under Assault from China
It's not the high information density on the home page (common in Asia) but the overall web design style and functionality. The site was developed over a decade ago and has many interesting bits. For example, the "show me the product I ordered" page brings you to a captured JPG screenshot of the product listing.

And product listing pages look something like this:

https://24h.pchome.com.tw/prod/DSAM2L-A9007SS3R

Contrast/compare with these main players in China:

http://www.jd.com/

http://tmall.com/

http://taobao.com/

weiming··on Taiwan’s Technology Secrets Come Under Assault from China
Taiwan may end up in a difficult spot in the coming decades unless they embrace production of distinctive (non-commoditized, like "iPhone" vs. "generic smartphone") consumer brands, or step up their efforts in software.

Its current strengths are in the stuff that exists inside the products we use every day. Think semiconductors and other hardware components. However, that know-how is being commoditized rapidly. China is catching up. Japanese multinationals like Sony are also eyeing the same, gradually stepping away from competing on low-margin consumer products.

For Taiwanese consumer electronics, you have brands like HTC, ASUS, Acer, or even a niche newcomer Gogoro (electric scooters). Sizeable, but not agile enough to take on players like Xiaomi.

And the software scene is unfortunately not very bustling despite the government's repeated efforts to pour money into startup hubs and coworking spaces. This is what Taiwan's #1 online shopping portal looks like [1]

[1] https://shopping.pchome.com.tw/

"Brain drain" to China and the US compounds some of these challenges. Very low salaries may be in part to blame here -- an engineer in Taiwan may make an equivalent of about $40k USD/year, while a home still costs as much as it does in Palo Alto.

weiming··on Why you should not use Google Cloud
Wouldn't that be Terraform (perfect for setting up cloud infrastructure) vs. Ansible (can do all, but more geared to provisioning servers you already have)?
weiming··on How to Clean Your Laptop
Nothing like watching someone eat a juicy, savory burger and then wipe their hands on their pants and continue typing. Something I see way too often.
weiming··on Microsoft Employees Pressure Leadership to Cancel ICE Contract
It seems like we are treating these children well (and I'm glad): "he seemed cheerful, “He shared how he was learning English, playing games and being well treated,” Ms. Ortiz said." [1]

However, I was appalled by the horrible "children in cages" photo taken during the Obama era. How was this allowed to happen? Wish I/we all had known about this, back then.

[1] https://www.nytimes.com/2018/06/17/us/immigration-deported-p...

weiming··on Microsoft Employees Pressure Leadership to Cancel ICE Contract
ELI5 what human rights is ICE violating in this case? Is due process not being followed?
← PreviousPage 4 of 6Next →