Javascript: Fatigue vs. Stockholm syndrome

ToC

  • A little true story
  • No, it’s Stockholm syndrome
  • I’m not lazy. I don’t not want to learn

A little true story

>> ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’
Warning: Error running grunt-browserify. Use — force to continue.
>> ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’
Warning: Error running grunt-browserify. Use — force to continue.
  • Grunt does not transform code, it’s a “task runner”
  • The task it runs is called browserify
  • Well, the problem with the browserify task is that the task runner cannot run it. It needs a plugin called grunt-browserify to do that
  • Oh, and browserify has to run babel on the source code before it can do anything with it.
  • And the problem is that browserify cannot run babel directly. It needs babelify to work
>> ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’
Warning: Error running grunt-browserify. Use — force to continue.
>> ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’
Warning: Error running grunt-browserify. Use — force to continue.

No, it’s Stockholm syndrome

  • Don’t try to know everything
    I’m not “using everything”. Only the absolute minimum I need to do my job. Going as far as rewriting or reimplementing things that are overy bloated
  • Wait for the critical mass.
    How is Grunt, browserify, Babel not critical mass?
  • Do exploratory toy projects
    Believe me, I do. It is nigh impossible to start a toy project these days, unless you blindly copy paste an umpteenth webpack-starter-kit-for-reals-this-time-works-I-promise and pray that it works for the current minor and major versions of all the moving parts involved. Unless you have your one config file, faithfully copy-pasted all over the place.
  • Diversify in life
    I do kendo, aikido, contemporary dance, salsa, and amateur Russian theater. How’s that for diversification? How any of these can help me with the abomination in the first part of this post?
  • You can always go back to fundamentals
    How very condescending of you. I wrote articles (albeit in Russian) on fundamentals.
loaders:[{
test: /(\.css)/,
loader: "css-loader?module&localIdentName=[path][name] — -[local] — -[hash:base64:5]"
}]

I’m not lazy. I don’t not want to learn

  • there’s nothing lazy in trying to make your build tool work
  • there are exactly zero useful things to learn from that experience

--

--

--

Do you Erlang?

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dmitrii

Dmitrii

Do you Erlang?

More from Medium

I am going to learn Typescript

What does a Front End developer do?

What does a Front End developer do

Expression and statement in JavaScript

I will convert psd, xd, figma, sketch to html css bootstrap