In one of my previous companies, Our workload as developers went significantly down, code quality went up and bug complaints went down after we hired a QA team, as opposed to the developers doing it themselves.
It is important for code to be looked at and tested with a fresh perspective
Does the same as the $ query but native in every browser in IE9+ and gives you a native node. Also more performant than getElementBy<whatever> methods.
You can define your own `$` function. This way you can have the clean code without the entire jQuery library
function $(arg) {
if (arg.charAt(0) == "#") {
// HTML spec does not support ids to start with numbers [0]
// (you may not need this conditional on your website)
return document.getElementById(arg.slice(1))
}
return document.querySelector(arg)
}
Using this function you can select your comment with
$('#27677234')
jQuery does add many extra features but if clean code is the only thing you are after there are other options.
True, but jQuery does a lot more than just id selection with $!
You could just extend the function to detect '.' vs '#', and do a class selection as well. And then add all of the selectors, subselectors, etc. (similar to, but far more powerful than css3's selectors.) and if you go far enough, you reinvented zepto (but still a long way from jQuery)
(actually, since $ is basically synonymous with jQuery, it'd probably be better to choose a different function name. too bad you can't define it as #(id).)
I pivoted to create a search engine for cryptocurrency instead as current solutions for crypto price change comparison like coinmarketcap or coinranking, seems to do the job well. Thoughts?