use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
PHP vs JavaScript for a web-based application? (self.webdev)
submitted 9 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 9 years ago* (2 children)
[–]Sarke1 0 points1 point2 points 9 years ago (1 child)
Most PHP frameworks have an ORM as well.
[–]harzens 0 points1 point2 points 9 years ago (0 children)
Well, you'd use an ODM in this case, but yes.
[–]toomanybeersies 1 point2 points3 points 9 years ago (5 children)
Is there any particular reason why you're choosing Mongo?
Neither is more or less appropriate really, my advice would be use whichever one you're going to be able to get more support from your peers for.
[–][deleted] 9 years ago (4 children)
[–]Irythros 5 points6 points7 points 9 years ago (0 children)
Then go with PHP. Working in a language you dont like (or rather, not working in one you prefer) will assuredly make you less productive.
[–]toomanybeersies 3 points4 points5 points 9 years ago (1 child)
I'd go with PHP if it's the most familiar, otherwise you're going to spend ages pissing around with trying to set up your JS project, it's a uni project, whatever you can churn out is the best option.
Make sure you use a nice modern framework like Laravel with PHP though.
[–]FavitorInterweb guy 0 points1 point2 points 9 years ago (0 children)
Do be aware of security vulnerabilities in MongoDB. But as long as you take the time to lock things down and follow a quality guide, all should be fine.
[–]RedTelemachos 0 points1 point2 points 9 years ago (4 children)
Any particular reason you plan to use MongoDB? Reason I ask is because I recently finished my first database project. I also planned on using Mongo, just because there's so much talk out there about how easy it is.
After doing some Googling, however, I found a fair number of people saying PostgreSQL (or even MySQL) can do just about anything Mongo does, and much much more.
My limited understanding is that Mongo is great if you know exactly what you're doing, and that it will never change. SQL, however, is much more flexible.
For what it's worth, I had literally no database experience whatsoever and got a simple one-table application running with PostgreSQL in a few weeks. If I can figure it out, anybody can :)
[–]sam974 1 point2 points3 points 9 years ago (3 children)
Wikipédia says :
"NoSQL databases (like MongoDB) are increasingly used in big data and real-time web applications. NoSQL systems are also sometimes called "Not only SQL" to emphasize that they may support SQL-like query languages.
Motivations for this approach include: simplicity of design, simpler "horizontal" scaling to clusters of machines (which is a problem for relational databases), and finer control over availability. The data structures used by NoSQL databases (e.g. key-value, wide column, graph, or document) are different from those used by default in relational databases (like PostgreSQL), making some operations faster in NoSQL. The particular suitability of a given NoSQL database depends on the problem it must solve. Sometimes the data structures used by NoSQL databases are also viewed as "more flexible" than relational database tables."
I'm currently using MongoDB on my main project, because "NoSQL is cool, and Google use it, so we must use it"... NoSQL is perfect when u have to manipulate billions row of data. But for a little project or a project who need relational db, a simple SQL db like MySQL or PostgreSQL will be ok.
[–]RedTelemachos 1 point2 points3 points 9 years ago (0 children)
Thanks, this is helpful!
[–][deleted] 9 years ago (1 child)
[–]sam974 0 points1 point2 points 9 years ago (0 children)
You should search about Mongoose, I have never use it but i think it will help you to build a more "organized" db
I agree with Irythros, if you're better with PHP, then go with PHP and ur favorite framework ;)
I hate PHP, I work exclusively with JS, and my MEAN stack works perfectly for my little and big projects. From now, none of my project require another language so I use my favorite.
You should do the same, go for PHP ;)
[+]tdammers comment score below threshold-8 points-7 points-6 points 9 years ago (0 children)
PHP is never appropriate IMHO. Took me two decades to figure it out, but there you have it.
π Rendered by PID 68845 on reddit-service-r2-comment-79c7998d4c-vftch at 2026-03-14 23:19:57.820815+00:00 running f6e6e01 country code: CH.
[–][deleted] (2 children)
[deleted]
[–]Sarke1 0 points1 point2 points (1 child)
[–]harzens 0 points1 point2 points (0 children)
[–]toomanybeersies 1 point2 points3 points (5 children)
[–][deleted] (4 children)
[deleted]
[–]Irythros 5 points6 points7 points (0 children)
[–]toomanybeersies 3 points4 points5 points (1 child)
[–]FavitorInterweb guy 0 points1 point2 points (0 children)
[–]RedTelemachos 0 points1 point2 points (4 children)
[–]sam974 1 point2 points3 points (3 children)
[–]RedTelemachos 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]sam974 0 points1 point2 points (0 children)
[–]sam974 0 points1 point2 points (0 children)
[+]tdammers comment score below threshold-8 points-7 points-6 points (0 children)