13

I think JavaScript is like a woman...
- it thinks many many things at the same time and you never know the order in which those thoughts are appearing.
- it has moods, sometimes it just won't do something you expect just because
- you are never going to be 100% certain of what a response is going to be given a particular input

Comments
  • 25
    Hmmm.. JS beginner and single?
  • 1
    this explains sooo much 🤯
  • 7
    OP status: single for the foreseeable future
  • 0
    @Fast-Nop yes and fortunately yes
  • 2
    @Fast-Nop
    not beginner; Married, but having one wife is enough of such behavior, so I had to rant
  • 1
    @Fast-Nop like all JS beginners?
  • 3
    @sebach1 Now you're mixing up JS with PHP. ;-)
  • 0
    You will be over it. You just need to know how it works under the hood.
  • 0
    I don’t think any language does things ‘just because’, 100% of the time it’s a lapse in thinking from the developer.
    You also know what order things execute in JavaScript if you know javascript sufficently.
    And lastly you always know what the response will be given any set of data if you think about design first and sufficiently know the language.
    JavaScript has many flaws buts its in none of the above.
  • 0
    Ever heard of pure functions?
  • 0
    @Lor-inc ever heard of modifiers?
  • 0
    @-pthread No, and after a quick google search I still don't know what they are so I'd be grateful for a link.
  • 0
    @Lor-inc Function Modifiers are used to modify the behaviour of a function. For example to add a prerequisite to a function. Some languages called it decorators.
  • 0
    @Lor-inc pure functions are stateless function. Same input produces same output without any side-effects.
  • 1
    @-pthread I know decorators, I just didn't know this name. IMO a function with an impure decorator is an impure function, and the point still stands, its the programmer's job to separate responsibilities and to try to keep functions as pure as possible.
  • 0
  • 2
    PHP is like men: shit
  • 0
    @bashleigh ouch... we're not all bad are we 😔
  • 1
    @M1sf3t yeaaa Laravel is alright to be fair :p
  • 0
    @bashleigh I can live that, they say it's improving ☺️
Add Comment