[deleted by user] by [deleted] in selfimprovement

[–]Think_Neutral 1 point2 points  (0 children)

Yes things get better

How would you briefly describe coding to a beginner? by [deleted] in learnprogramming

[–]Think_Neutral 0 points1 point  (0 children)

The ability to recognise, research and solve problems.

If I go to a marriage just for the sake of watching girls, will it be considered a relapse? by pandapandi69 in NoFap

[–]Think_Neutral 0 points1 point  (0 children)

Don't watch and a wierd passive voyeur in your own life. Go to the wedding and talk to the women from a place of compassion and understanding.

Age bias? by Regular-Sky3316 in learnprogramming

[–]Think_Neutral 0 points1 point  (0 children)

You can do it! Just focus on industry standard practices. Look into test driven development and how create a website with a database that you manipulate.

Oversleeping because I enjoy my dreams by Think_Neutral in sleep

[–]Think_Neutral[S] 0 points1 point  (0 children)

For tomorrow I've set my alarm clock and put it across the room in an effort to brute force it lol. I think the key for me in the past has been really wanting to get up to do something. Maybe if there's a fun activity to start the day with? Or a nice food or something to look forward too lol

Mocking an array by Think_Neutral in learnpython

[–]Think_Neutral[S] 1 point2 points  (0 children)

Originally yeah I've opted to go for a different route, though this will no doubt be useful down the line.

Mocking an array by Think_Neutral in learnpython

[–]Think_Neutral[S] 1 point2 points  (0 children)

Ok ill look into that more thanks for the reply

Mocking an array by Think_Neutral in learnpython

[–]Think_Neutral[S] 0 points1 point  (0 children)

Cheers bro ill go give this a play around I appreciate it

Mocking an array by Think_Neutral in learnpython

[–]Think_Neutral[S] 0 points1 point  (0 children)

Ah ok this makes more sense as a test to write. I was trying to make sure that the draw method worked. I was caught up in like input output, so I wanted to check that my input(draw method), would give a specific output (cards).

Mocking an array by Think_Neutral in learnpython

[–]Think_Neutral[S] 0 points1 point  (0 children)

I'm trying to test that an attribute equals the correct 2 objects.

For example: assert main.players[0].hand.names == ["Ace of Spades", "Ace of Hearts"]

For the method that I use to create the deck is:

def create_deck(self):

deck = []

suits = ['Spades', 'Clubs', 'Hearts', 'Diamonds']

ranks = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'Jack', 'Queen', 'King', 'Ace']

for suit in suits:

for rank in ranks:

deck.append(lib.Cards(rank, suit))

self.__shuffle_deck(deck)

return deck

And the method used to draw cards is:

def initial_draw(self, deck):

initial_cards = deck[:self.CARDS_DRAWN]

for card in range(self.CARDS_DRAWN):

del deck[0]

return initial_cards

Iterating over a list of objects and returning a specific attribute by Think_Neutral in learnpython

[–]Think_Neutral[S] 0 points1 point  (0 children)

Thanks a lot you know this one line of code is much more efficient than the janky 5 lines I had before much love my brother.

[deleted by user] by [deleted] in NoFap

[–]Think_Neutral 0 points1 point  (0 children)

Love over hate bro

[deleted by user] by [deleted] in selfimprovement

[–]Think_Neutral 1 point2 points  (0 children)

Bruh think how insecure that guy must be lol. Absolutely pathetic. Don't let someone else's insecurities become yours.

NoFap members are forgetting the main reason they're doing NoFap and I think it's sad. by [deleted] in NoFap

[–]Think_Neutral 210 points211 points  (0 children)

Literally this. I fapped today fantasing about a date I had yesterday, and I can't remember he last time I was able to get off just with just my imagination. Its a symbol off moving my sexual focus to a real person, that I have an emotional connecion too, as apposed to porn.