r/angularjs • • Jun 25 '18

What is Mean Stack

Post image
52 Upvotes

42 comments sorted by

72

u/Hakim_Bey Jun 25 '18

Where can we use it ?

Somewhere around 2013

17

u/cyanydeez Jun 25 '18

Before data was discovered to be relational

1

u/Hakim_Bey Jun 26 '18

Who would have thought !

1

u/calsosta Jun 26 '18

You mean before we FORCED data to be relational.

2

u/cyanydeez Jun 26 '18

Yeah, before now, we just purposely separated data from it's parents.

1

u/calsosta Jun 26 '18

Foreign keys stole my scheduled job :(

1

u/datwebzguy Jun 25 '18

What would you suggest for today then ?

Im interested in sloting in React instead of Angular

7

u/Hakim_Bey Jun 26 '18

Well first i don't understand why someone would advise beginners to use MongoDB. NoSQL is for people who know their SQL so well that they can abstract around it. Learn your relational shit, kids, the life you save may be your own.

Then, AngularJS is pretty outdated (if not unmaintained). I don't have a beef in the React/Vue.js wars. I personally prefer Vue but i imagine it's for the wrong reasons. Even Angular 2+ probably has its advantages but i'm not proficient in it.

As for Node & Express, nothing to say, i love them & use them daily.

-4

u/mjonat Jun 25 '18

I'm by no means an expert on either react or angular but im currently learning vue.js as I'm told it combines the best of both worlds between the two

6

u/pomlife Jun 25 '18

It doesn’t. It’s got DSL in HTML and still arbitrarily separates out the markup from behavior. It’s basically for when people want React but don’t want to use something spearheaded by Facebook / that’s too popular.

What innovation does Vue have over React?

4

u/[deleted] Jun 25 '18

What innovation does Vue have over React?

The innovation is the elimination of most of the fuckery of React as both solve the same problems. One gives you more headaches than the other, simply put.

Both are good front end solutions (along with Angular) and both suck at creating "native apps" (quit wasting your time and just build a naive app).

At the end of the day, no one really gives a shit what your front end is created with as long as it looks good and is functional.

I think people spend too much time circle-jerking their front end tech when the real mistake is putting too much business logic in the presentation layer because they're using Node as their API.

1

u/pomlife Jun 25 '18

Hi there!

The innovation is the elimination of the fuckery of React as both solve the same problems.

It should be very easy to tell me specifics instead of general, meaningless platitudes.

1

u/cyanydeez Jun 25 '18

vuejs is like the borg, react is like data the android.

1

u/agmarkis Jun 25 '18

Vue and React lie in the same part of the stack, however their method of the solution is a bit different. Vue js is great for designing around HTML rendered views with a bit of a framework managing the data applied to it, whereas React is designing the display with the data together as components.

I don't think calling Vue js an "innovation" is necessarily the best way to put it, but it is more standardized than previous solutions with what it does. React handles a bit more with the generation of the HTML components themselves, but requires more work into the React code. Each has its advantages with different kinds solutions in my opinion. I would argue that Vue is a great way to get something going and out more quickly, while React may be a bit more robust and manageable with larger solutions. And Angular if you want to have an SPA.

1

u/pomlife Jun 25 '18

How is Vue "faster to get going" than create-react-app?

And Angular if you want to have an SPA.

All three can (and are mainly used to) make SPAs.

12

u/[deleted] Jun 25 '18

I prefer Sequelize and Postgres over MongoDB.

8

u/2AMMetro Jun 25 '18

PEAN stack

4

u/[deleted] Jun 25 '18

SEAN PEAN

5

u/ackerlight Jun 26 '18 edited Jun 26 '18

I hate the "Isomorphic" word use in Javascript. Why not server side rendering? People wants to sound "pro"

Also, 90% of the use cases for applications doesn't need NoSQL databases, is way better to go with mysql, postgresql or any other relational database.

1

u/kecupochren Jun 26 '18

You’ll enjoy this talk then

https://youtu.be/txxKx_I39a8

1

u/ackerlight Jun 26 '18

Haha, I did watch that when it came out, I never miss big developer conferences. Thanks for remind me that one!

8

u/Bjeaurn Jun 25 '18

Would recommend you use Angular 6 nowadays instead of the deprecated/LTS AngularJS.

3

u/chrissilich Jun 28 '18

Lol, “Weather Apps”. Because the mean stack’s highest and best use is in the same shitty weather app tutorial everyone does, right before the shitty todo list tutorial.

5

u/RawaZz95 Jun 25 '18

The only thing I am concerned about is MongoDB, compared to MySQL which one is the most secure one? I have been working with MySQL for a long time. Should I convert to MongoDB?

18

u/ADHDengineer Jun 25 '18

Only if you’re ok with every 1 out of 100,000 writes being lost to the ether. The average programmer likes NoSQL because they don’t have to deal with relations and it’s faster to start developing because you don’t have to do database migrations. It’s only once they start building bigger web apps to they realize why the old guys use relational databases. NoSQL has its place, but it should not be the go-to solution IMO.

11

u/[deleted] Jun 25 '18

The average programmer likes NoSQL because they don’t have to deal with relations and it’s faster to start developing because you don’t have to do database migrations.

Change that to novice programmer.

12

u/ADHDengineer Jun 25 '18

In my experience the average programmer is a novice.

3

u/[deleted] Jun 25 '18

Fair enough, lol.

1

u/ackerlight Jun 26 '18

Average novice programmer would be ideal.

9

u/forsubbingonly Jun 25 '18

I agree with this dude. Mongodb doesn't even pass the sniff test for 99.9% of use cases. You wouldn't be picking it up unless you don't know what you're doing. That's why I use it.

3

u/Dominathan Jun 26 '18

And by then the original creator has already left, and some poor saps have to deal with it. And replacing it has no "business value"

1

u/Xnuiem Jun 25 '18

Also, MongoDB is not transactional. Granted, for the uses shown, that isn’t a big deal unless the site gets big. But I have many applications in the Ecom space that need the transaction support.

3

u/[deleted] Jun 25 '18

I personally use PostgreSQL. I have a background in developing with MS SQL, so it was a no-brainer.

2

u/Hakim_Bey Jun 25 '18

There is no security implication to one or the other.

They can both be horribly configured and have gaping security holes. They can both be hardened to industry levels.

1

u/ChypRiotE Jun 25 '18 edited Nov 17 '25

normal chunky squeal crawl screw command vanish upbeat pie oil

This post was mass deleted and anonymized with Redact

4

u/prof_hobart Jun 25 '18

The security of a database is a very important question (as is the security of every part of your stack). It doesn't really matter how secure you make your app or your server if there's a massive great security hole in the DB.

However, it's not a reason to be choosing between a SQL or a No SQL database. There are overlaps, but they are there to solve different sorts of data storage problems. Depending on the nature of your overall system, it could be entirely appropriate to have both SQL and No SQL DBs in there.

2

u/[deleted] Jun 25 '18

Security for your database is just as important as security everywhere else in your app. That attitude is how trouble-doers get ya.

Anyway you're actually referring to reliability not security.

1

u/ChypRiotE Jun 26 '18 edited Nov 17 '25

adjoining deer sense axiomatic weather innocent whole simplistic versed stupendous

This post was mass deleted and anonymized with Redact

1

u/[deleted] Jun 26 '18

They probably are. But depending on your use case it may or may not be critical to understand the holes there may be.

1

u/cornichon Jun 29 '18

I love to use express and node together.