10

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
  • 21
    Hmmm.. JS beginner and single?
  • 5
    OP status: single for the foreseeable future
  • 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
    @Lor-inc yep
  • 2
    PHP is like men: shit
  • 0
    @M1sf3t yeaaa Laravel is alright to be fair :p
Add Comment