Python Beginners

noonsi

Member
Joined
Apr 24, 2016
Messages
21
Reaction score
1
Before creating this thread I had a look, and was quite surprised to see very little conversation regarding Python on the forum.

I recently enrolled in a couple of online courses (Udemy and DataTrack) after picking up a 'Study Urge' over the past year or so. What started with a GetSmarter course just over a year ago, has lead me to discover a renewed sense of wanting to learn more. I'm currently deciding on what will be my third course with them, as well as a couple of side-line interests on the aforementioned two online platforms.

Having no previous knowledge of 'coding' I came across Python and Jupyter Notebooks (via the course offered on Udemy)

So, anyone else here who is new to Python, or, someone who is experienced and has some wisdom to impart?
 
Just start coding. You will learn more if you have a real project.
 
Python is the language where if you try to shoot yourself in the foot, you'll constantly miss because of the (white)space between your toes... or something like that :-P

Python is a cool language. I use it extensively. But MyBB is probably not really the best place to come for that discussion, there are many programming-focused forums on the web for that? Stackoverflow is the one that comes most readily to mind.

My favourite book is Dive Into Python, but you do need to have a solid programming background before it'll be accessible.
 
I quite enjoyed Learn Python The Hard Way. I'm very much a beginner when it comes to programming, although I get around nicely with scripting such as Powershell (which I think helps a lot, tbh), so I am keen to follow this thread.
 
I learned other languages more formally and python from working directly in it. Its a very easy language to learn compared to some others and is very powerful, especially as a scripting language.

Its a non-compiled language which took some getting used to as compared to the more formal compiled world I came from but with a decent IDE you learn how to not let stupid bugs into your code.
 
Also on the python page coming from php.

I found the link by @srothman to be a great start and shortly after that I started to dig into Django.
 
I am also starting to dive into Python. Actually got 3 Udemy courses on special this week.
I am a developer professionally and just wanted to learn another language as a hobby and maybe build some small games using it.

So far, Python is very easy. Compared to other languages I learned over the years Python is probably the easiest to get into. This could also be because I already know programming.
 
So far, Python is very easy. Compared to other languages I learned over the years Python is probably the easiest to get into. This could also be because I already know programming.

I still have to learn more languages it seems, python feels an order of magnitude more difficult than PHP for me, then again both are still a billion times easier than JS.
 
I still have to learn more languages it seems, python feels an order of magnitude more difficult than PHP for me, then again both are still a billion times easier than JS.

I have done Java, vb.net, C#, IMB RPGLE, PL/SQL and now learn Python.
 
Last edited:
I have done Java, vb.net, C#, IMB RPGLE, PL/SQL and now learn Python.

Try PHP for the giggles, you'll pick it up in a day I am sure of it.

Simpel example, ubuntu + apache + mysql + php

index.php

<?php

echo "hello 2 U";

?>

done, you are now a php programmer.
 
Try PHP for the giggles, you'll pick it up in a day I am sure of it.

Simpel example, ubuntu + apache + mysql + php

index.php

<?php

echo "hello 2 U";

?>

done, you are now a php programmer.

Nice. Hardest programming language that I had to learn was RPG. That stuff will break your brain!
I think Python will be a good Hobbie language and might turn into a career tool of choice later on.
 
Last edited:
Try PHP for the giggles, you'll pick it up in a day I am sure of it.

Simpel example, ubuntu + apache + mysql + php

index.php

<?php

echo "hello 2 U";

?>

done, you are now a php programmer.

I wonder why you are using PHP tags? :p
Like every other language, there are multiple ways to do the same thing. If you're just echoing, I'd prefer using a short tag <?= "hello 2 U" ?> but since it's just html, without the php tags would be even better.

@Thor, try out Go, here's a web server tutorial I followed: https://golang.org/doc/articles/wiki/
Though I suggest you use something like: https://miek.nl/go/learninggo.html

Prefer it over Python. :p
 
I started learning it by writing a useful application that people could actually use, now thousands of people are looking at my code wondering wtf I was trying to do :D
 
I wonder why you are using PHP tags? :p
Like every other language, there are multiple ways to do the same thing. If you're just echoing, I'd prefer using a short tag <?= "hello 2 U" ?> but since it's just html, without the php tags would be even better.
It's not allowed in the PSR standard.

@Thor, try out Go, here's a web server tutorial I followed: https://golang.org/doc/articles/wiki/
Though I suggest you use something like: https://miek.nl/go/learninggo.html

Prefer it over Python. :p

Once I am done with python I want to take on GO, I am doing python cause it seems the world is moving to AWS Lambda and php won't work for that unfortunately.
 
As a somewhat experience coder i would advise that python isnt the best for learning at the start. Sure python is crazy easy as a language , straightforward and the syntax is very readable. However most experienced coders will tell you being in this profession takes alot more than knowing one language thats easy, you will many a time find yourself working with other languages most based of of c. When you know one or two of these older not so user friendly languages everything else becomes logic and even easier.

Im not downing python its a good language all languages are good if they are used for what they are best suited.

You should also remember from a job perspective that many senior coders who have done java and c are bored or their companies are upgrading to newer tech like python so they will be first inline for those jobs. You as a somebody new will struggle to get work as a python guy. When these older guys leave to work the new code gaps open up in places like php , the stuff nobody wants to do.... Got to start from the bottom mate thats where fresh blood comes in.
 
It's not allowed in the PSR standard.

Once I am done with python I want to take on GO, I am doing python cause it seems the world is moving to AWS Lambda and php won't work for that unfortunately.

Erm, no, it is allowed. It's actually rule number 1 of 1.
PSR standard.png

AWS Lambda wise, you can use PHP:
Ruby and Go are also supported.
 
Erm, no, it is allowed. It's actually rule number 1 of 1.
View attachment 514275

AWS Lambda wise, you can use PHP:

Ruby and Go are also supported.
Aha sorry.

Oh well I still avoid shorthands at all times.

Did not know AWS supports php, although natively it doesnt look like it does, seems php needs to be put in some sort of a wrapper?
 
Last edited:
You’ll either use php short echo never or all the time

If you are using a something like twig or blade then you will never use them.

If you are using php as a raw templating engine, then you should use them.
Code:
<div>Welcome <?php echo $user->getFirstname() ?></div>

is so much noise compared to

Code:
<div>Welcome <?= $user->getFirstname() ?></div>

The IDE also makes it clear what is what

It also doesn’t require modifying “short_open_tag = On”

The only place you would ever use them are in “html” files
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X