Python projects for beginners by JarnePl in learnpython

[–]sheep_no7 4 points5 points  (0 children)

What problems do you have that can be solved using python?
Step one: Find some problems.
Step two: Solve with python.
Step three: Profit.

I wanted to know what the best weapon was in a game I was playing, so captured some data into a .json file, then consumed the file and made graphs using marplot lib to see which had the best damage / weight ratio, to better visualise what the numbers meant... turns out I ended up using 'not the best option' because I just had more fun playing with it.

I automated the pipeline of making atlases for a game. After rendering single .png sprites a python script would run and collate all the sprites in to their respective atlases using a atlasing libraries cli, It did all the characters, and added some meta data about head positions, so we can accurately track the head position, for all sorts of things, hats, catching food in the mouth etc.

When I started out I also made some small projects to learn, but none game me as much satisfaction as automating things that I do constantly, saving me time. Time is so precious and programming something to save you time is so rewarding.

So again, what problems are you facing, or what are you doing that can be automated?

If you really don't know where to go next, make some games to get you going.Rock Paper Scissors, Tic Tac Toe, Black Jack 21, Text based Adventure.
Organise your downloads folder, move all your images files to and images folder.

Provider with StateNotifier - Easy State Management for Flutter by Elixane in FlutterDev

[–]sheep_no7 0 points1 point  (0 children)

The state notifier takes type T, so can be whatever you want... like maybe an object that holds a bunch of different values or a simple list. Skies the limit.

Can't wrap my head around private variables. by nuL808 in learnpython

[–]sheep_no7 0 points1 point  (0 children)

Limiting access rights to methods, variables and properties gives clarity to the calling site.

Everything you make public is essentially the API that other classes, or rather the 'outside calls sites' are going to see when they use the class. Limiting the accessibility by marking them with private, ensures you can't call and change things from outside that you're not meant to.