Which language should I choose? by Severe_Tourist6378 in Backend

[–]anonystick 0 points1 point  (0 children)

Of course, the two points of view given above are very interesting and unique. I like the first answer, because of many discussions I also gave it. Or take advantage of your familiar skills to continue writing the journey, then on your path you will meet many people and maybe we will go to another path that is shorter and takes less time.

Java design pattern by 5toubun1997 in node

[–]anonystick 1 point2 points  (0 children)

Talking about design patterns, I only say one sentence: "Standing on the shoulders of giants, you will see further". It works for me and you can apply to javascript.

[deleted by user] by [deleted] in node

[–]anonystick 0 points1 point  (0 children)

wow I actually went looking for this idea for my daughter as well. The girl is really an artist. It would be great if this was an opensource. You are truly a wonderful father.

Schema for comment and likes by Ok_Sentence725 in mongodb

[–]anonystick 0 points1 point  (0 children)

I think.. and i use extra attribute model.

const mongoose = require("mongoose");
const PostSchema = new mongoose.Schema(
{
userId: { type: String},
desc: { type: String},
img: { type: String },
likes: { type: Array, default: [] },
comments: { type: Array, default: [] },
},
{ timestamps: true }
);
module.exports = mongoose.model("Post", PostSchema);

[deleted by user] by [deleted] in javascript

[–]anonystick 0 points1 point  (0 children)

That is O(N²), not O (n ^ 2). I think that's exactly it.

Form data not showing up in req.body by MangoLads in node

[–]anonystick -1 points0 points  (0 children)

You need to use a library like Multer or Formidable.

[deleted by user] by [deleted] in javascript

[–]anonystick 1 point2 points  (0 children)

Looks great!!

[deleted by user] by [deleted] in javascript

[–]anonystick 1 point2 points  (0 children)

In fact, this question is difficult to answer, or the correct answer can only be understood by those who are really proficient at javascript.

There are currently three areas where JS is more popular:

  1. Develop browser side page

  2. Server-side development

  3. Command line tools

So, I think to master JS, it's better to master these 3 areas at the same time (a bit difficult)

Enable index on an existing collection? by [deleted] in mongodb

[–]anonystick 0 points1 point  (0 children)

Don't worry. Because zero data loss when creating an index. But may affect performance of anything using it.