22

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

Comments
  • 13
    I've literally never had a problem with PHP
  • 7
    If you like PHP - use it
  • 3
    @Linux PHP has no features for hardware, that's the problem.
  • 4
    @PrivateGER
    Why would you need it?
    Use exec function then
  • 6
    Just 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
  • 1
    Fuck you wordpress
  • 1
    @Linux Bonescript is the only lib for the Beagle Bone Black.
  • 0
    I haven't had no problems with PHP yet. Anyway, embrace Go.
  • 0
    @AlexDeLarge I want a simple way to halt execution without the callback hell that is setTimeout.
  • 0
    @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.
  • 0
    @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
  • 0
    @crisz Nothing else is SUPPOSED to happen. I want only the LED to blink, nothing else.
Add Comment