I coded mostly in solitary when I first started learning but found that when I finally started coding in groups at meetups my learning skyrocketed. The different tech stacks and opinions others had helped me to learn what I didn't know and that made me a better developer. I never had a mentor but I would imagine it would have been a great boon to the process.
Yes, I had a mentor.
Almighty Google.
But no, not a real one. It was a hard time of no mentors, when search engines were stupid, no GitHub, no StackOverflow, it was a time of useless books, CDs and time when you were trying to ask google things you had no idea how to call.
Yet, I've randomly found a local web dev school and it helped me to move forward, by that time I've already learned basics/mid of HTML, CSS and PHP on my own. Yes, good old times without JS.
I learn from others in groups mostly. I've not had one single dedicated professional mentor but frankly, I don't think "simply having a mentor" is necessarily of much value. Obviously, it would depend greatly on the mentor and their actual skills as well as their skills and desire to teach. I think that having a mentor who is unmotivated, teaches bad habits, etc... is actually worse than having no mentor at all.
Now, if I was able to work under the wing of a guy like Uncle Bob Martin, Jonathan Blow, Casey Muratori, Landy Wang, or Anders Hejlsberg for a year, then of course that would be another story.
I didnʼt, and thatʼs probably the case with most coders my age (at least in my country).
When I got my first computer, I was amused by all the things it could do. Not just that I can play nice games on it, but that I can give it orders and it carries them out. It was awesome seeing my name on the TV screen after I typed PRINT "Hello Gergely". I wanted to learn it hard, but my mom said itʼs useless (computers werenʼt widespread at the time, so to say). Nevertheless, she signed be up for the schoolʼs computer faculty class (every Monday, after school), and I happily attended. I still remember “Kriszti néni" (literally “Miss Christina”; I canʼt recall her surname, even though she was my hero back then,) she taught us a lot about basic coding in, well, BASIC.
After that, however, I was on my own. We moved to a different city at the other end of the country, and my travel as a lonely programmer began. I did have a classmate who was interested in computers, but he liked using software much more than creating them (and heʼs became an aerodynamics expert since then).
In high school I became the sysadmin, as neither teachers could do it (why it was their job is beyond me). I was allowed to do it as long as I donʼt skip classes and my grades remain at least average. So I did; with some help, I built the network of that school, and I learned a lot. I created their homepage (first in Perl CGI then in PHP3), and I learned a lot. Then I graduated and I soon got my first job as a sysadmin, and I learned even more.
Since then, Iʼm so busy with my work I donʼt really think about having proper schooling on these subjects. With huge companies on my CV, no one ever asked me if I have grades.
=====
Now that I think back, I donʼt know if any mentors could help me more than I did myself. I have the power to be able to ask if I get stuck (unfortunately, many developers lack this skill), so I can get along pretty well. On the other hand, I know well this wouldnʼt work for anybody. I was a huge introvert back then, finding my first good friend around the age of 16.
The best thing anyone can do is to know themselves. If you know you can get along well alone, do it. If you think you need a teacher or mentor, do it. Itʼs all about you, so you can be a bit selfish this time.
Have fun coding!
Sadly no. I was also solitary. I got in trouble when I was a kid and my parents took away TV viewing as punishment. Almost a year. I don't even remember what I did to deserve that severe a punishment, but it was something around some critical piece of homework I didn't complete. Whatever... I used the time to teach myself programming. Best. Punishment. Ever. LOL!
Since then, whenever I've had a chance to have others code with me who know things I don't, it's been a huge benefit.
My story has been pretty similar. I learned how to program on my own, I worked mostly as a freelance front-end developer for a few years. After that I worked for a consulting firm building MVP apps and my experience like you said.
Along the whole way though I tried to find anyone that would answer my questions (mostly through Twitter or forums) and stick with them. Through that I've made several friendships that have lasted through the years!
József Pallagi
Full-stack Developer [Angular, Java]
To have a mentor on your side can make happier your life and can ruin your life as well. I remember at my very fist job, I got a mentor who was an excellent developer, but he was a terrible person. When I made some mistake He become angry and telling me that ''What a fuc* I was thinking about' and 'I should stop developing due to my mental disability' we had very bad conflicts. However this was my only bad experience in mentor ship. My other mentors, current one as well, is very patient and very good teachers not just good developers.