In better times, when we were better people, we'd call this a "nigger-rigged" electrical
Nowadays the proper terminology is "African American Engineering" but the premise
is the same.
I am not an electrician, but I can fairly tell you that with my IQ of 26, I am fully qualified to be one. And no, that tuna can junction box doesn't pass muster. But with a little work, a proper lid, and a proper seal... in a pinch - it easily could. No, it would never meet code and if the inspectors caught you doing it, they'd write you up... but in the real world, away from the leather elbowed paper pushers, rubber stampers, and affirmative action employment agencies - this kind of improvisation can work - and work well.
As I get older I appreciate the little victories that people win for themselves. The ability to improvise successfully requires also the ability to think critically. Although some people are born with them, those two things can be successfully taught to those that are not. My dad was a master mechanic that could start sized engines with a dirty look. I was strictly forbidden from messing with engines or borrowing his tools and we almost got in a fist fight when I decided to do my own brakes on the motorcycle when I was a kid. I bought a manual, tools, parts, brake fluid - and went at it. And sure enough I had problems. In sheer misery, I phoned Dad and told him what was happening. He listened, and smirked, and patiently explained how to properly bleed the air out of the brake lines. The brakes on that bike never troubled me again. I think sometimes that I should have continued, acquiring tools and experience... but Pop talked me out of it. He didn't want his sons working in grease and oil, and like most highly skilled craftsmen … he had little time for teaching and mentoring.
I think mentoring is another skill that we are losing in our culture, and one that will come to bite us on the arse in the days to come.