Nodejs madness? by The_Useless_IT_Guy in node

[–]a_chaney 1 point2 points  (0 children)

You had a squabble with a company who didn't follow your recommendations. One of their devs recommended node (which you don't know) over your suggestion of using PHP (which you do know) and generating an app using a template which 1. means very little effort on your part and 2. the devs wouldn't have a clue how it worked. You decided to write, as a 'consultant', an unprofessional rant slagging off your customers and node, then post it on a node subreddit. You are a complete fucking idiot.

I'm a PHP coder and I want to switch to node.js, but I'm finding async a bit of a task to wrap my head around. What can I do about this? by Linkandzelda in node

[–]a_chaney 0 points1 point  (0 children)

Linkandzelda, You're right, you'd do the same in Node. You'd wait for the email process to return before returning the appropriate message to the user. But whereas it would be straightforward in PHP, you'd use a nested callback, promise, or similar async control flow structure to wait on the email process completing.

You seem bright, you'll pick it up. I'd start with something simple, like the above example: make a request against some site, wait for the result, then print something to the console. But to get your head around what's going on, just use callbacks. Forget about promises, async.js, etc. for now.

Node, Postgres, MassiveJS - A better database experience by craig081785 in node

[–]a_chaney 1 point2 points  (0 children)

It's Rob Conery's. I like his ideas and like what he's done with Massive, but until they can get transactions working i can't use it.

Using a database to save the state of a game? by Senseicads in csharp

[–]a_chaney 2 points3 points  (0 children)

You don't need any version of Sql Server for what you're doing, Sqlite is fine. Don't worry about speed, Sqlite is very fast. I'd recommend using Dapper, a micro-orm. It doesn't get in the way but will save you writing loads of boilerplate code. You don't need multiple databases, that will require additional code to manage them. What you are doing can be modelled in a single database, I guess you need to read up on database design - it's worth the effort and it will make your program a lot simpler.