By that logic, you might ask how we have time to do anything? How do we find time to eat? How do we find time for HN?
Learning a programming language doesn't have to mean mastering the language. Make a game out of it. Pick one "thing" about the language and spend 15 minutes on reading / practice on that thing. Make an Anki card (or multiple cards) on that thing and run through the deck for some other 15 period "learning" break. Maybe this doesn't work for you either, but it's something else you can try other than chaining yourself to your computer until you come out a master.
Meanwhile, you can use one of your legs to relax, and the other one to interact with your family (unless having a family is too unprofessional).
Instead this adds new tools to your toolbox, so next time you can choose a tool that's a better match for a problem instead of trying to bend a language that wasn't created to solve such problems.
IMHO having many small specialized "speedboat languages" around which can be learned in a few days to weeks is much better than having a handful huge "oil tanker languages" which eventually become overly complex "jack of all trades, master of none" boondoggles.
Some argue that as a professional, you should be spending time outside of work learning to improve your career. You can't expect your employer to give you time to learn.
I find it can be difficult though, especially when you want to spend your time outside of work on other things like family and hobbies.
Most states seem to require between 8 and 15 hours of CLE per year. (https://www.lawline.com/cle-requirements)
You'll find that with most actual "professions".
I've taught myself web development and thus got my first job. I've taught myself iOS development and was able to switch to it full time later.
A rails developer gets paid to make rails apps and maintain them. If you notice that your company will have to pivot soon and another technology will be needed, I hope they allow you to learn on the job, but many are far too shortsighted, so you have to do so outside of work and it's the reality of the situation however stupid.
Unfortunately not everything gets done, or paid for, during work time.
It is quite different for someone who is 25 and does not get enthusiastic about spending a lot more years in the field; why would you then learn a lot of different languages? It makes more money, short term(!), being good at one language just jumping up the ladder as fast as you can using that.
The field of software engineering as a whole? Nope, not dysfunctional. Creating the most value in the world since the internal combustion engine and doing so super smoothly.
<?php declare(strict_types=1);
function fibonacci_nth(int $n): int {
if($n === 0) return 0;
if($n === 1) return 1;
else return fibonacci_nth($n - 2) + fibonacci_nth($n - 1);
}
function fibonacci_series(int $n): array {
return array_map('fibonacci_nth', range(0, $n));
}
And here in Python class Fibonacci:
def fibonacci_nth(self, n):
if(n == 0): return 0
if(n == 1): return 1
else: return self.fibonacci_nth(n-1) + self.fibonacci_nth(n-2)
def fibonacci_series(self, n):
return [self.fibonacci_nth(x) for x in range(n+1)]But the loops will be clear and explicit. People can check if you have an off-by-one error.
Python does not support many recursive calls, after "n" gets beyond a certain number, the code will crash with a RecursionError.
That is a bug which is much harder to see. The code will crash if N < 0 for the n_th() method, which is probably a bug.
Sure, handrolling a loop is a trivial activity that novice programmers can figure out, so you should _never_ get it wrong because you _never_ ever program tired or hurriedly under deadlines or make typos or input off by ones...
How much of that can a C++11 compiler do for me?
When exactly are we supposed to be learning all these languages? Nights and weekends that effectively has you working 24/7? Or more likely some developer that has a personal relationship with the CEO and can do no wrong reads a blog post on language X and catches the fever. Well, he needs some practice and he’s not working nights and weekends so now we are rewriting things or working in a mixed environment. He knows just a smidge more than the rest of the team so he’s in charge but can’t be seen as anything less than an expert so they pretend they are. He leans on dogma and best practices as he bullies the team as they screw things up left and right.
Anyone who is stupid enough to say that we should have stayed with what they had been using will be labeled as not a team player and blamed for the failures.
Those failures will be used as proof that our hero is as amazing as he says he is as he becomes a 10x programmer by kneecapping the rest of the team and valiantly struggles to pull and incompetent team forward.
Next thing that happens is the good developers leave and the rest are forced out or fired assuring our hero developer a fresh crop of devs who don’t know the history of the project cementing the myth that our developer is a genius in our new language.