Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@heyheni there's a function that I need to call synchronously but I am too pissed to read online on how to call it like that. I am taking a break now, hopefully I'll have more patience later.
-
@olback I somehow managed to fix my problem, but I swear something's fucked up in node v11.13.0.
I looked at documentation, watched talks, watched tutorials and I understand it all now, but it still seems like node just doesn't care and runs functions asynchronously anyway.
I don't want to blame node though, I am 100% missing something because I'm tired and also I've got some brain fog. -
inaba46256y@xugS6fz6A7P8cL5 No I mean what are you doing in Javascript. What function are you calling.
-
inaba46256y@xugS6fz6A7P8cL5 Are you being dense on purpose? Like you obviously did something in javascript, and to clarify when I say that you did something I mean you called some functions and/or methods and it didn't work for you, and that's why I asked about what you did (and stressing again which functions you called and not some vague description that doesn't help me help you) so that I could help you.
When I asked what you did I did it because 1. I know Javascript and 2. I like to help people with stuff. -
@inaba thank you very much for willing to help me but I have resolved my issue already. I get that you wanted me to be a bit more descriptive but honestly I don't know how to explain it better. I am calling a function provided by a library I'm using (youtube-dl) that fetches some data from a url and returns an object with that data.
-
@xugS6fz6A7P8cL5 inaba is actually a principal staff engineer at Google, and was on the ECMA-262 specification panel. So you can say he's a JavaScript God.
The confusion is due to you guys being at different use case levels. Inaba didn't envision your problem being a high level API case (youtube-dl library). So it would've helped for you to mention it. Not exactly intuitive, I know.
Fucking asynchronous javascript
rant
piss off js