r/learnpython • Author of "Automate the Boring Stuff" • May 27 '19

"Automate the Boring Stuff" author is live streaming Python programming on Monday evening 5/27, 6pm Pacific

Hi Reddit! I'll be live streaming myself working on a few different text-based games in Python on Monday, 5/27 at 6pm Pacific:

https://www.twitch.tv/alsweigart/

I'm creating a collection of short, complete, text-based Python games. The idea is to create several examples for beginner/intermediate programmers to look at to see how programming concepts come together into a complete program (while still being small enough to understand). The current collection is on GitHub at: https://github.com/asweigart/PythonStdioGames/tree/master/src/

554 Upvotes

27 comments sorted by

35

u/thesquarerootof1 May 27 '19

Nice! I love your books by the way. I have recently aquaired a job at a Fortune 500 company writing scripts to automate internetworking tests (for routers, switches, flash memory for online storage, etc). Any advice or tips on advice is appreciated on that. It is niche so I don't expect you to fully know it but it's automating pretty much.

5

u/luger718 May 27 '19

As someones who's getting into networking and Python your job sound interesting. What exactly do you do and what modules in Python do you take advantage of?

5

u/thesquarerootof1 May 27 '19

I've had a few PMs regarding this, so I'll just copy and paste it if you don't mind:

I won't tell you the company I work for but I'll try to give as much detail.

So essentially I work on a team that does research and development for a product that consists of flash arrays and stores memory on a cloud as well as hardware. It's for businesses. This product has routers, flash arrays, and it is pretty much an network engineering position.

I do quality assurance. I am given test cases for example: what is the output/how does the hardware act if these certain ports are disabled. I am automating the quality assurance process. I do test cases on switches, routers, and all that jazz.

Anyway, I am using Python and the primary library is called Paramiko, an SSH library.

http://docs.paramiko.org/en/2.4/api/client.html

I'm a fresh computer engineering graduate and I have taken one intenetworking class, but this job is very new to me because there is so much internetworking stuff I do not know.

So that is the gist of it, I'm still trying to get use to it.

14

u/Calierio May 27 '19

Thanks for streaming, Al! I'm an Oaklamd teacher learning python to help support our school's merger, where we'll be doubling the student population.

Automate the boring stuff helped me write scripts to automate hours to minutes. I'm so grateful.

Thankful for your streams, hearing an experienced programmer articulate problem solving helps me immensely.

Keep it going, would love to buy you a beer sometime for all your efforts.

6

u/sharkgantua May 27 '19

Nice! I've bought a lot of your books off Humble Bundle programming book sales but haven't dove in yet. Do you recommend a good order to read your books in?

5

u/[deleted] May 27 '19

Awesome thank you for your work!! It’s really helped me get into python :)

5

u/_Mega_Zord_ May 27 '19

Thanks Man!

You did an amazing job!!

Looking forward to learn more!

4

u/JayDude132 May 27 '19

Your books are great! I have been reading both Automate the Boring Stuff and Invent Your Own Computer Games with Python 3rd Edition.

A friend and I have recently been interested in creating a text-based zombie game (similar gameplay to Zork) but I dont know how to keep track of where my character is on a map.

I hope i get the chance to check out your stream tomorrow!

5

u/ThePotterP May 27 '19

You could use a list to keep track of coordinates which you could then use to show the journey taken. Just something like:

Last_coords = [(0,0), (0,1)] to get the last position you’d do last_coords[:-1], the first would be last_coords[0], and to get the entire journey you’d just iterate through the list. You’d just add the new coordinates every time your player takes a “step”. Can also use a dictionary if you’ve made certain areas i.e locations = {“woods”: (0, 0), “forest”: (0, 1)} and whenever your player enters that area just set a variable called player_location to locations[“woods”]. Hope this helps!

1

u/JayDude132 May 27 '19

Thanks! I have been thinking about using lists or dictionaries in some way but wasnt quite sure how. That makes sense though, thanks for the help.

3

u/[deleted] May 27 '19

Going to watch it. I love your book, it is teaching me so much. Thanks!

3

u/Spurnout May 27 '19

Awesome, just put this on my calendar!

2

u/luger718 May 27 '19

Awesome! I caught the last stream and was working on the book today!

Just worked out the mad libs project in chapter 8. Ended up needing help from the internet but learned a lot and made what I found better/more concise.

2

u/arup_r May 27 '19

I really like you too. :)

1

u/w38d3v310p3r May 27 '19

RemindMe! 19hours automations!!

1

u/RemindMeBot May 27 '19

I will be messaging you on 2019-05-27 22:27:01 UTC to remind you of this link.

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


FAQsCustomYour RemindersFeedbackCodeBrowser Extensions

1

u/Dionatos May 27 '19

Oh damn, that's 3am my time

1

u/thatisreddiculous May 27 '19

Any chance there will be recordings available? Big fan but living in Asia and the time difference means I’ll be at work :(

1

u/Bumblingbeginner May 27 '19

It would be great if it’s recorded! A little too late at night for us Europeans.

1

u/Neuro_88 May 27 '19

Nice! Going to watch it this time. Great book by the way.

1

u/Wh1t3_F0x May 27 '19

!remindme 1 day

1

u/[deleted] May 27 '19

Great!!! Loved your book BTW.

1

u/[deleted] May 27 '19

I shared this on my Linkedin because I think many of my friends will like to attend. If that is ok. I'm working but next time.

1

u/biogenmom May 27 '19

So exciting! I've been meaning to work my way through "Automate the Boring Stuff" for ages now and have finally started! It's going well so far, I find that your explanation of concepts paired with entering text in the shell and writing code has really helped me learn.

1

u/[deleted] May 28 '19

Did I miss my chance to see this stream? Is it recorded somewhere? Unfortunately I wasn’t able to make it and I’m very interested in seeing this.

1

u/[deleted] May 27 '19

!remindme 15 hours