Re:Ask HN: Is web programming a series of hacks on hacks?
by jinfiesto on Monday September 12, 2016 @09:58AM
(#12479689)
I work on a large (500000+ lines) of Angular daily. Maybe this represents some sort of Stockholm syndrome, but it's really not that bad?
[ Parent
| on HN ]
Re:Ask HN: Is web programming a series of hacks on hacks?
by dcherman on Monday September 12, 2016 @12:07PM
(#12480882)
Similar situation here, but it depends on your level of experience as well. Can you structure an AngularJS app so that it's (relatively) sane? Absolutely. It's also very easy to make a mess of things so that it's hard to reason about control flow; frameworks that are doing a better job of embracing unidirectional dataflow definitely help with this, but I don't blame Angular as it predates the wide adoption of that as a practice.
It's also more difficult to follow practices like quickly rendering above the fold content; when you use the normal practice of writing re-usable directives, you end up needing to wait until at least Angular and any dependencies are loaded prior to being able to render any content at all. Server side rendering of initial content helps to alleviate that quite a bit since even though the content may not be interactive until your app bootstraps, the perceived load time is much better as the user has something to look at.
Re:Ask HN: Is web programming a series of hacks on hacks?
by jinfiesto on Tuesday September 13, 2016 @01:25PM
(#12490380)
Oh totally agree. There are some really nasty bugs we've had to deal with because of the lack of strictly controlled data flow. Still not all that bad.
Re:Ask HN: Is web programming a series of hacks on hacks?
by clentaminator on Monday September 12, 2016 @11:13AM
(#12480368)
Over half a million lines of Angular? May I ask what the application is and how that's broken down language-wise?
Re:Ask HN: Is web programming a series of hacks on hacks?
by jinfiesto on Tuesday September 13, 2016 @01:27PM
(#12490411)
Angular front-end, C# "middleware" to Java services layer. I was actually guessing when I tossed off 500k. I went and looked and it's actually closer to 250. Still pretty big though.
Re:Ask HN: Is web programming a series of hacks on hacks?
by alexbanks on Monday September 12, 2016 @01:34PM
(#12481765)
Have you ever worked with a JS framework that wasn't angular? Ember, React, Vue, etc?
Re:Ask HN: Is web programming a series of hacks on hacks?
by jinfiesto on Tuesday September 13, 2016 @01:29PM
(#12490428)
I've used react personally and like it rather well. I think it's much better than Angular, but I still don't think that Angular represents the 9th circle of hell, as seems to be implied above.