I've been using cusotmised Materialize CSS for most of the effects I want on my pages. I know very little JavaScript. Is it reasonable for me to continue working with frameworks such as Materialize CSS or should I learn JavaScript?

  • 1
    If it's working for you, sure. There's no JS police. :)
    – DA01
    Jun 17 '16 at 6:16
  • 1
    This is completely opinion based and depends on what you're doing. I'm voting to close it as such Jun 17 '16 at 6:44
  • Simply put, there are things that CSS can't do. You need JS for those. If you don't have to do those things, then what you're doing seems to be working Jun 17 '16 at 6:44
  • Okay, thanks for the comments guys. Will be closing the thread. Jun 17 '16 at 6:46
  • Definitely important as a "web developer" to know basic front end languages like HTML, CSS and JavaScript. Frameworks and Libraries can be helpful to use for certain things. But I would never recommend using one particular framework for every website. Also JavaScript and CSS do different things, so one isn't better than the other. It's not a bad question--it's good that you asked. Jun 17 '16 at 14:53

As a web developer you really should know at least the basics of JavaScript.

You can achieve a lot of visual effects purely with CSS but there is a lot you can do with JavaScript that simply can't be done with CSS. Where JavaScript really comes in to play is adding functionality and interactivity. Try turning JavaScript off and using this site and you'll see a lot of the interactions you have with this site are controlled with JavaScript.

If you don't want to learn vanilla JavaScript you can always use a framework such as jQuery, which may arguably be easier to learn if you are only using the basics (although it's still better to learn the JavaScript first). But as with any framework, that comes with a trade off between ease of use and bloating your page with often unnecessary large amounts code.

Relying on a front-end framework such as Materialize is ok but without knowing how it works (the JavaScript part anyway) you are limited to copying and pasting code and hoping it works. Debugging will be nigh on impossible and modifying or extending the functionality to fit your needs will be a minefield.

  • Indeed, the last part of your answer holds true many times for me. I guess I'll have to go learn. The problem is, most resources start with the Maths and don't go much further after that either which really puts me off. Jun 18 '16 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.