4

Fuck JavaScript!!!!!

I'm building an application using Vue with MaterializeCSS and i'm using moment to handle dates. i have to initialize datepickers with values at mount of the vue. i use variables to store the states. there are proper routines for intialization and setting of the pickers. the routines run. there are no errors. the pickers show values. no errors. but the fucking variables ar empty!!!! the pickers are not being set. holy mother of fcuking shitty js milk!

Comments
  • 1
    Ajajaj :) Good rant! Run it in the debugge.. ah wait..
  • 4
    @Pyjong js has both client and server side debuggers
  • 3
    @JoshBent oh? my mistake.. I stand corrected.
  • 3
    Just an idea off the top of my head, try initializing it in created? Especially if it's being referenced in computed, created is called before mounted. That's my typical workflow.
  • 1
    @pbcub1 actually i initialized them in data object to a blank value. then in mounted i set them to some value. however they are not being set. i tried to set them using console in google chrome too. still blank. WTF!
  • 4
    Ah the frameworks that make javascript easier...... oh wait, that's exactly what they don't do!
Add Comment