Lurker > SomeLikeItHoth

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, Database 8 ( 02.18.2021-09-28-2021 ), DB9, DB10, DB11, DB12, Clear
Board List
Page List: 1, 2, 3, 4, 5, 6 ... 36
TopicITT: Learning Python
SomeLikeItHoth
09/07/21 6:47:39 AM
#222
Your code is looking a lot more organized.

How many lines are you at in your project?

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
09/05/21 5:15:29 AM
#219
My Flask blog is done. Not sure yet if I'll import it to the internet. I may also post some screenshots after I edit the css code but I'll worry about that later on this week.

SpiritSephiroth posted...
Was out all day and now I have a huge migraine. Gonna do more tomorrow.
I somehow managed to not get a headache today.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
09/03/21 6:44:20 AM
#215
Almost done with the Flask blog I've been working on. I haven't put in much time into programming this week but after I finish this blog I'm going to get back into learning about APIs. There's a program idea I have but still trying to decide how I should do it.

I've also been thinking about making both a weather app and a budget app.

SpiritSephiroth posted...
Having the same problem with values, except now the player HP keeps resetting in the while loop while the Imp's hp is working as intended. I have no idea why, maybe the if functions within the while loop is affecting the calculations?
Show us the code.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/31/21 5:51:57 AM
#202
Still a few hours away from finishing this Flask tutorial but now I can log in and have an account page for my blog.

1337toothbrush posted...
Daily schedule at work or in general? My work hours typically span from 7am to 3pm, but that's been moving around a bit with working from home. During those work hours it's not really fixed because it depends on what projects I'm working on and what needs to be done in those projects.
I meant your work schedule. Those are good hours. Just trying to get an idea of what I want to do.

SpiritSephiroth posted...
In other words, my code is in the clear for now. I can finally continue with this madness and expand on it!
Nice! Can't wait to see the end result.

VigorouslySwish posted...
Is it worth it to learn python in hopes of getting a low level job with no degree
IMO yes. If you're dedicated and can fight through the first few months of absorbing knowledge you can become a great programmer. After that it's learning new libraries and creating your own projects to understand how they work, followed by learning new languages.

Do yourself a favor. Next time you go out, stop by Barnes&Noble or any other book store, and pick up the book Python Crash Course. That book is a great starter point for Python.

Questionmarktarius posted...
You certainly could, the code is going to be very similar to Player. This is where it's a great time to figure out inheritance.
Yup!

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/30/21 6:13:40 AM
#194
Kept working on this Flask tutorial. The guy in the video reorganized his folders due to circular importing, so I did the same thing and copied / named everything perfectly. I deleted my database. I changed the working Python terminal directory to match my new folder. Everything was going smoothly. I created a new database, then I went to import the two classes. That worked too. Then I tried db.create_all(). That didn't work. Nothing worked after that. After spending 45 minutes looking for answers I decided fuck it. Remade a new folder, copied all my files over and reimported all the Flask modules and ran my main.py. Then I recreated the database and it finally worked. No idea what caused the problem since I didn't edit anything, but it's fine now. Also, last night the Class.query_all() command didn't work in the terminal but now it does and I'll be able to see my tables when I start adding them, so everything ended up working out.

1337toothbrush posted...
I started learning the basics of programming while screwing around with RPG Maker 2000 as a kid, but that was a purely point and click interface at the time. Then I picked more up through high school computer science classes and later on in university where I earned my degree in computer science (though for practical programming I learned it mostly through side projects in my spare time). I work as a software engineer, so I keep up to date with stuff.
What's your daily schedule like? I don't have a CS degree and I'm just self-teaching. I have no idea what I want to do with programming yet but I live in the Bay Area so I have a lot of options. I was thinking of continuing my teaching, try getting an entry level position somewhere and then go back to school for a new degree at the same time.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/30/21 1:15:06 AM
#192
SpiritSephiroth posted...
I need to pick up again and maybe just learn more about them and how to use them before trying to implement them in my code.
Show us your full code. I can go over it and give a few suggestions.

If you need some more help understanding how classes work, watch that video series I posted. But basically, think of classes as a way to trim down your code. Say you are making an RPG. You aren't going to just have a single character, you're going to have multiple. You could make the character like this:

def character_one(char, health, attack, defense, strength, m_atk, mana):
char = archer,
health = 100,
attack = 20,
defense = 20,
str = 50,
m_attack = 15,
mana = 150,

That's 8 lines of code. Now pretend you want 8 characters. That's 64 lines of code + spacing so a bit over 70 lines of code just for the characters. Using classes cuts down on that because each character will have the same stats no matter what.

