HNHacker News
TopNewBestAskShowJobs

gordonzhu

284 karma · joined May 2, 2011

founder @ watchandcode.com
submissionscomments
gordonzhu··on Berkshire Hathaway Announces Leadership Appointments [pdf]
Just a guess, but Buffett would often host undergrad and grad students at his home.

https://www.nasdaq.com/articles/warren-buffett-hosts-15-whar...

gordonzhu··on What should I look for in my first SWE job?
I was going to say this as well. If you haven't done competitive interviews, it's easy to underestimate how much prep / skill is required.
gordonzhu··on Ask HN: Do you have a YouTube channel?
I've been making algorithms videos that highlight how one could discover various solutions from first principles.

Example: https://youtu.be/54yUPn3M0ds?si=IcKpUW8NO1rqiO4S

I find it really annoying when people just present fully-formed solutions. In my opinion, this misses the whole point of problem-solving.

gordonzhu··on Ask HN: At what age did you become interested in coding?
21

I was interning at a small startup and made some financial models in Excel (using functions like index and match together).

At the time, I told a programmer at the company that I wanted to learn programming. He looked at my work and told me that I was already doing it. I didn't believe him because I didn't think it was "real coding". I thought he was just being nice.

My first "real coding" was a year later. I modified a few of the example apps from "Head First PHP & MySQL" (https://www.oreilly.com/library/view/head-first-php/97805961...).

gordonzhu··on I'm about to give up on AngularJS, I'm going to try React
Did you try reading the ui-router docs?

https://github.com/angular-ui/ui-router/blob/master/README.m...

The "Nested States & Views" section of the README links to a full working demo on Plunker that does exactly what you want:

http://plnkr.co/edit/u18KQc?p=preview

gordonzhu··on The Single Piece of JavaScript on HN
Thanks for the perspective.

This is why I encourage all developers to take some time to teach new people. The "everyone knows this obviously" attitude goes away very quickly if you start doing this.

The aim of the video was to make it accessible to just about everybody. So if you know this stuff you can watch the first minute and stop the video and get value out of it. On the other hand, if you're a beginner and you just did Codecademy, you can watch it through and follow it too.

gordonzhu··on The Single Piece of JavaScript on HN
Nowhere did I tell people to write an entire app in the style of hide and vote like you're implying.

In my comparisons I mention a lot of choices people might make, like Angular vs. Ember vs. React that are ultimately meaningless to the success of your product. I think this is what's resonating with a lot of people.

gordonzhu··on The Single Piece of JavaScript on HN
[I made the video]

I don't think this is ironic at all. When I mentioned "framework of the week hype" in my initial comment (https://news.ycombinator.com/item?id=11308043), I was thinking specifically about how people are handling the transition from Angular 1 to 2. I am in no way advocating using plain JavaScript to build your app. I even mentioned in the video that I rarely work with plain JavaScript.

There's a lot of distraction around Angular 2 for both existing and new developers, when it's pretty clear to me that Angular 1.9.x will pretty much look like Angular 2. If you read the release notes, this is very clear. They said the the primary theme for the 1.5 release was improving the upgrade path to Angular 2.

http://angularjs.blogspot.com/2016/02/angular-150-ennoblemen...

What this means is that keeping up with the Angular 1 release cycle will gradually transition you to Angular 2. But everyone in the community seems to think this is boring and wants to blow up their apps and go to Angular 2 right away.

This is the kind of thinking that I wish we'd see less of. Rushing to 2 when it's still in beta makes no sense from a business perspective. It only makes sense from a "I like to tinker with the new thing and try new stuff because it's fun" perspective. Some people will say it's a performance issue (since Angular 2 is better in that respect), but for the vast majority of apps that want to upgrade to 2 now, the improvements won't be noticeable.

gordonzhu··on The Single Piece of JavaScript on HN
When you try to vote it will ask you to log in.
gordonzhu··on The Single Piece of JavaScript on HN
YES! totally agree

For a subset of us, framework authors, open source contributors, etc. It's very useful to keep up to date on the latest trends.

For example, the Angular team has borrowed techniques from React. It helps for them to keep up with things.

For people like me though, let's be honest. I don't need to do the latest thing.

gordonzhu··on The Single Piece of JavaScript on HN
The video mentions this was a dummy account created just for this video.
gordonzhu··on The Single Piece of JavaScript on HN
Without JS, return false from the vote function wouldn't happen, so I guess clicking upvote would follow node.href, which would send the vote to the server. It would work anyway, there would just be a redirect that would trigger a page refresh. Pretty cool. Just tried it out and confirmed.
gordonzhu··on The Single Piece of JavaScript on HN
What's most fascinating to me about this isn't the simplicity, it's that this code has lived for so long with almost no changes.

It's a great counter-example to all the recent articles about JavaScript fatigue. It's good for us to see real examples of sites that aren't caught up in the framework of the week hype.

At the end of the day we're trying to make stuff that works. ES5 vs ES6, React vs Angular vs. Ember vs. Aurelia, Angular 1 vs Angular 2, even server rendered templates vs. single page apps - it all matters a lot less than we think.

gordonzhu··on The master's thesis that led to the Karma Test Runner for JavaScript
Here are clickable links since I couldn't get them to work in the text post.

Download to the thesis as a PDF: https://github.com/karma-runner/karma/raw/master/thesis.pdf

The Karma site: https://karma-runner.github.io/0.13/index.html

gordonzhu··on Firebase Foundations for AngularJS
I just posted the first four videos to a new course I’m working on. It’s called Firebase Foundations.

A lot of my Angular students loved using Firebase as they went through my Angular Course, so I thought it would be cool to extract just the Firebase content out into its own course so that more people can experience what it’s like to use Firebase with AngularJS.

This course is intended for people that have at least some familiarity with Angular and want to take advantage of Firebase’s authentication, database, security, and hosting features.

gordonzhu··on Ask HN: Is there a good tour of the modern JavaScript landscape
I created a video course that addresses the exact problem you're describing and shows you how to build a full multi-page app backed by a database (but it's for Angular rather than React).

