News for hackers. Stuff that matters.

gordonzhu

Re:Berkshire Hathaway Announces Leadership Appointments [pdf] on Monday December 08, 2025 @11:51AM (#46194560)
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...

Re:What should I look for in my first SWE job? on Friday December 20, 2024 @06:47PM (#42476281)
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.
Re:Ask HN: Do you have a YouTube channel? on Wednesday October 02, 2024 @06:11PM (#41725429)
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.

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...).

Re:I'm about to give up on AngularJS, I'm going to try React on Saturday August 27, 2016 @02:59AM (#12371341)
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

Re:The Single Piece of JavaScript on HN on Friday March 18, 2016 @11:49AM (#11312554)
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.

Re:The Single Piece of JavaScript on HN on Friday March 18, 2016 @11:34AM (#11312432)
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.

Re:The Single Piece of JavaScript on HN on Friday March 18, 2016 @03:16AM (#11310375)
[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.

Re:The Single Piece of JavaScript on HN on Thursday March 17, 2016 @06:47PM (#11308254)
When you try to vote it will ask you to log in.
Re:The Single Piece of JavaScript on HN on Thursday March 17, 2016 @06:33PM (#11308177)
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.

Re:The Single Piece of JavaScript on HN on Thursday March 17, 2016 @06:31PM (#11308161)
The video mentions this was a dummy account created just for this video.
Re:The Single Piece of JavaScript on HN on Thursday March 17, 2016 @06:25PM (#11308114)
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.
Re:The Single Piece of JavaScript on HN on Thursday March 17, 2016 @06:13PM (#11308043)
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.

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

The master's thesis that led to the Karma Test Runner for JavaScript

Came across this as I was going through Karma's documentation. It's Vojta's thesis that led to the development of Karma.https://github.com/karma-runner/karma/raw/master/thesis.pdfIt's an interesting way to learn more about testing and the ideas/technology behind a tool that many of us use everyday.You can read more about Karma here:https://karma-runner.github.io/0.13/index.html

( Read More... | 2 comments | 3 points | on HN )
Re:Firebase Foundations for AngularJS on Tuesday February 16, 2016 @12:11AM (#11108007)
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.

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.

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.

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 [email protected].

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.

Re:Malevolent Ventures – Request for Startups on Saturday June 20, 2015 @10:10AM (#9749998)
iObject actually does not sound malevolent at all. Quite the opposite actually.

Reminds me of http://somebodyapp.com/

Re:How to Become a Great JavaScript Developer on Thursday June 18, 2015 @01:50AM (#9737022)
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...

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.
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 :)

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_...

I made a video course that teaches you how to build apps with AngularJS.

http://angularcourse.com

Re:Question for Sam Altman: Which College should I go to? on Wednesday May 06, 2015 @03:31PM (#9501233)
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.

Re:Learn JavaScript for complete beginners? on Monday March 23, 2015 @08:32PM (#9254217)
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.

Older »