class Entity:
def __init__(self, char, health, attack, defense, str, m_atk, mana):
self.char = char,
self.health = health,
self.attack = attack,
self.defense = defense,
self.str = str,
self.m_atk = m_atk,
self.mana = mana,

For every class, the very first method (you call functions inside of classes, methods) will always be the __init__ method, followed by what stats each character will have. Afterwards you simply create a new variable with the amount for each stat.

a = Entity(char=archer, health=100, attack=20, def=15, str=50, m_atk=15, mana=200)
t = Entity(char=thief, health=100, attack=30, def=25, str=45, m_atk=5, mana=0)

And you can call the class as many times as you want, so 8 characters will be in 8 lines of code, rather than 64 lines. Does that make more sense?

1337toothbrush posted...
Alright, I made a quick and awful battle system with poor OOP abstraction
Nah fam. I really like that code. It's very neat. Where did you learn to program? And what other languages do you know?

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/29/21 5:38:43 AM
#189
Creating my own Flask database to create a blog and was stuck for 20 minutes importing the database. Turns out it was because I had made a typo in my file name when trying to call from flask import db. I googled so many questions trying to figure out what I did wrong.

Questionmarktarius posted...
But, you need to know when it's worth going OOP, and when you should just do it all in main().
I still have trouble with using the import function properly. I was working on a shop to purchase units and set it to its own shop.py file but it wouldn't allow me to call a function from my main.py file due to me calling import from main.py to import the shop.

1337toothbrush posted...
I had forgotten about this topic! Posting here to bring it to the top of my active messages list. I might write an OOP battle system example if you think that'd be useful.
Great idea. Both myself and SpiritSephiroth have been working on our own battle systems. I'm using OOP for mine, so making classes & such but I'm still having trouble with it so I'm taking a break to learn more about OOP. I'll probably get back into that project some time this week, because right now I'm working on a flask database to create a blog. Let us know your ideas + how it goes. @1337toothbrush

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/28/21 6:36:28 AM
#184
SpiritSephiroth posted...
Trying to use classes to solve this problem. Gonna give up for today.
Once I learned about classes it made organizing so much easier.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/26/21 7:25:34 PM
#180
I'll take a look at it tonight.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/26/21 6:08:12 AM
#178
SpiritSephiroth posted...
Liked how you spaced out your code too, it looks so neat and even looks clean when executing it. I should do that more often.
It will save you a headache from trying to read disorganized code, that's for sure.

SpiritSephiroth posted...
The code just greys out and an error comes up. It used to work in my other projects.
What do you use to write code? Pycharm?

SpiritSephiroth posted...
I'm gonna continue this tomorrow!
Keep me updated!

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/25/21 5:08:41 AM
#173
SpiritSephiroth posted...
I can continue now that today is done. Gonna catch up with a lot of things!
Finally! Let me know how it goes.

Questionmarktarius posted...
If you're doing RPG type things, that's decent OOP model right there.
Right now I'm working on a battle system using only Python. It's text heavy but I'll condense it once I get everything completed and have the time to go over it line-by-line.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/24/21 5:41:45 AM
#170
SpiritSephiroth posted...
I want to experience this more too. I know how it feels. Cant wait to get back to it after Tuesday.
Once you start experiencing more OOP (like from the video I linked you) you'll start getting more of those experiences.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/23/21 5:30:50 AM
#168
So I was mad because I spent over an hour trying to figure out why my code wasn't working.

I think I googled 10+ different things and read a bunch of different things on stackoverflow trying to figure it out.

Then by some miracle I figured it out on my own and now I won't go to bed mad.

It was stupid too because I was in a while loop and couldn't figure out why my remove() function of a piece of string in a list wouldn't work. It was so simple but for some reason would not work.

SpiritSephiroth posted...
I'll take a look! I have an important test on Tuesday for something but once I'm done I'll catch up on everything.
Okay bet!

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/22/21 5:46:52 AM
#166
I know I tell y'all to watch certain videos / read certain articles but this is one you need to make time for.

It's only an hour long but I highly recommend it. It will make using and understanding how Classes work so much easier.

I just finished watching all the videos now + I wrote out all the code but I may watch it again tomorrow.

https://www.youtube.com/playlist?list=PL-osiE80TeTsqhIuOqKhwlXsIBIdSeYtc

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/21/21 7:22:36 PM
#165
All good!

---
FAM FOREVER.
TopicPost beautiful Asian women ITT Part TWO
SomeLikeItHoth
08/21/21 4:30:02 PM
#240


