Live data from Hacker News

Angular 2 Final Released

angular.io

401–410 of 452 posts

Re: Angular 2 Final Released

#401
post #291

How many hundreds of npm dependencies in the default install? Is Leftpad included?

Why does it matter?

http://www.haneycodes.net/npm-left-pad-have-we-forgotten-how...

TL;DR: Left Pad is a NPM package that was removed by it's author in protest. Apparently, a ton of other packages broke as it was a major dependency across the NPM ecosystem.

Re: Angular 2 Final Released

#402

Earlier quoted context omitted.

"Why would you consider JS to be a terrible language? " JS is kind of a 'bad language' because: 1) It's missing some pretty important things. Try to determine if a value is a number. Seriously. Look into that mess. Or anything else. Doing simple type-checking is crazy, and we basically are resigned to 'best practices' - which is crazy. 2) Prototype chaining is a neat idea and has some merits - but in reality it makes…

1) Isn't it just (!isNaN(num) && isFinite(num))? I know that's pretty far from intuitive, but it's not as bad as you made it sound. That being said, i'd love an `isNumber` function at some point... 2) I felt the same way for a while, but recently I was working on something where I ended up really "abusing" the prototype system, and when you actually spend the time to learn it, it's not that bad! It's different, that'…

[deleted]

Re: Angular 2 Final Released

#403

Earlier quoted context omitted.

you can refactor those nested observables using mergeMap: this._settingsService.settings$.mergeMap(settings => { this.settings = settings; return this._weatherService.getLatestWeather(this._location, settings); }) .subscribe( weather => this.weather = weather, error => this.errorMessage = error );

Thanks. Learning observables was definitely a little challenging, so I appreciate the insight.

Thanks you for sharing such a beautiful weather app.

Re: Angular 2 Final Released

#404
post #367

Earlier quoted context omitted.

What's with the "serious question", "genuine question", etc? Mostly I see this mannerism prefacing questions that could not reasonably be taken as a joke or provocation. Serious question: are people so touchy these days that you have to assure them that you are not being hostile before even saying something?

Someone having a different point of view online isn't that radical of a concept. Especially considering how easy it is to misinterpret the tone of someone's remark online. It just shows you're going out of your way to clarify your interested in a genuine discussion.

Fair enough.

For me it has the opposite effect, it makes everything sound less genuine. But hey, I'm just some guy, if people like it...

I find unnecessary clichéd phrases very annoying (e.g "going forward"). Maybe I'm alone in this. It's not because of pretentiousness or language puritanism, it's that it makes me feel that I'm reading something created by corporate PR or some other soulless entity with ulterior motives. My rule of thumb: if you have nothing creative to add, just be simple.

Re: Angular 2 Final Released

#405
I wonder what "Final" even means in this context. Google has already admitted that the Angular team uses the term "Release Candidate" to mean something completely different to how every other software company in the universe understands it. (Listen to Adventures in Angular podcast, episode 105.)

A very rocky road ahead, methinks.

Re: Angular 2 Final Released

#406

Question for Angular devs: Why would I use Angular 2 and risk being left in the wind like Google did with Angular 1?

Why would you use any open source codebase and risk being left in the wind by the maintainers of said codebase?

Faith. Google has already broken that faith with 1.0, why do I renew the faith?

Re: Angular 2 Final Released

#408
post #381

Earlier quoted context omitted.

Yes, the mouse + GUI is a lot more usable to me than typing in a CLI. The command line is from when we had terminals. And worse still, yes, that's the case for most people. Most people prefer using mice + GUIs. Why are we going back in time? Why can't we have tools that work as both GUIs and CLIs? CLIs are great for automation (and keyboard obsessed users). GUIs are great for discoverability and making it obvious to…

I'd disagree here. All the most productive developers I know make heavy usage of the CLI, and some of them, including me, are even developing in it with tools like vim or Emacs.

Self-selecting a bit there... Productive developer!

Have you considered that part of the problem is the stack you use causes other people to be unproductive because it's not clear what all the tools you're using are doing?

Re: Angular 2 Final Released

#409

Earlier quoted context omitted.

That's a general javascript problem though as soon as you involve any third party library. Something funky going wrong when jQuery's involved? Good luck stepping through that.

React actually does a fabulous job of spitting out very readable error messages. It removes so many debug cycles from development that it alone is worth switching.

Anything that 'spits out' readable error messages in javascript hijacks the error stack.

Which is doubly shit.

Re: Angular 2 Final Released

#410
post #196

Earlier quoted context omitted.

>The HTML template in Angular 2 is stored in a string. This has several disadvantages This is patently false. Just use "templateUrl" instead of "template". This allows you to specify a file instead. This is the way I always did it in angular 1 as well. I don't really understand why style guides & general practice recommend embedding html in the javascript though. It's horrible.

If you're using TypeScript + templateUrl, you won't get static checking of templates. With React + TypeScript, you will.

This is literally the only thing in our Angular2 setup that I'm really missing. Besides that, I've really enjoyed working with it (by way of Ionic 2)
Post reply on HN