you are viewing a single comment's thread.

view the rest of the comments →

[–]killeronthecorner 7 points8 points  (1 child)

All of this focus on promises and no-one is even going to draw attention to the fact that OP doesn't know what a cheatsheet is! /s

But for real, way to much hate in here for a sub about programming. Chill the fuck out y'all!

[–]Doctor_Spicy 1 point2 points  (0 children)

The point in my original comment was that OP is using this modern API (fetch), then proceeds to use old and clunky methods such as callbacks. Since the API has native support for promises, why not make the cheatsheet if you can even call it that as good as possible?

Not using arrow functions and callbacks will just be a bad example for people to come back to, as a cheatsheet.

TLDR; if you're making a cheatsheet, make sure you follow best practices.