---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/20/21 7:19:40 AM
#162
I went ahead and made my own little CYOA game.

I forgot how fun these little text games can be to make.

I know I reused some lines of code. I may go back and redo the project using classes / functions. Well see!

Let me know what you think!

https://pastebin.com/EuB748BE

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/19/21 6:47:07 PM
#161
You should! Let me know. Right now I'm going through this web scraping project

https://automatetheboringstuff.com/2e/chapter12/

but if I have time tonight I'll also make a quick version of the project you're describing. Just for fun. I already have an idea how I'll write the code out.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/18/21 5:51:13 AM
#158
SpiritSephiroth posted...
I'm going to implement more into the code to make it more complex
What you could do is start everyone off (including yourself) with a certain amount of HP.

Player = 50
Enemy_# = 10
Boss = 15

And then you could use the random feature to randomize attacks.

Attack = random.randint(0, 10)

Now every time either you, one of the enemies, or the boss uses an attack it'll take a random amount of HP away.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/16/21 6:21:46 PM
#155
I have no idea. I rewrote all your code and it worked fine for me. Can you paste the code here so I can try it?

Also, are you using Boss_HP = 10 for anything? Because I didn't see it mentioned anywhere except for at the top.
And instead of saying

You = You - 3

you can simplify it by saying

You -= 3

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/16/21 4:40:47 AM
#153
Actually, only do that neat little project if you want to test your patience, or don't mind spending a bunch of time looking up how to fix an outdated version of PyQt. And right when I got everything working perfectly, it still won't work.

[LFAQs-redacted-quote]

That is still a good website. I use it when I get stuck on stuff.

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/15/21 5:14:46 PM
#151
Neat little project.

https://realpython.com/python-contact-book/

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/12/21 5:59:36 PM
#147
I ended up watching a few episodes of Arrow last night and I also watched Luca on Disney+. I'm still going to do my daily lesson today and tomorrow, but starting Saturday I'm on vacation and there's a few books I need to catch up on!

---
FAM FOREVER.
TopicITT: Learning Python
SomeLikeItHoth
08/10/21 12:16:37 PM
#144
I didnt do anything yesterday after work. I just slept when I got home.

---
FAM FOREVER.
TopicDamn Sonic had some horrible gimmicks over the years.
SomeLikeItHoth
08/10/21 4:10:18 AM
#95
Sonic Adventure 1 needs to be erased from existence.

---
FAM FOREVER.
TopicDamn Sonic had some horrible gimmicks over the years.
SomeLikeItHoth
08/09/21 7:35:23 AM
#65
Scotty_Rogers posted...
The games should really just be about Sonic fighting Eggman with no one else involved. I hate all of the other characters lol. If I had to be generous, I could excuse Tails and Knuckles, but they weren't fun to play as in Heroes at all. Brawling as the power characters and flying as the flight characters just killed the game's flow. When you play a Sonic game, you just want high speed action and platforming; devs keep adding in this other shit that no one wants.
Fam can you imagine if Sonic was owned by Sony? We might actually get a good Sonic game again. Sony always wins, baby!

---
FAM FOREVER.
TopicDamn Sonic had some horrible gimmicks over the years.
SomeLikeItHoth
08/09/21 7:19:06 AM
#63
Sonic Heroes could have been good if it just focused on the two main teams of Sonic, Knuckles, Tails and Shadow, Rouge, Omega. Instead they cluttered it with an extra six characters that no one gave a fuck about which brought the game down from good to shit tier. Sucks because some of the courses and music were pretty good.

https://youtu.be/pnLvwfvHCV4?t=70

---
FAM FOREVER.
TopicDamn Sonic had some horrible gimmicks over the years.
SomeLikeItHoth
08/08/21 4:59:44 AM
#35
I hope Sonic Adventure 3 happens so people can finally realize how bad the series is and they only want a new entry due to nostalgia.

---
FAM FOREVER.
TopicCobalion, Virizion, and Terrakion
SomeLikeItHoth
08/07/21 7:37:15 PM
#13
Spidey5 posted...
Isn't there a 4th one, a scrub that just follows the others around?
Shaymin.

---
FAM FOREVER.
TopicPixar's A Bug Life is based on Seven Samurai?
SomeLikeItHoth
08/07/21 6:48:46 AM
#23
Is Seven Samurai a good movie fam?

---
FAM FOREVER.
TopicRember those Sobe drinks?
SomeLikeItHoth
08/07/21 6:09:25 AM
#6
I still see them. The glass bottles were cool.

