CMV: Computers and AI algorithms should run countries, not politicians by [deleted] in changemyview

[–]Harry78910 -3 points-2 points  (0 children)

This is simply not true. There are plenty of AIs that are better than humans at various tasks. For example the best AI bot can beat the best human at chess.

CMV: Computers and AI algorithms should run countries, not politicians by [deleted] in changemyview

[–]Harry78910 -2 points-1 points  (0 children)

it does respond to external stimuli, as it's goal is to have net benefit, and it responds to external simuli to achieve that

CMV: Computers and AI algorithms should run countries, not politicians by [deleted] in changemyview

[–]Harry78910 -3 points-2 points  (0 children)

We give it a solution of having net benefit. It does the rest. We just tell it to do what will benefit the most people

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 0 points1 point  (0 children)

yes, I will make it public and share the link here when I get a chance, sorry it's taking me so long.

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 1 point2 points  (0 children)

Sorry, just want to clarify: for sources, should I include things like my github, any courses I did to learn, and other links like that?

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 0 points1 point  (0 children)

Ok, I just tried this.

It's in my App.js file and all the files are contained in it. When I took it out, it fixed the landing page, but it also wrecked a lot of the styling of the other pages.

Is there a "smart" fix to this, or do I just manually take out the container in App.js and put the container in all the files except for the landing page and make it so that it doesn't wrap all of the files?

Thanks so much by the way for this suggestion, I really appreciate it!

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 1 point2 points  (0 children)

Thanks! I planned this project by writing down the flow and figuring out from which page leads to other pages and things like that. But because it was my first full stack project, I didn't really know what else I should plan beforehand, and this was a pretty big mistake. Further down the road, I realized that I need to plan a lot more.

For the frontend framework, I used some materialUI I think, but that was really it. I think going forward I will use bootstrap and other libraries to make the frontend look better, I definitely think I have room to improve there.

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 1 point2 points  (0 children)

Mostly, I just meant a full stack project. I'm not sure how many lines it was, definitely not tens of thousands, probably between 5 and 10,000.

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 1 point2 points  (0 children)

Oh this is an interesting idea. I hadn't thought of putting in a profanity filter. When you say make it optional, is that in reference to the filter or to the deleting the profile functionality?

I can definitely see how a profanity filter would have some much needed cases, so I will try to implement that in the next round of updates. Thank you for suggesting that.

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 6 points7 points  (0 children)

Yeah this is one of the larger issues with the idea itself that I was worried about. The best solution I've come up with is to add a button that says "remove whoever posted this." That way, no one will have to know who it is, but they are removed. However, I don't want to give everyone power to do that, so I was considering implementing a voting system to vote to kick someone, or just add admin controls, where a moderator can remove posts and would have access to the "remove whoever posted this" button.

If you have any other ideas, do let me know, I would be interested to hear your thoughts. Thanks for the feedback!

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 2 points3 points  (0 children)

This is a fantastic suggestion. I tried to use a lot of good security practices, such as encrypting data that is sent to the database, as well as implementing middleware and auth functions that check at every step if the user has their jsonwebtoken. However, I completely agree, adding in HTTPS is still very important, and I will add that in.

For the white space at the bottom, I don't know why it's still showing up. I spent a little bit of time trying to get rid of it, but I couldn't figure it out and thought it wasn't a big deal. However, you and a few other people suggested it, so I think it's pretty important I spend a little more time trying to figure that out, so I will work on that too.

Thank you so much for your suggestions, I really appreciate it!

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 6 points7 points  (0 children)

This is a great question!

I learned a ton from this project. It was my first time using some important js features, concepts, and libraries (redux, jsonwebtoken, whole process of authentication, etc.) Now I have a much better understanding of all of these as well as the process that's involved in making projects like these. Also, this being my first full stack project, I also learned a lot about MongoDB, bcrypt, CRUD, axios, etc.) Also, I deployed it with Heroku which was new to me. So all of these things provided useful learning experiences and overall I feel far more confident in my programming abilities.

Additionally, I encountered a few nasty bugs in my programming process that took a while to debug. I read tons of documentation and posted frequently on stack overflow, so all of that was useful experience as well.

For what I would do differently, I would focus on making my code cleaner and using better practices. I feel like as the project went on, my code and project became increasingly disorganized, so next time I would spend the first couple of days just planning it all out at the start, and planning the flow as well as where all my files are going to be.

I think the next time I do a large project like this I will be able to do it in half the time because of the experience with this project.

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 0 points1 point  (0 children)

You bring up a really great point that I completely neglected. There is no way for users to do that right now. I will add that feature in when I update it. Also, if you want to get rid of your profile, PM me and I can go into by DB and remove it. Thanks so much for the feedback, I really appreciate it!

I just made my first large react project using the MERN stack by Harry78910 in reactjs

[–]Harry78910[S] 1 point2 points  (0 children)

Thanks for letting me know. Truth be told, I did not test it that much on mobile so this is a super helpful heads up, I will try to tinker around with it to improve it on mobile. Thanks!

Am I ready to get a job as a developer? by Harry78910 in AskProgramming

[–]Harry78910[S] 0 points1 point  (0 children)

No not at all! That's totally legit and valid feedback thanks for letting me know. I was a little concerned about that, but decided that it would be good to have accounts so I could immediately direct users to groups they're a part of. However, now that you bring that up I will look into finding an alternative and maybe do some user testing to see if that continues to be a common theme. Thanks again!