http://www.angularcourse.com

When I was learning I saw the same thing you're still seeing — most tutorials only explain high-level concepts and when they do show code examples, they are tiny, arbitrary, and unrealistic. So when I quit my job to teach web development, I wanted to make sure I didn't do the same thing as everyone else.

gordonzhu··on Show HN: CodeUpStart – Learn Python/Flask by Cloning Kickstarter
Based on code4startup this is a copy. https://twitter.com/Code4Startup/status/678340473614761984

What's weird is the founder/ceo of codeupstart used to work for code4startup.

gordonzhu··on Ask HN: What advice do you have for non-technical people interested in tech?
I'm working on a draft blog post that talks about how I went from undergrad business school to tech (I'm currently the founder of watchandcode.com).

Would be happy to share it with you and follow up with a chat about your situation. Email me at gordon@watchandcode.com.

gordonzhu··on React.js Introduction for People Who Know Just Enough JQuery
The concept behind directives like ng-click is actually pretty simple underneath.

The Angular parser will go through the elements in the DOM and look for attributes it knows about like ng-click. When it finds ng-click, it will run the expression "myEvent()" on the controller's $scope.

gordonzhu··on Malevolent Ventures – Request for Startups
iObject actually does not sound malevolent at all. Quite the opposite actually.

Reminds me of http://somebodyapp.com/

gordonzhu··on How to Become a Great JavaScript Developer
The Annotated Version of Eloquent JS (this was mentioned in the article) is similar except the annotations are for a book rather than a library.

https://watchandcode.com/courses/eloquent-javascript-the-ann...

gordonzhu··on Ask HN: Those making $1,000+/month on side projects – what did you make?
I should mention that this is a side project that became a main project. It currently makes several thousand a month on a consistent basis.
gordonzhu··on Ask HN: Those making $1,000+/month on side projects – what did you make?
Oh wow small world. That's awesome.

Email me at gordon[at]watchandcode[dot]com. Would love to get your feedback on what I can improve and what other things you'd like to learn!

BTW This is the fourth time today someone has asked if I'm doing a React course. I am thinking about it :)

gordonzhu··on Ask HN: Those making $1,000+/month on side projects – what did you make?
Click embed under a comment and it will generate embed code for the comment.

Example: http://www.reddit.com/r/angularjs/comments/2f7ziz/i_quit_my_...

gordonzhu··on Ask HN: Those making $1,000+/month on side projects – what did you make?
I made a video course that teaches you how to build apps with AngularJS.

http://angularcourse.com

gordonzhu··on Question for Sam Altman: Which College should I go to?
If medical school is something you're interested in (I think this is a safe assumption), I would choose Rice-Baylor's BSMD program.

The reason is that many pre-med students (whether they will admit it or not) took a watered-down course load and chose easy majors so that they could maintain a high GPA, study for the MCAT, and do a bunch of bullshit to impress medical schools. In a lot of ways, that ruined their college experience. Always wondering how things you do will affect med school admissions is a terrible way to go through college. It narrows your options and is the opposite of freedom.

Now let's say that you choose Rice-Baylor instead. You don't have to optimize for med school admissions because you're already in. Now you can take hard classes and do any major without fear of having a competitive GPA for med school. You can do internships that have nothing to do with medicine. Basically, you can do all the things a pre-med student (or you at Columbia) would not do.

This is the freedom option. It's the option I would choose if I were in your position. Also Rice and Baylor are great schools. You can't lose here.

With your freedom, spend your summers in Silicon Valley. If you got into BSMD I assume you're pretty smart. It will not be hard to convince people to hire you.

I know this is a big decision, if you want to chat more, email me at gordonmzhu[at]gmail[dot]com.

gordonzhu··on Learn JavaScript for complete beginners?
Thank you for saying this.

For a complete beginner the book is total nonsense and worse than overwhelming. The only plausible outcome is frustration and a higher likelihood the person will give up learning.

People need to please stop recommending JS The Good Parts to beginners. Please stop.

Beginners need an intro to the language and often an intro to programming concepts. What are they supposed to do with chapters on closure and currying?

When you think about recommending it again to a beginner, please stop and think about what a beginner knows, and what makes sense for them to learn as a next step.

gordonzhu··on Eloquent JavaScript, The Annotated Version
Thanks for the suggestions everyone. Genius definitely looks interesting.

First, really sorry if the comments still aren’t showing up. I really thought the doc would be working by now, but it isn’t.

The plan now is to wait a bit longer, and then tomorrow if there’s still no luck with Google Docs, I’m going to move the project to another service.

My gut is telling me to use medium.com for this. Medium won’t die under heavy lead, it’s well designed, and it also has some great commenting features.

gordonzhu··on Eloquent JavaScript, The Annotated Version
So if I add "/edit" to the link that you provided, the doc seems fine.

https://docs.google.com/presentation/d/1fE0PW1FMlYU9Xhig_QIG...

I wonder if the bug you're seeing is something that is specific for Google slides in presentation mode.

gordonzhu··on Eloquent JavaScript, The Annotated Version
Thanks for pointing this out. I've added Marijn Haverbeke's name to the top of the doc and also linked to the license.
Page 1 of 2Next →