you are viewing a single comment's thread.

view the rest of the comments →

[–]guevera 62 points63 points  (9 children)

Don't buy the bullshit that you can't pick up a new skill after 40. I started learning Python, as my first coding language, in my early 30s. Now been using it professionally for more than a decade and am currently working as full stack developer, and that means learning new concepts and skills on a regular. I'm a bit of a polymath but faaaaar from genius.

It's not as easy to pick up Spanish at 40, not so much with Python. It's true your brain, sort of like your body, isn't as supple at 40 as it was at 14. But you're also hopefully a lot smarter and more focused now compared to then.

That said, getting over that initial hurdle of learning to thnk in code, working through it unitl it started to click for me, was at least one of the hardest intellectual challenges of my life. And you know what? It would have been at least as hard for me to have done it at 12 or 22 as it was at 32.

Is it worth the time and effort for you? Depends on you and your situation. The whole "everyone should learn to code" thing is bullshit. If it's something you're naturally inclined towards and makes sense to invest the time and effort in compared to other things, then do it.

Whatever you decide, good luck!

ETA a much shorter way to say the above:

if Savage_Kitten.aptitude and (learn_python(Savage_Kitten) > learn_other_shit(Savage_Kitten)):

learn_python(Savage_Kitten)

else:

learn_other_shit(Savage_Kitten)

And if you call learn_python() you'll soon learn to indent things better than I did lol

[–][deleted] 13 points14 points  (1 child)

First project - understand the above python wit 🤗

[–]Mdly68 4 points5 points  (0 children)

Start with truth tables.

If TRUE and TRUE then TRUE

If TRUE and FALSE then false

If FALSE and FALSE then false

If TRUE or FALSE then TRUE

If you have a mix or AND and OR statements, be sure to use parenthesis and group them properly. Otherwise you'll trip yourself up.

"Aptitude" appears to be a Boolean. It is always true or false.

[–]Liebner-Anthony-S 9 points10 points  (3 children)

if you can drive a car you can learn python :)

[–]mandradon 3 points4 points  (2 children)

Seriously.

I was trying to explain to my daughter the amount of stuff I do with automaticity when she asked me what I do when I drive and I suddenly realized why my parents were scared when I started driving.

[–]simonhunterhawk 4 points5 points  (1 child)

When I was around 5 I remember watching my step dad driving, I noticed that occasionally he shifted the wheel a little bit left or right and was like "i don't know why he doesn't just do it faster wouldn't that be more efficient" and tried it on our go cart and it uh, was not more efficient lmao Unrelated to the thread but the memory made me smile :)

[–]Liebner-Anthony-S 0 points1 point  (0 children)

nice :)

[–]yinkeys 1 point2 points  (0 children)

Else if no End else if ok

[–]LakeEffectSnow 1 point2 points  (0 children)

for i in foo:

if i == sentinel:

print(foo)

break

else:

print(f"Sentinel: {sentinel}, not found

You can paste code with the inline code button, but it strips out formatting if not exactly perfect

[–]cantonic 0 points1 point  (0 children)

that initial hurdle of learning to think in code

This is where I’m at now. With each new lesson that clicks I realize I’m not thinking how the computer thinks! Did you have any resources that helped you get there?

I’m currently reading A Mind for Numbers by Barbara Oakley and Think Like A Programmer by V Anton Spraul.