Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Build a REST API With Express Completing and Testing the API Connecting the API and Database

Ovidiu Cotorogea
Ovidiu Cotorogea
12,998 Points

Why are we not using Promises?!

Title says it all, I'm really curious why are we doing this approach instead of those beautiful looking Promises

2 Answers

Steven Ventimiglia
Steven Ventimiglia
27,371 Points

I honestly look forward to that.

I've been cursing under my breath for this entire course, originally taking it on with the intention of completing an entire track - but, man, stuff like remove is deprecated and not even working. So it feels like i'm writing my code in mid-air with zero purpose.

Content is one thing, but wasting our time with three hour courses that are filled with antiquated approaches is very disheartening.

It also makes me question the long-term viability of what's being learned, and I'm about to jump right back to PHP after studying Node.js/Express and other JS frameworks for a few years. Everything that uses Node becomes too old, too quickly. It seems like a steaming pile of rubble that isn't going to last nearly as long as programming languages like PHP (old man on campus) and Go (new kid on the block).

Ovidiu Cotorogea
Ovidiu Cotorogea
12,998 Points

Honestly it wasn't hard at all to convert the project that I was working on to use promises, easier than anticipated, so just give it a try I'm guessing.

Ovidiu Cotorogea

Did you convert this project using promises or are you talking about a different one? If it's this project would you mind sharing it if it's not too much trouble?