[-] the_citizen@lemmy.world 2 points 9 hours ago

Yes I need to use enums. I realized it now.

[-] the_citizen@lemmy.world 1 points 9 hours ago

Yes I realized that I put everything to two classes. It's too much. I'll make more classes for more attributes.

I didn't know enums until now and it's awesome. I will do some exercises about it.

Last thing is interesting. I need to read that. Thank you for suggestions.

[-] the_citizen@lemmy.world 2 points 9 hours ago

That's very informative, I will rewrite the code with your suggestions. Thank you!

[-] the_citizen@lemmy.world 1 points 9 hours ago

Thank you I will read it.

[-] the_citizen@lemmy.world 1 points 9 hours ago

I need to search formatters. Thank you for suggestion.

[-] the_citizen@lemmy.world 1 points 9 hours ago

I revised the code. Added some spaces and comments for better readability. Hope it's better now.

[-] the_citizen@lemmy.world 2 points 9 hours ago

These are looking awesome. Thank you for sharing this <3

[-] the_citizen@lemmy.world 3 points 20 hours ago

Oops, sorry. I will revise the code and place spaces. Thanks for suggestion <3

18
How is my Python code? (raw.githubusercontent.com)
submitted 21 hours ago* (last edited 21 hours ago) by the_citizen@lemmy.world to c/python@programming.dev

I don't know if it's the true place to ask, apologizing if not. I started to python one and half week ago. So I'm still beginner.

I made a terminal based weather application with python. What do you think about the code, is it good enough? I mean is it professional enough and how can I make the same functions with more less code?

Here's the main file (I also added it as url to post): https://raw.githubusercontent.com/TheCitizenOne/openweather/refs/heads/main/openweather.py
Here's the config.json file: https://raw.githubusercontent.com/TheCitizenOne/openweather/refs/heads/main/config.json

1
submitted 5 days ago* (last edited 5 days ago) by the_citizen@lemmy.world to c/games@lemmy.world

Half life was supposed to release in November 1997 but coding team decided to overhaul the game completely and released it in 19 November 1998. Everything is changed about it and became one of the most important game of gaming world.

1
submitted 5 days ago* (last edited 5 days ago) by the_citizen@lemmy.world to c/games@lemmy.world

cross-posted from: https://lemmy.world/post/28504288

It's mainly developing by Afritz1 for several years to bring TES Arena to today's standards as open-source implementation of the original game with C++. Still in development but doesn't have a gameplay yet. The game is supporting Linux, MacOS and Windows.

Here's the YouTube page: https://www.youtube.com/@afritz1265
Also here is the Github page if you're interested to play development version: https://github.com/afritz1/OpenTESArena

[-] the_citizen@lemmy.world 2 points 6 days ago

Education system is working for making people thinking same. Diversity is spreading physically but our minds are becoming same in all way. Doing same, liking same, hating same... Our most powerful weapon is questioning and reading from all sources we can find. Hope one time we will have a world without authorities which imposes their delusional ideas to people with the system they say "education".

[-] the_citizen@lemmy.world 2 points 1 week ago* (last edited 1 week ago)

I used a bunch of distributions (like Gentoo, Arch, Slackware, Debian etc.). Then I created a distribution-like system with LFS -BLFS and now using itbecause I want to see how Linux works in a detailed way. It's a little painful but it's not a problem if you are a masochist person who doesn't have to do anything else.

the_citizen

joined 1 week ago