HNHacker News
TopNewBestAskShowJobs

yblu

1,063 karma · joined March 20, 2014

submissionscomments
yblu··on Focalboard – a self-hosted alternative to Trello, Notion, and Asana
Both these apps contain a few source files and all they do seem to be rendering and handling a webview. The "real" app seems to be this: https://github.com/mattermost/focalboard/tree/main/webapp.
yblu··on Almost 40% of U.S. Consumers Trust Online Reviews Less Than They Did 5 Years Ago
Dealing with fake/fraudulent reviews is hard enough, this is probably harder: manufacturers incentivizes real customers to write good reviews & remove bad reviews. I recently bought a few highly-rated gadgets from Amazon. One of them came with a leaflet saying they would send $50 gift card (the product costs $200) if I review and send them the screenshot. For another product, after I posted a 3-star review, which was not at all negative, I've been receiving a dozen or so emails from different addresses with varying subjects/contents but all asking me to remove that review in exchange for a gift card. I could only imagine how much harder they would go after the 1-star reviews...
yblu··on Pricing a SaaS product (2019)
This is a good point. I never thought of that but it's quite probable. I wonder how to best deal with this. Maybe free forever for hobby projects and only charge when people use the software in their money-making business.
yblu··on Pricing a SaaS product (2019)
In my case, I charge $4/month for a developer tool and every week or so I would receive a survey response (that people do after uninstalling it) calling me names for charging money. Apparently there are people who want the tool enough to complete the survey and curse the creator but not enough to pay $4/month for it. So for me, pricing is really hard.
yblu··on Parents are 5X as Worried about Infection and School than Work and Paying Bills
We absolutely can. We could be wrong and dead and we could be wrong and not dead. I'll pick the latter every time.
yblu··on I am a model and I know that artificial intelligence will take my job
True. Although with the increasing rate of changes, there would be a point where people can't re-skill themselves faster than their jobs are replaced by AI or software. Imagine change to a completely different job every 5 years. Hopefully societies are mostly well-off to give people food while they are busy learning another craft that hasn't been made obsolete.
yblu··on Instacart announces new Covid-19 policies and plans to hire 250k more shoppers
I don't use Fresh, but tipping in Prime Now and Instacart is optional. Although I've been doubling my usual tip around this time. These shoppers are taking a risk doing this job.
yblu··on California governor issues statewide 'stay at home' order
So, no country should do anything? Many Asia countries have shown they can contain the virus. Every country should at least try to do that.
yblu··on Ask HN: How Would You or Did Convince Your Boss That You Can Work Remote?
Yes, but if they don't pay enough, they won't be able to hire those people to start with. On the flip side, considering if they starting hiring people from other countries and reducing your salary because you choose to live in a high cost country.
yblu··on Airbus will stop building the A380 in 2021
> I think aviation needs to invest again in supersonic flight

That's what they're doing: https://www.theverge.com/2018/11/13/18089300/supersonic-jet-...

yblu··on When People Ate People, a Strange Disease Emerged
All things equal.

Specie A (with this disease) stop cannibalizing after seeing the outcome, better chance of survival.

Specie B (without this disease) eat themselves to the last person... Lower chance of survival as a specie.

Nature "cares" by generating lots of options, then let the fittest to survive. So while nature doesn't intend or plan for a specie to survive, the outcome is no different from if it did. I believe the OP means "care" in this sense.

yblu··on Thirteen Years of Bad Game Code
Wow, that's pretty subtle. Thanks for explaining.
yblu··on Thirteen Years of Bad Game Code
This `for` loop looks particularly curious to me:

  for (int i = this.bindings.Count - 1; i >= 0; i = Math.Min(this.bindings.Count - 1, i - 1))
Why isn't the last expression a normal i--?
yblu··on Going native
> The view process is very limited, just standard web APIs.

Nitpicking here, but the view (rendering) process in Electron can actually use the Node API [1]. The difference in API access privilege between the two types of process is in what Electron API (not Node API) they can use. For example, main process can use native GUI API but renderers can't and must IPC to main if they need to, say, show a system dialog.

[1] https://github.com/electron/electron/blob/master/docs/glossa...

yblu··on Rents in Megacities Can't Go Up Forever
I first read about this connection in Paul Graham's essay "How to be Silicon Valley" [1]

[1]: http://www.paulgraham.com/siliconvalley.html

yblu··on Ask HN: Good public speaking course/resources?
Also check out this book "TED Talks: The Official TED Guide to Public Speaking" [1], written by the owner of TED himself. I read many books on public speaking and this is by far the best. I've been giving it as gift to friends who do public speaking of any kind.

