In the last year or so, I've been seeing lots of questions that are related to many different aspects, but have a common factor: a certain YouTube tutorial[see below note].
Problem is, that tutorial suggests a terrible amount of bad practices, but since it has become quite popular and appears frequently in top results, I can see a lot of posts caused by its issues.
The average is about 4-5 a week (topping at more than 3 a day), I know it's not a huge amount, but after all this time, it got really annoying. I only follow a few tags and I love to spend time in answering that very small niche, but I also like to spend some quality time in doing that while knowing that I'm still useful to the community, instead putting hours of my time trying to "save" people from irresponsible wannabe-teachers that only care about views (and the income they get from those).
I know I could just downvote and ignore most of those questions, but I don't believe that would be a proper approach for the spirit of SO, and, honestly, I feel sorry for those beginners who are daily "instructed" with such amount of 🤬🤬🤬🤬.
I cannot even count the amount of issues.
Starting from generic ones (superficial usage of global variables, generic exceptions, bad/inconsistent code styling and syntax), going through security related (full string SQL queries) or usage inconsistency (properties arbitrarily set from the UI designer or by code without distinction), and ending with those specifically related to the tutorial subject (UI that completely ignores basic aspects as layout management or display issues, wrong usage of specifically intended classes). Not to mention typos shown in the video: they have been corrected in the linked repo, but we all know what that could mean.
I am completely aware that almost all the aspects above can be part of a tutorial (show a wrong way to do things for the right reasons), but a responsible tutorial should also warn whether an explained approach is only intended for explanation purposes. I have been a teacher and aware about didactic aspects since I was a teenager: if you want to teach something, you must be aware about the importance, meaning, results and implications of what you're teaching.
Needless to say, that never happens in those tutorials. They just don't realize (nor care about) any of that.
Now, after all this time, I got really annoyed, and I really feel sorry for those poor beginners.
I obviously tried to contact the author (which, not unexpectedly, ignored me) and commented the videos (the first comments got obviously deleted, their careful attention to their users obviously diminished after that...), but that's not the point.
Until now, I decided to write a specific comment to each question (addressing the above) or eventually answer them for specific aspects, but I don't think I could take this any more.
A recent question gathered my attention, and it seems that it could fit a generic answer related to the whole problem: my intention was to use it as a target for future duplicates that are clearly caused by that tutorial. I would answer the specific problem (a bit broadly, possibly) and eventually add further notes related to other issues caused by that tutorial. I was not going to address all issues, but, at least, the most important ones.
Yet, I am not really sure about it. I know that SO posts should be specific to a problem that is being asked, not generally aimed.
Still, the conflict remains:
- decide to ignore those posts at all (and I'd feel really sorry for those beginners);
- constantly "lose" time by writing answers caused by an irresponsible youtuber, time which could be better used to focus on more important questions;
- keep writing comments about that (and still not really answering the questions);
- create the above mentioned "template" answer, which would seemly be against SO rules;
NOTE: Sorry, but I won't provide the direct link to that tutorial: it already has too many views and references, so I don't want to contribute to its visibility in any direct way. If you want to see it, its first video has an YouTube ID that starts with RxGlB9
and is followed by U64fg
.