I'm not that experienced with either yet but as far as I can tell Angular is just easier to get up and running without knowing exactly what modules you want to integrate into your project or without following one of a dozen different tutorials online that all diverge widely from each other. React is just a library for making components and things, whereas Angular has the components, a router, two-way data binding, etc. built in from the start and it offers an "opinionated" starting point for developing web apps.
I've been using it with angular-cli (which is excellent so far, currently using their beta webpack branch) mainly because I just wanted a good, easy bootstrap for a modern web app that didn't overload me with options and choices. I wanted something with "sane defaults" so to speak and Angular delivered. It's surprisingly intuitive and I like the way different functionality is organized in comparison to other frameworks I've used in the past.
Plus, it integrates heavenly with TypeScript and rxjs, both of which I am a very big fan of.
At the end of the day it's really just a personal preference. Right now React is slightly more mature but the way they organize their data in each component is different as is the general "flow" of data (by default anyway). I say give it a try and see how you feel about it! At the very least you might come away liking TypeScript if you aren't familiar with it already. You can write JSX with it as well these days.
Question: as a backend dev(C++/Java) trying to get into frontend stuff, how the fuck do you keep up with all this stuff? i'm still trying to master basic html/css/js and there's tons of stuff like SCSS and node and typescript, react etc that people keep talking about and a lot of it(forgive me if i'm wrong) seems to be syntactic sugar for the base languages like how the fuck do you keep up? would you define a good front end dev as someone who can build something from scratch without ever peeking at a manual/online help forum coz i can't even seem to set up routing without going through an hour long deep dive into someone's personal blog :(
like how the fuck do you keep up? would you define a good front end dev as someone who can build something from scratch without ever peeking at a manual/online help forum
Good god no! There's a lot of tools and it's completely unreasonable to have to know them all. I find though that having a few working projects on my system utilising a bunch of things I want to use often helps as a really fast reference. So as with anything, practise!
as someone who comes from companies where "google it programmers" are sneered at, front end dev scares me. am trying to practice and lose my attitude of "you have to know it all before you try something"
Honestly that just sounds like a really shit culture. Sure, if you're a stack overflow ctrl+v programmer but if googling a problem quickly leads to a solution or a link to the documentation where something is explained, it's kinda fucking stupid to discourage it.
For starters, I just want to say that I love Stack Overflow. It has helped me solve issues on a number of occasions. That being said, there are a lot of programmers out there that just copy/paste the accepted answer from SO without understanding how or why it works. Not only does this not help them become a better programmer, I have also seen it cause issues because the top answer is not necessarily the correct answer. If you are going to SO to find the solution to a problem, please at least take the time to understand what the solution is doing before blindly copy/pasting it.
Tell me about it. I've been working in the frontend world for a few years now and sometimes it makes me want to throw my keyboard in the air, punch my monitor, push my desk over, head out to the countryside and live in a cabin in the woods.
You're absolutely right: most stuff is fluff that makes life "easier". I have to remind myself that 90% of the confusion in the frontend world is because of tooling. I don't need gulp, I don't need sass, I don't need frameworks. They just provide a means to an end: the choices I make in building a web application today probably won't be the same choices I will make next year.
Add in stuff like continuous integration, testing frameworks, deployment/orchestration tools, and it all gets too much. Ironically, once the tooling is taken out of the picture, things look decidedly easier.
Part of the problem is looking at other people's code and trying to follow what they were doing. I remember my face contorting into a tight frown when I'd be following a tutorial, head over to the repo and wonder why there were twelve different folders and a load of files with extensions I didn't recognise. I'm supposed to building a navbar, what's this .jscsrc thing?
Good advice I received early on was to focus on learning pure JS, not on the frameworks. Angular 1 was particularly bad because of its obtrusive syntax, it almost felt I was writing code in another language. I understand that 2 is much better.
More good advice I received was to pick a framework based on your best guess at the time and try to stick with it, don't fly around trying to learn them all. Each one has strengths and weaknesses, it's better to know all the nooks and crannies of one than to know broad strokes about a them all.
As regards keeping up with everything, my advice is don't bother. Learn JS, work out what tools work for you, and just keep up with the honoured list of components that make up your development environment.
If it's any consolation, I don't have a clue what I'm doing, and most people I talk to don't have a clue either. You C++ guys are a little scary because you seem to have it all worked out with your fancy ISO standards and working committee.
am not opinionated in my choice of backends, just fell into them through opinionated professors/tech leads and lookin for a change but if i am right in my learning of web development so far, the process is
Blog extensively about your learnings of a particular framework
Make your own framework and hoodwink people into using it, thus guaranteeing your employability as "he's THAT guy"
Never make anything worthwhile in public again coz it's not worth the hassle
I wouldn't put Typescript in the same bag as all those frameworks. Typescript is just a way to make working with Javascript not a completely horrible experience.
Lots of reading, mostly in my own time. Sometimes during work if I have some spare time. Also experimentation on my own little side projects to try out new things. Most of them go nowhere. You can't know everything, so I just dabble in things which interest me, or are areas/subjects relevant to my work.
I am using React every day for work, but damn me if I had to set up a project from scratch. I would definitely have to look up documentation, simply because starting from scratch isn't something I have to do very often. I don't think that prevents me from being able to be a "good dev".
like how the fuck do you keep up? would you define a good front end dev as someone who can build something from scratch
That's not how it works in web development, frontend or backend. Knowing how to build from scratch is good, but in real world, web development is a really dynamic process, you gotta know how to use different tools to go fast and minimise the cost of your product, the trick is to know the right set tools, not all of them obviously, we're not reinventing the wheel here, where using it to build cars that people will use in their day to day life..
I am a backend dev and from 2013 to 2014 I and 4 others built a pretty large angular app with the java backend written by another team.
It ended up being a huge advantage that we approached it as backend developers. We didn't write our first feature until we had a complete build and deploy pipeline created in grunt (which didnt take long) and when we did begin to code our knowledge of backend patterns were susprisingly transferrable to angulars architecture.
In the end when I compared our project to one that was built by front end developers, I could tell that their lack of experience building large backend applications caused them to completely misuse or omit maybe 50% of the things that made angular/jasmine/grunt so cool.
So just jump into it with a solid project in mind and I think your background will allow you to become bery capable very quickly.
Slightly is a bit understated :-). React is as mature as it can get. Angular 2 is unfortunately not production ready, see my post. I've followed the RC comedy and the ecosystem. It's not there yet. I'd wait for a couple of month to let at least the tooling and styling options mature.
51
u/Sloshy42 Sep 15 '16 edited Sep 15 '16
I'm not that experienced with either yet but as far as I can tell Angular is just easier to get up and running without knowing exactly what modules you want to integrate into your project or without following one of a dozen different tutorials online that all diverge widely from each other. React is just a library for making components and things, whereas Angular has the components, a router, two-way data binding, etc. built in from the start and it offers an "opinionated" starting point for developing web apps.
I've been using it with angular-cli (which is excellent so far, currently using their beta webpack branch) mainly because I just wanted a good, easy bootstrap for a modern web app that didn't overload me with options and choices. I wanted something with "sane defaults" so to speak and Angular delivered. It's surprisingly intuitive and I like the way different functionality is organized in comparison to other frameworks I've used in the past.
Plus, it integrates heavenly with TypeScript and rxjs, both of which I am a very big fan of.
At the end of the day it's really just a personal preference. Right now React is slightly more mature but the way they organize their data in each component is different as is the general "flow" of data (by default anyway). I say give it a try and see how you feel about it! At the very least you might come away liking TypeScript if you aren't familiar with it already. You can write JSX with it as well these days.
EDIT: some details here and there