Joomla! 3.7.4 has just been released (don’t know about this? Read the announcement here), then Joomla! 4 is a monster venture in front of past Joomla! versions. I know you might get curious about what's new with Joomla! 4 😉 . Now let’s take a look at the new features supposed to be in Joomla! 4.
Moving towards the story, we need to focus on Unit testing even more than on the other aspects. Unit tests basically check a block of code of the program input, output and ensure that they all run as expected. These tests mainly help developers to check individual areas of a program to see where errors occur. So it’s very common in software development life cycle.
The following diagram gives a basic understanding about how unit tests work.
Joomla! 4 is using vue.js for building interactive web interfaces in the New Media Manager. Adding Unit Testing for those vue.js components are another part of this project. It's more about code management. Mostly modularization of the code, each component is responsible for a certain functionality in the Joomla! 4 New Media Manager.
Vue.js scripts make it easier to create unit test coverage. Unlike other testing libraries, VueUnit does not concentrate on DOM traversal. Mainly it focuses on making programmatic manipulation of components much easier and you can use any test runner.
Now is the right time to end this relationship with jQuery, for many reasons:
- Application overhead
- Some devices need long connection and load time
- Lack of Performance issues
- Is NOT lightweight
- Legion of unnecessary abstraction
- Modern Browsers support JS ES6 and ES5 so most of jQuery's patches are really useless
- Use the platform, create less dependencies (Better path to ES6).
So what do you think? No need of jQuery anymore? You're right, we don't need jQuery at all. And that's what we are trying to achieve in Joomla! 4 😉.
If you still have doubts on how we are doing this VanillaJS conversion, have a look at at the image below.
Do not hesitate to visit the GitHub repository of this project.
A journey of a thousand miles begins with a single stepLao Tzo
It is a great pleasure to write my first blog post on Google Summer of Code project with Joomla and let me introduce myself.
I'm Supun Wanniarachchi, a Google Summer of Code student at Joomla. I’m a final year Software Engineering Undergraduate at Informatics Institute of Technology - Sri Lanka, affiliated to the University of Westminster (UK). This is my second time (last year project) as a GSoC student and I hope to do more, and even better with great guidance from my mentors Ruchiranga Wickramasinghe, Ashan Fernando, Yves Hoppe and Dimitris Grammatikogiannis.