Python as a Beginner Language

srothman

Expert Member
Joined
Mar 30, 2010
Messages
2,756
I'm considering taking up a programming language as a hobby, and thought about Python.

Being a techie at heart, and currently in a cloud solutions role, I figured this might assist me in these activities as well. I do a fair bit of scripting at the moment, so I'm comfortable with that.

Thoughts on Python as a step up? Any resources that anyone can recommend to get started other than just Googling a bunch of stuff and running through it?
 

Johnatan56

Honorary Master
Joined
Aug 23, 2013
Messages
30,955
https://www.codecademy.com/learn/python

After that, think of a project you'd like to do and try it. Once you're done, do another similar one, you'll realize all the code you can write better than previously with the new knowledge you gained.
Then think of another that's a step up or keep adding to the project.
 

cguy

Executive Member
Joined
Jan 2, 2013
Messages
8,527
Sounds good to me. Any type of scripting or glue code I write, I write in Python. I found it very easy to learn, and pretty much any information on how to do anything in it has already been asked and answered on Stackoverflow.
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,920
Python is great for learning. I have a soft spot for it :D
 

ima_be_thatguy

Well-Known Member
Joined
Sep 21, 2015
Messages
115
I would suggest you not start with a scripting language as a first option, and do Java or C# instead, and perhaps focus on algorithms and problem solving. Reason for this, scripting languages as a first language tend to teach alot of bad practices that strongly typed compiled languages does not allow. And Learning the programming basics with a language would enable you to learn any other language later on. Hope this helps
 

SlinkyMike

Executive Member
Joined
Jan 23, 2006
Messages
9,578
I would suggest you not start with a scripting language as a first option, and do Java or C# instead, and perhaps focus on algorithms and problem solving. Reason for this, scripting languages as a first language tend to teach alot of bad practices that strongly typed compiled languages does not allow. And Learning the programming basics with a language would enable you to learn any other language later on. Hope this helps

Username checks out.

Ima be that other guy: Stop hating on "scripting" languages. It is a strawman argument since 'scripted' or 'compiled' is a function of the tools used to run the code.

Python is a excellent language with very valuable applications. More so if your work involves data and plumbing data from one place to another, segmenting or combining sources, etc.

inb4: someone posts the JavaScript Wat video.
 

ima_be_thatguy

Well-Known Member
Joined
Sep 21, 2015
Messages
115
Username checks out.

Ima be that other guy: Stop hating on "scripting" languages. It is a strawman argument since 'scripted' or 'compiled' is a function of the tools used to run the code.

Python is a excellent language with very valuable applications. More so if your work involves data and plumbing data from one place to another, segmenting or combining sources, etc.

inb4: someone posts the JavaScript Wat video.

LOL! Im not hating on python, or scripting languages in general, Im saying you want to learn programming, do so with the basics in mind. And python will teach you some basics, but overlook really important things, and IMO severely hamper OPs ability to learn further languages.
FYI, I enjoy python tremendously, but Ive done Java, C# and python, and Yes PHP.
So having worked in both camps, I would definitely recommend going the route of doing compiled language first.
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,920
I would suggest you not start with a scripting language as a first option, and do Java or C# instead, and perhaps focus on algorithms and problem solving. Reason for this, scripting languages as a first language tend to teach alot of bad practices that strongly typed compiled languages does not allow. And Learning the programming basics with a language would enable you to learn any other language later on. Hope this helps

He's doing it as a hobby so doubt it'll go any further than python and javascript. He's not gonna be taking C++ for a spin any time soon so he can just as well stick to one of the easier languages out there.
 

srothman

Expert Member
Joined
Mar 30, 2010
Messages
2,756
He's doing it as a hobby so doubt it'll go any further than python and javascript. He's not gonna be taking C++ for a spin any time soon so he can just as well stick to one of the easier languages out there.
This is right on the money.

My scripting experience is more incidental than anything else, with my job involving a lot of automation and templatised deployments. It made sense to make life easy by scripting as much as I can.

I would love to have a more in-depth knowledge of "proper" programming, but I also know myself, and I know it's not really who I am.

Since posting I've spent some more time researching the practical application of Python, especially in the IoT and Big Data space, and it's beginning to make more sense looking at it.
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,920
SARS and, if I'm not mistaken Takealot makes extensive use of Python.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,842
Try the free Microsoft course on EdX.

See how you like it and take it further from there.
 

Hamish McPanji

Honorary Master
Joined
Oct 29, 2009
Messages
42,084
LOL! Im not hating on python, or scripting languages in general, Im saying you want to learn programming, do so with the basics in mind. And python will teach you some basics, but overlook really important things, and IMO severely hamper OPs ability to learn further languages.
FYI, I enjoy python tremendously, but Ive done Java, C# and python, and Yes PHP.
So having worked in both camps, I would definitely recommend going the route of doing compiled language first.
Oh. You gonna be that guy??
 

stepper

Expert Member
Joined
Dec 6, 2004
Messages
1,838
I regret not learning python long time ago, my work would have been made easier as it involves lot of data sourcing and analysis. Now, whenever I have to do something, first thing that comes to mind is there must be py module for that or or I can quickly put together a script.
 
Top