HNHacker News
TopNewBestAskShowJobs

johntran

54 karma · joined September 23, 2016

submissionscomments
johntran··on Facebook Is the AOL of 2021
Not sure why this is being downvoted. Deleting posts via scripts gave my Facebook a second life. I just use it for messenger and events. Highly recommended.
johntran··on Passwordless Logins with Yubikey
It's most likely easier to brute force a password than to break into someone's house. Would be easier to demand all credentials by gunpoint with that much effort.
johntran··on Things I Believe About Software Engineering
I took Calculus AB in high school and the teacher was notorious for giving students D's and F's because of his teaching style was poor and the exams were difficult. The only saving grace from that class was that you would be given a C if you scored a 4+ on the AP exam.

He still kept his job because majority of the class got 4+'s on those exams, despite at least 1/3 of his class getting D's and F's.

I wouldn't generalize editing letter grades as a way of "cheating the system". There's usually good intentions in every act.

johntran··on How to Be Successful
You are a wonderful person. Keep doing you :).
johntran··on Facebook destroys billions of dollars of shareholder value with open source
The author misses the point where Facebook was only able to attract talent to their company because of open source. FB currently employs the creators of Babel, Redux, and Inferno; whom otherwise would not be there without OSS to show their talents.
johntran··on Show HN: Optimage – Advanced image optimization tool
I currently use ImgBot[1] to optimize all my assets in my GitHub repo. Works well.

[1] https://github.com/marketplace/imgbot

johntran··on TypeScript is nearly half as popular as JavaScript for React apps
@jamesknelson

Also worth mentioning that TS npm download is greater than React consistently.

http://www.npmtrends.com/typescript-vs-react-vs-vue-vs-flow-...

I've used Flow in 2016 and getting it to work on code editors was a huge pain. Coworkers asked me weekly how to fix their environment to get it to work.

In 2017 I introduced TS to the codebase and never looked back. It just works™.

johntran··on Ask HN: Which books have helped you the most professionally?
Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems by Martin Kleppmann. Absolute best book on system design.
johntran··on Crash JavaScript and more
You're just adding an element to an array infinitely. Of course it'll crash because you'll run out of memory to support the array.

How is this a bug? What's the expected behavior?

johntran··on Type-safe GraphQL with OCaml
https://blog.acolyer.org/2017/09/19/to-type-or-not-to-type-q...

TL;DR: both Flow and TypeScript are pretty good, and conservatively either of them can prevent about 15% of the bugs that end up in committed code.

johntran··on Why Korean companies are forcing their workers to go by English names
Mayden China
johntran··on Relay Modern: Simpler, faster, more extensible
1. Could you two do a Reactiflux Q&A?

2. Are people on the Relay OSS team willing to answer StackOverflow-type questions on a certain time?

- I would want to be able to programmatically run relay-compiler. Every time I update my client-side code, webpack detects the change and then runs relay-compiler.

- And get help figure out some errors related to mutations I'm encountering. I wouldn't want to post these type of things as a GitHub issue because it could technically not be a bug.

johntran··on “A state of flow can be achieved by deep work”
Smoking sativas is a hidden performance hack. Easier to recover from cannabis than from drinking.
johntran··on Ask HN: What's the best computer science book you've read recently?
The Mythical Man-Month.

https://en.wikipedia.org/wiki/The_Mythical_Man-Month

It was written 40 years ago, but it is still relevant to today. Its so important to think about how to build effective engineering teams.

johntran··on How the Young Are Indoctrinated to Obey (2014)
https://ucannualwage.ucop.edu/wage/

There's literally 30 pages of UC Berkeley professors and admins making >$200k.

At UCI, the cost of living is less than Berkeley, but there are 650~ people making that much.

johntran··on Why we chose Vue.js over React
"I expect Vue to become a primary JS framework in 16-24 months if Evan You makes right steps, at least around backenders and smaller teams of frontenders."

When Vue.js gets a big enough community passionate enough to host their own conference, we'll be able to consider this as a possibility. :)

johntran··on Apollo Client 0.5
What are the pros and cons between Relay and Apollo?