Python Text RPG Ep. 1 Character Setup [Breakdown]

Описание к видео Python Text RPG Ep. 1 Character Setup [Breakdown]

Thanks for watching this hot mess. Like, subscribe, share with a friend/group and I'll see you tomorrow.

If you want to see this train wreck go down a particular track. Leave your suggestions in the comments.


Need help? Submit code in the contact box here: https://valthalin.wixsite.com/valthal...


~~ Episode commentary: ~~

After doing some quality checking on my last video I decided I'd try and create a partner video for each of my freestyles explaining what I'm doing and why.


~~ Episode Summary: ~~
I'll try and have a summary on the video thumb nail as well as here at the bottom of the description box.


instance vs Class variable
variables that are owned by an instance or by the instance's class

Class & function definition
The key word 'class' and 'function define a code block for their respective types

stubbing
placing definitions for prototype use or a reminder of things to do

_init__, __dict_
init, just sets the default values for an instance of a class
dict, displays all local contents of an object

naming convention
A convention for naming all things in your program. I'm a terrible person and use a mix of commelcase and snake_case E.G. 'cammel_Case'. When I can remember to do so.

**Kwargs
(Key Word Arguments)
in line if else
(variable = return A if condition else return B)
Boarders / Single Responsibility
The idea that systems/classes/functions should only take care of their specific concerns. So a class Networking should not worry about how things are displayed on the screen. It should talk to a class Video to handle displays. A 'boarder' could also be called a domain of concern.

Комментарии

Информация по комментариям в разработке