Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,369 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?