- Suspicious Dish
- Sep 24, 2011
-
2020 is the year of linux on the desktop, bro
-
Fun Shoe
|
- Python has threading/multiprocessing.
- Python is better suited to avoiding the callback hell of JS/Node.
- The norm in Python land is for libraries and the standard library to be well-tested and used in the wild for a long time.
None of these things are true.
|
#
¿
Aug 14, 2015 03:56
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
May 10, 2024 02:22
|
|
- Suspicious Dish
- Sep 24, 2011
-
2020 is the year of linux on the desktop, bro
-
Fun Shoe
|
Hah!
I knew exactly who would post this.
I'm happy my posting is so recognizable.
|
#
¿
Aug 14, 2015 05:27
|
|
- Suspicious Dish
- Sep 24, 2011
-
2020 is the year of linux on the desktop, bro
-
Fun Shoe
|
With Node, I often feel like I have no earthly idea in advance what a function is going to be returning. Is it going to be a promise? Is it going to be an object that isn't a promise? A string? Undefined because something got hosed up?
Similarly, I find I'm often in situations where if I try to deviate slightly from a provided example -- ie, in the tutorial everything is just mashed into one large function but in my code I want to break each piece into smaller functions -- I particularly hit this snag where async fucks things up or there's some weird promise interaction or something.
Is there any kind of cheat sheet or quick and dirty guide to where some common minefields are, or is this just the kind of stuff I just have to bang my head against?
Check the API docs, just like any other library for any other plang.
|
#
¿
Aug 27, 2015 03:59
|
|
- Suspicious Dish
- Sep 24, 2011
-
2020 is the year of linux on the desktop, bro
-
Fun Shoe
|
lol
|
#
¿
Feb 28, 2016 19:11
|
|