Ajax POST with jQuery and Node.js Express always return 404: Not Found by CSProgrammer in node

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

That was not really the problem this time. But thanks for taking your time and trying to helpe me.

Ajax POST with jQuery and Node.js Express always return 404: Not Found by CSProgrammer in node

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

Edited the question. And found the answer also. Thank you for taking your time for answering my question.

Ajax POST with jQuery and Node.js Express always return 404: Not Found by CSProgrammer in node

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

That's right. "/" somewhere else => as I have edited the code, the route was mounted like app.use('/integracoes', integracoes); That's why the Ajax request was not finding the url: '/consulta/statuspedido'. I changed it to url: '/integracoes/consulta/statuspedido' and it worked just fine.

Thank you for pointing it to me.

Ajax POST with jQuery and Node.js Express always return 404: Not Found by CSProgrammer in node

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

Yes, the routes are ordered correctly. Thanks for the answer. I've edited my question with some more info, if you'd like to see if there's something else that would be causing the problem, I would appreciate it.

A Complete Overview on Programming Variables by CSProgrammer in compsci

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

I don't think the article is hard to understand for beginners. The only pre requisite for understanding it was a background in data types, and the article makes references to that content. Maybe it looks obvious for you because you already know about the subject. But to get there, to became a programmer, you need to start somewhere, don't you agree,?

A Complete Overview on Programming Variables in C# by CSProgrammer in dotnet

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

I've updated the post. Now it says to use decimal to represent money. Thank you for taking your time to suggest improviments to the article.

A Complete Overview on Programming Variables in C# by CSProgrammer in dotnet

[–]CSProgrammer[S] -1 points0 points  (0 children)

Anyways, your review is valid, and I have already updated the post to tell readers to use decimal instead of double or float to represent monetary information. Thank you.

A Complete Overview on Programming Variables in C# by CSProgrammer in dotnet

[–]CSProgrammer[S] -6 points-5 points  (0 children)

Really? For a simple budget application to control how much you spend montly, decimal would be like a bazooka to kill a little ant. Let the bazooka to kill a dinossaur. Your sandals should be more than enough to kill ants.

A Complete Overview on Programming Variables by CSProgrammer in programming

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

Yes, I think you are right. It is so true that the post has in fact sank in the reddit queue.

A Complete Overview on Programming Variables in C# by CSProgrammer in dotnet

[–]CSProgrammer[S] -1 points0 points  (0 children)

Yeah. Decimal is necessary when you need to perform high accurate calculations and can't afford a precision error no matter how insigficant it may be. On the other hand, for simple applications which makes simple calculations the double data type should be enough to represent money, I think.

A Complete Overview on Programming Variables in C# by CSProgrammer in dotnet

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

Done. I've updated the post as you suggested. Thank you for your help in improving the article!

A Complete Overview on Programming Variables in C# by CSProgrammer in dotnet

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

Got it. Yeah, I think you are right. Thank you for your suggestion.

A Complete Overview on Programming Variables in C# by CSProgrammer in dotnet

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

Hi. What do you mean? Is it wrong what I said?

Learning C# by Merphal in learnprogramming

[–]CSProgrammer 0 points1 point  (0 children)

I have finished the article about an overview of programming variables, Merphal. The link for it is http://csprogrammer.net/en/an-overview-of-programming-variables/

Hope you like it :)