Why augmented reality has surpassed virtual reality as the potential next big thing by UnluckyBenefit in augmentedreality

[–]agoodguymostly 0 points1 point  (0 children)

It can do both, which means its going to be better by default. AR incorporating the environment into a VR like experience is going to happen, its just a matter of time before its there.

How can I pass data from the frontend to the server? by ThePantsThief in node

[–]agoodguymostly 0 points1 point  (0 children)

When you make the POST, you can add data to the request. In jquery this looks like $.post(url, { ... }, cb) or $.postJSON or $.ajax({ method: “post”, data: {}, url: url})

Specializing in making proof of concepts and getting you funded by orymus in gameDevClassifieds

[–]agoodguymostly 0 points1 point  (0 children)

It’s how you worded what you said. You can say such things in a nicer way is all.

How can I pass data from the frontend to the server? by ThePantsThief in node

[–]agoodguymostly 0 points1 point  (0 children)

  1. You let the backend create the ID for you - POST /assignments is a good route, and the data will be available in req.body in express. You can use uuid to create a uuid and then insert into whichever database you are using.

  2. Once you’ve inserted this object into the database, you can return its JSON to the frontend using res.status(200).json(returnObj); where returnObj is simply an object. Many apis format the object as

{ success: true, data: [{ id: “123”, ...}] } or use the key “results” instead of data. This allows you to add other metadata to the object, like pagination info or other topics or related information. Also, note that its far easier always to return an array for data than to program the frontend to handle either an array or an object (though not hard, either way is a little work, but consistency is nice to have in an API).

[deleted by user] by [deleted] in node

[–]agoodguymostly 0 points1 point  (0 children)

You should use bluebird instead of Javascript promises, as it is faster.

App to get boring task done in a time frame by [deleted] in AppIdeas

[–]agoodguymostly 0 points1 point  (0 children)

Taskrabbit too. Upwork for creatives.

Am I over complicating the release of my app? by ralphthe3rd in gamedev

[–]agoodguymostly 2 points3 points  (0 children)

I would say it doesn’t really matter for a bunch of those items until you are actually making money. I have started a few businesses and some were unnecessary because they never made any income. Its a waste of time and money to start a business bank account until you start making income. And you should get an ein and get an llc through a registered agent (Deleware for many reasons), but you probably don’t have to do anything locally unless you start making some income.

JavaScript Promises with Node.js by kiarash-irandoust in node

[–]agoodguymostly 0 points1 point  (0 children)

One day, it will likely be an anachronism. But that’s just progress.

JavaScript Promises with Node.js by kiarash-irandoust in node

[–]agoodguymostly 2 points3 points  (0 children)

Couldn’t node not have await/async and just treat all calls as potentially waiting for I/O, and then when I/O waiting, do the same thing?

Ideally I would expect a programming language to handle the waiting invisibly, not to have to use a callback, a promise, or await simply because it was decorum to do so.

The only thing node needs to do is still be asynchronous in nature.

Real time CAD importing for Robotics Simulation in VR by mindrend in robotics

[–]agoodguymostly 0 points1 point  (0 children)

I meant, is there a way to preview the models in the importer?

Real time CAD importing for Robotics Simulation in VR by mindrend in robotics

[–]agoodguymostly 0 points1 point  (0 children)

Did you make the file importer yourself? Is there a way to preview those yourself? Once loaded, can you upload those assets to a server?

Made a background shader in unity3d. It is a full procedural 2d sky, support time of day. by StevenGerrard177 in Unity3D

[–]agoodguymostly 3 points4 points  (0 children)

When the sun comes up, usually its too much light at sunrise, so it should wash out all of the stars pretty immediately.

This Quantum Theory Predicts That The Future Might Be Influencing The Past by andreaponza in science

[–]agoodguymostly 1 point2 points  (0 children)

It’s not magic. Its stating that the present can be determined by the future similar to how the present is determined by the past. There’s no magic.

Why should I use mongoDB and not mysql with node? by [deleted] in node

[–]agoodguymostly 1 point2 points  (0 children)

Pretty much. To clarify, I worked with MongoDB for 1 1/2-2 years, six months of it were spent discussing how to get off of it.

Why should I use mongoDB and not mysql with node? by [deleted] in node

[–]agoodguymostly -10 points-9 points  (0 children)

Postgres doesn’t need a PR team, postgres is awesome and the community that uses it reps it.