[1] https://www.amazon.com/TED-Talks-Official-Public-Speaking/dp...

yblu··on Ask HN: Switching from developer to project manager. What to keep in mind?
I did the switch. The most important thing is reading these 2 books:

* Peopleware

* The Mythical Man-Month

I can't think of better books on managing software projects and software developers.

yblu··on Ask HN: Books you read in 2016?
I read a few dozens each year. These are the top in my 2016 list.

* Zero to One: Notes on Startups, or How to Build the Future. If you can read only one book on startup this year, read this book.

* Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future.

* Running Lean: Iterate from Plan A to a Plan That Works.

* Alibaba's World: How a Remarkable Chinese Company is Changing the Face of Global Business.

* Start-up Nation: The Story of Israel's Economic Miracle.

* Disrupted: My Misadventure in the Start-Up Bubble. You will like or hate this book a lot, but it's surely an interesting read and perspective.

* Learned Optimism: How to Change Your Mind and Your Life. Good book that gives you a framework to become more optimistic.

* Sapiens: A Brief History of Humankind.

* The Three-Body Problem Trilogy. Great, great sci-fi.

* Understanding ECMAScript 6. Best ES6 reference book.

* Node.js Design Patterns. Best Node book for intermediate/advanced developers.

* CSS Secrets: Better Solutions to Everyday Web Design Problems. Great, great book on advanced CSS tips & tricks.

* Mastering Selenium WebDriver. This is probably the only good book on Selenium among so many bad books on this topic.

* Grokking Algorithms: An illustrated guide for programmers and other curious people. This is a good book but might be too basic for many people. Recommended for those who wants to quickly refresh their algorithms knowledge.

yblu··on Amazon drivers pushed to the limit as holiday deliveries reach a frenzy
Drivers for Prime Now do get tips. Source: I always tip Prime Now drivers (via the app).
yblu··on Ask HN: What simple tools or products are you most proud of making?
One weekend, to scratch my own long-time itch, I coded up a simple browser extension to display GitHub repo code in tree view [1]. It now also supports GitLab, works on Chrome/Firefox/Opera/Safari and has almost 90K users.

[1]: https://chrome.google.com/webstore/detail/octotree/bkhaagjah...

yblu··on Apple Unveils the Apple Watch Series 2
It's a measure of depth. (Source: I watched the live streaming.)
yblu··on Learn Node.js: A free interactive course for Node beginners
> Now I run into situations where promises cascade up from a few async calls and affect every API built on top of them

Can you elaborate what you meant by that?

yblu··on Stockfighter is live
Does anyone know what tool is used to create the stockfighter API doc [1]? Looks really nice.

[1] https://starfighter.readme.io/v1.0/docs

yblu··on React JS Best Practices
I guess what s/he meant was having something like this in the store:

  handleComment(comment) { 
    if (comment === '') this.dispatch('comment-error', 'empty')
    else svc.send(comment)
            .then(() => this.dispatch('comment-success')
            .catch(err => this.dispatch('comment-error', err))
  }
The view/controller (or whatever it's called in React) will then listen to the events and set its state accordingly so that the UI can be re-rendered.

It does look quite complicated compared with typical error handling code. Not sure if I misunderstood something or whether this additional layer of message dispatching is worthwhile in most apps.

yblu··on React JS Best Practices
I wonder how everyone takes care of error handling in Flummox (or Flux in general)? Would you also trigger an action, then wait for the store to set some sort of error state?

Basically, how would you migrate the following code to Flux:

  click() { doAction().catch(err => showModal(err)) }
yblu··on Replace CoffeeScript with ES6
>> which is solved in ES6 by introducing lexical scoping I thought JS has always had lexical scoping. What's new in ES6 allowing variables to have block scope.
yblu··on Netflix Likes React
Or use fastdom[1], which batches reads and writes to reduce layout thrashing.

[1]: https://github.com/wilsonpage/fastdom

yblu··on Walkway.js
This article by Jake Archibald does a good job of explaining the underlying mechanism used by libraries such as walkway.js: http://jakearchibald.com/2013/animated-line-drawing-svg/.
yblu··on StackOverflow Update: 560M Pageviews a Month, 25 Servers
Great info, Nick. Thanks for sharing.
yblu··on StackOverflow Update: 560M Pageviews a Month, 25 Servers
> Redis has 2 slaves, SQL has 2 replicas, tag engine has 3 nodes, elastic has 3 nodes - any other service has high availability as well (and exists in both data centers)

Does this mean the 2 Redis slaves, 2 SQL replicates etc. are in a secondary data center?

← PreviousPage 2 of 4Next →