I'm in this boat. Finally started programming in 2018 at age 38 after a lifetime of playing around with computers as a hobby (thanks, dad!) and a first career in a completely unrelated field, as an attorney. The linked article is about learning for pleasure, but there are also challenges associated with trying to enter the field as a second career. The technical complexity, of course, and the scale of what needs to b…
If you don't mind me asking, why would one give up a cushy, well paid attorney career and choose software engineering? Software engineering compensation _tops out_ below where an experienced attorney compensation _begins_. The least I've ever paid a lawyer was $250/hr.
On finally learning to program at the age of 40
51–60 of 169 posts
Re: On finally learning to program at the age of 40
#52I rediscovered it as a teenager in highschool and wound up making a basic platform game with a mess of shitty spaghetti code goto statements and drawing lines on the screen. It was great. My dad wanted to encourage me but didn't know how, so he got me a C++ book from the library but it just made no sense and I couldn't get anywhere.
Fast forward to being 23 and deciding what to major in at University. I rediscovered the idea of programming and instantly fell back in love with it. I remember blowing through the entire first semester textbook in 2 weeks and really getting it. It felt like a super power had finally been unlocked. Still does.
I was so glad to reconnect with programming. I always feel I would have been an absolute whizz kid by now if I had really picked it up when I was a teenager and part of me is a little sad about that.
Re: On finally learning to program at the age of 40
#53Earlier quoted context omitted.
No it's not quadratic: since there is at most one conflict it will be linear.
It depends how you count. Is string reversion an O(1) or O(N) operation with N the string length? I believe is is O(N) and if you loop over it N times thats O(N^2), isnt it?
def check(s):
is_palindrome = lambda s: s == s[::-1]
if is_palindrome(s):
return True
d = [a==b for a, b in zip(s, s[::-1])].index(False)
return is_palindrome(s[d+1:len(s)-d]) or is_palindrome(s[d:-d-1])
edit: It must be len(s)-d rather than -d, to handle d=0.Re: On finally learning to program at the age of 40
#54I remember discovering QBasic as a kid and being totally absorbed in it. I couldn't understand what an array was, so that halted my progress. I rediscovered it as a teenager in highschool and wound up making a basic platform game with a mess of shitty spaghetti code goto statements and drawing lines on the screen. It was great. My dad wanted to encourage me but didn't know how, so he got me a C++ book from the librar…
Re: On finally learning to program at the age of 40
#55Re: On finally learning to program at the age of 40
#56The thing that got me interested in this again was the excellent 'Automate the Boring Stuff with Python' https://automatetheboringstuff.com/.
This was my best lockdown read so far. I have used it automate some dumb stuff I have to do at work (moving mouse clicking). Get real-time custom alerts on my bank transactions and a develop an app that logs into a site, searches keywords, scrapes results and sends me an email each morning.
Can't recommend the book highly enough.
Re: On finally learning to program at the age of 40
#57I remember discovering QBasic as a kid and being totally absorbed in it. I couldn't understand what an array was, so that halted my progress. I rediscovered it as a teenager in highschool and wound up making a basic platform game with a mess of shitty spaghetti code goto statements and drawing lines on the screen. It was great. My dad wanted to encourage me but didn't know how, so he got me a C++ book from the librar…
i started off programming with qbasic as well -- i remember when i finally figured out what arrays were and how to use them -- now if i wanted to animate many enemies/projectiles i didn't need to keep copying and pasting and defining more and more variables for each new entity! magic! at some point i got hold of a copy of darkbasic (a basic product with simple access to input, 2d graphics and sound) and made some home-brewed space invaders knock off -- all of the entity state was encoded as some horrible huge 2d array -- one index for entity id, the other index for attribute. probably all attributes were stored as integers, with different meanings depending upon the entity type, also stored as an int in one of the columns.
Re: On finally learning to program at the age of 40
#58Earlier quoted context omitted.
If you don't mind me asking, why would one give up a cushy, well paid attorney career and choose software engineering? Software engineering compensation _tops out_ below where an experienced attorney compensation _begins_. The least I've ever paid a lawyer was $250/hr.
maybe there are too many lawyers and the field is thus not as well remunerated as you think https://www.thoughtco.com/are-there-too-many-lawyers-4026025
Re: On finally learning to program at the age of 40
#59Sadly it's basically dead now.
Re: On finally learning to program at the age of 40
#60I remember discovering QBasic as a kid and being totally absorbed in it. I couldn't understand what an array was, so that halted my progress. I rediscovered it as a teenager in highschool and wound up making a basic platform game with a mess of shitty spaghetti code goto statements and drawing lines on the screen. It was great. My dad wanted to encourage me but didn't know how, so he got me a C++ book from the librar…
Be that whiz kid now. You needed time to “kid” and now you have time to program.
That being said in just 7 short years I've gotten onto doing platform level development and having a great time doing it, so I'm pretty much right where I want to be.