r/programming • • Jun 09 '16

jQuery 3.0 Released!

https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/
1.1k Upvotes

354 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jun 09 '16

[deleted]

0

u/[deleted] Jun 09 '16

[deleted]

81

u/JoeCraftingJoe Jun 10 '16

Is it webscale ???

79

u/nvolker Jun 10 '16

23

u/k3ithk Jun 10 '16 edited Jun 10 '16

I've never seen this and I burst out laughing at "you just turn it on and it scales right up."

8

u/habitual_viking Jun 10 '16

I've known it for years and it's still funny as hell. Love when ever it's appropriate to a discussion.

6

u/sizl Jun 10 '16

i love the rails vs. php one. so accurate.

3

u/MMSTINGRAY Jun 10 '16

Is this from a real conversation or was it written for the video? I really hope this was a conversation on a forum somewhere...

→ More replies (4)
→ More replies (1)

0

u/[deleted] Jun 10 '16

[deleted]

→ More replies (5)

20

u/SimplyBilly Jun 10 '16

I use React + Redux for fronted work as well and Java + PostgreSQL for the backend. For larger projects it makes life so easy compared to jQuery.

6

u/lalwanivikas Jun 10 '16

I use Postgres too though, so maybe the type of developer who reaches for MongoDB just isn't very good.

I am learning front-end dev and need to pick a db to learn so that I can make full apps now instead of just client side apps. Was actually planning to go with Mongo(w/o a good reason though), but I am confused after your comment.

Is Mongo that bad? If yes, then what should I learn instead? Postgres?

PS: I can understand JS, Node and stuff, but I know absolutely nothing about db :(

50

u/Prizephitah Jun 10 '16

If you know nothing about databases I would strongly suggest Postgres as your first encounter. Where it does many things right, Mongo does many things weird and comes with pretty bad defaults making it a bad learning experience.

Postgres is tried and tested. It's also well supported and pretty easy to work with. You pretty much can't go wrong with Postgres as a first encounter with databases.

Always use prepared statements!

4

u/judgej2 Jun 10 '16

It's not even as simple as which of the two are better. They are built on entirely different concepts, so reading up on relational databases and NoSQL databases is going to be important.

2

u/Prizephitah Jun 10 '16

I don't think that they are too different. It's mostly a question of normalization. In my opinion its more valuable and an easier transition to learn relational databases before document stores.

2

u/lalwanivikas Jun 10 '16

Any good resources that you can recommend for beginners?

(For server-side I just know Node)

→ More replies (11)

23

u/kqr Jun 10 '16

Unless you have a specific requirement that makes some other database more relevant, always default to Postgres. It is really, really good. Often better than it gets credit for.

3

u/lalwanivikas Jun 10 '16

Thanks kqr! Want to ask the same question that I posted above:

Any good resources that you can recommend for beginners?

(For server-side I just know Node)

9

u/lubricin Jun 10 '16

Perhaps code schools intro to SQL might be good? https://www.codeschool.com/courses/try-sql or just diving into the postgres manual here: https://www.postgresql.org/docs/9.5/static/tutorial.html

and heres some exercises that might be worth doing: https://pgexercises.com/

If you're using os x you can install it either with homebrew or just by launching the app you'll find here: http://postgresapp.com/

And here's a client for connecting node to postgres: https://github.com/brianc/node-postgres

3

u/lalwanivikas Jun 10 '16

Thanks a lot for this lubricin!

This should be more than enough to get me started :D

2

u/kqr Jun 10 '16

I have no idea about learning material, sorry. I've sort of learned it as I went over the past 10 or so years, looking up stuff when I need it and reading the occasional blog post and such.

→ More replies (1)

4

u/[deleted] Jun 10 '16

It depends on your use case, mongo has certain drawbacks that may not be bad for certain application but killer for others. Traditional sql dbs have a very firm principal to keep the integrity of data, no matter what happens. To achieve this there are many technologies at work (transaction, process isolation, constraints.....) that require performance. Many of the first nosql dbs did away with these to be faster (i.e. MongoDB). Data loss is traditionally not something that is ok, but it can be, if you are developing a web crawler that gathers huge amounts of data, a loss of 0.0001% can be a great deal for the added performance. But if you save user data, you can not afford this freedom, you need 100%. Another thing i read last week is, if you query data in mongodb as it is updated, there is a real chance that this will not be in the result even if it matched your criteria before and after the update.

1

u/judgej2 Jun 10 '16

"Bad" needs context. Different tools fit different use-cases. Using an inappropriate tool often ends up "bad".

4

u/Frodolas Jun 10 '16

Yeah I use React, Redux, Node, and Postgres and I'd say I'm pretty productive.

→ More replies (1)

1

u/[deleted] Jun 10 '16

Do you have maybe some kind of tutorial for creating REST Api client application with simple CRUD with React + Redux? I found that tutorials on Redux website are not the most intuitive, and React + Redux seems quite heavy to jump in without decent examples.

→ More replies (1)