---
FAM FOREVER.
TopicWould you say Cynthia is the Pokemon games' 2nd most iconic trainer/fight
SomeLikeItHoth
08/07/21 6:08:54 AM
#11
Red > Blue > Lance > Cynthia

---
FAM FOREVER.
TopicPretty scared right now
SomeLikeItHoth
08/07/21 6:01:19 AM
#4
darkmaian23 posted...
How did it go? Everything OK?

---
FAM FOREVER.
TopicYou come home to find your 16 year old daughter has adopted a pitbull.
SomeLikeItHoth
08/07/21 5:33:34 AM
#1
What would you do?

---
FAM FOREVER.
TopicShe call me Krillin wat do
SomeLikeItHoth
08/07/21 3:57:49 AM
#7
Why Krillen hit on 5 year old boys tho

---
FAM FOREVER.
TopicBoy Meets World vs. Home Improvement
SomeLikeItHoth
08/07/21 3:11:58 AM
#29
Home Improvement. Boy Meets World is awful.

---
FAM FOREVER.
TopicChris Chan story on Fucker Carlson
SomeLikeItHoth
08/07/21 3:11:27 AM
#6
The trial will be a complete shit show and turn ChrisChan into an A list celebrity.

---
FAM FOREVER.
TopicDamn Sonic had some horrible gimmicks over the years.
SomeLikeItHoth
08/07/21 3:10:21 AM
#26
Scotty_Rogers posted...
CHAD Mario and Virgin Sonic
Its a me Mario.

---
FAM FOREVER.
TopicDamn Sonic had some horrible gimmicks over the years.
SomeLikeItHoth
08/07/21 3:08:56 AM
#24
Sonic is bad.

---
FAM FOREVER.
TopicGot back from Suicide Squad. Props to Mike Cernovich for making it possible.
SomeLikeItHoth
08/07/21 1:23:35 AM
#16
au_gold posted...
Can James Gunn spearhead the DCEU please?
Nah. Zach Snyder is still the king of DC movies.

---
FAM FOREVER.
TopicChristine Chandler says she is INTERNET FAMOUS after being charged with RAPE!!
SomeLikeItHoth
08/07/21 1:22:34 AM
#3
Shes 39? Wtf.

---
FAM FOREVER.
TopicGot back from Suicide Squad. Props to Mike Cernovich for making it possible.
SomeLikeItHoth
08/07/21 1:21:10 AM
#13
The city belongs to them.

---
FAM FOREVER.
TopicCEO takes down BLM signs after complaints from Karen, so all employees quit.
SomeLikeItHoth
08/06/21 7:26:58 PM
#45
All those people will be replaced in a day and will get hired at a lower pay grade.

---
FAM FOREVER.
TopicOutlets got hands on with the Steam Deck today
SomeLikeItHoth
08/06/21 6:59:06 PM
#8
It will be too heavy and awkward to hold. Better off buying a gaming laptop.

---
FAM FOREVER.
TopicI want to fuck her
SomeLikeItHoth
08/06/21 6:55:19 AM
#17
I want to breed her.

---
FAM FOREVER.
TopicThe Suicide Squad is fucking insane lmao *SPOILERS*
SomeLikeItHoth
08/06/21 6:50:43 AM
#6
It was a 6/10 the humor was a straight rip off of Guardians of the Galaxy.

---
FAM FOREVER.
TopicTIL: Edelgard from Fire Emblem: Three Houses has her own Wikipedia article.
SomeLikeItHoth
08/06/21 4:55:02 AM
#29
NeonOctopus posted...
Don't give a fuck lol. Eldelgard and Ingrid look terrible post time skip. Anything helps
Marianne gets ugly too.

---
FAM FOREVER.
TopicGimme chicken tendies
SomeLikeItHoth
08/06/21 4:46:47 AM
#3
Mommy! Milky! Please be hasty!

---
FAM FOREVER.
TopicWould you fuck Ratcatcher2?
SomeLikeItHoth
08/06/21 4:42:55 AM
#4
No_U_L7 posted...
yeah she was hot af
Her and the rat were the best parts of the movie. Overall I'd give it a 6/10.

Dark_SilverX posted...
im deedin right now to that photo
Literally me ten minutes ago.

---
FAM FOREVER.
TopicWould you fuck Ratcatcher2?
SomeLikeItHoth
08/06/21 4:10:41 AM
#1


---
FAM FOREVER.
Board List
Page List: 1, 2, 3, 4, 5, 6 ... 36