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
-
crisz81916yJust don't pretend to use javascript like any other programming language. It all the programming languages were the same then there was just a programming language for everything lol javascript is just different, and how a famous SO answer says: EMBRACE THE ASYNCHRONOUS NATURE OF JAVASCRIPT
-
@AlexDeLarge I want a simple way to halt execution without the callback hell that is setTimeout.
-
@AlexDeLarge Yeah, but Bonescript doesn't have sync :/
For example making an LED turn on and off two seconds later already requires a callback. Less than ideal. -
crisz81916y@PrivateGER if there weren't callbacks then blinking a led was the ONLY thing you could be able to do. Without callbacks (or promise, or await) you couldn't be able to say "ok, blink that led and do something other in the while", because the blinking led would block the remaining code. So maybe, in some other language, you should start a new thread
-
@crisz Nothing else is SUPPOSED to happen. I want only the LED to blink, nothing else.
Related Rants
-
bittersweet28Every day. I am a PHP developer. Yeah, "another PHP is awful" rant... no, not really. It's just unsuitable...
-
PonySlaystation12Hey, wanna hear a disappointing stack? - WordPress - jQuery - vanilla inline CSS - shitty random legacy PHP ...
-
Condor6Being a sysadmin, it's pretty difficult to get around the whole development of front-end stuff.. positioning, ...
PHP is my main language, but I haven't had a single problem with it yet.
Nodejs it is.
How can you possibly make it SO GODDAMN HARD to just implement ANYTHING synchronous. THERE ARE REALLY FUCKING GOOD REASONS YOU *WANT* YOUR CODE TO STOP EXECUTION WHILE DOING SOMETHING
EVER HEARD OF HARDWARE PROGRAMMING? YEAH, APPARENTLY NOT
GRAAAAH
rant
wk114