Herrmens

joined 1 year ago
MODERATOR OF
[–] [email protected] 13 points 11 months ago (2 children)

Honestly, nothing really. It feels like each year more fucked up things are happening, so I lost the positivity I had for the upcoming years.

Don't get me wrong I am in a good place personally, but with all the stuff going on in the world it sometimes feel hard to believe it's gonna get better any time soon.

[–] [email protected] 9 points 11 months ago

Nothing really surprising to me, but the burnout rate really worries me.

Also having only 5% females in the field is a shame, would love to see that increased over the next decade.

[–] [email protected] 3 points 1 year ago

Really rooting for DTR here. A shame the browns front office made the Watson decision

[–] [email protected] 2 points 1 year ago (1 children)

But surprised by the backlash here, but I was thinking 21 century Germany.

And in the last 20 years germany did not manage to do anything when it comes to digitalization. Hell, our schools still use overhead projectors.

[–] [email protected] 70 points 1 year ago (30 children)

I am curious how this will turn out. Germany is not known for state driven digital innovation and this is a huge project.

Even though I am highly sceptic, I hope they finally manage to get something going because Germany and whole Europe needs more independence from US hyperscalers.

I fear this will die in good old German bureaucracy though.

[–] [email protected] 125 points 1 year ago (15 children)

Took away Admin rights, so everytime you wanted to install something or do something in general that requires higher privileges, we had to file a ticket in the helpdesk to get 10 minutes of Admin rights.

The review of your request took sometimes up 3 days. Fun times for a software developer.

[–] [email protected] 51 points 1 year ago* (last edited 1 year ago) (1 children)

You could also use something like JustTheRecipe.

If you want something for free to get rid of the clutter plainoldrecipe might be a thing. Though the server was down last time I checked

[–] [email protected] 35 points 1 year ago

That means that you are probably around 14 years old.

Rule of thumb: don't smack bottoms without consent. Goes either way

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Not sure how to help you with this, since that will change with what you want to archive in the loop. But maybe writing it in pseudo code might help:

For each letter in the word

for letter, position in enumerate(word):

You want to check if your guess is the letter

if letter == guess:

If it is you want to add the letter to your display , exactly on the position it is in the original word

display[position] = letter

Does that kind of thinking help?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

I think the other guys have already explained it quite well, but here are some more goodies that might interest you.

Your first attempt of filling the display is the more pythonic way in my opinion and it works, so instead of initializing an empty array and the filling it, just use display = ["_"]*word_length

Also for evaluating if the guess is in the word, there is a very nice iterator called enumerate, that hands you two values, the index and the actual value of the item, so you can use it like this:

for position, letter in enumerate(chosen_word):
    if letter == guess:
        display[position] = letter

Also, to play the full game you want to surround your guessing part with a while loop, so you can keep guessing until you have found the word. For this you will have to create a list of characters that resemble your chosen_word. There are several ways to do so and I will try to explain some of them.

Here we are using the unpacking asterisk, that unpacks each character of your string into an item in the list

while (display != [*chosen_word]):
    guess = input("Guess a letter: ").lower()

    for position, letter in enumerate(chosen_word):
        if letter == guess:
            display[position] = letter
    print(display)

Another way would be explicitly casting the string into a list with the list function like this:

while (display != list(chosen_word)):

Last but not least we could use something like list comprehension, which is seen as very pythonic but a bit weird to look at when you are not used to it.

while (display != [letter for letter in chosen_word]):

What this essentially does is the same as creating a for loop and filling a list like this, but more comprehensive:

chosen_word_list = []
for letter in chosen_word:
    chosen_word_list.append(letter)

W3Schools has some nice info about list comprehension. It is a rather advanced concept though so don't let it bother you if you don't get it right away.

Happy coding :)

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

If you go for a slow fermentation, I have experienced that almost no kneeding is necessary. But then we are talking of several proofings and total time of at least 24 hours. But instead of taking my unscientific opinion, I raise you The science of Bread. Have fun watching, it's amazing

 

How it works:

  • OP makes an AmA like post
  • People ask questions,
  • OP answers,
  • Asker edits question, -> Big fun :)

Links:

amathenedit

!lemmy.world@amathenedit

https://lemmy.world/c/amathenedit

Come over and enjoy some stupidity

 

First AMATE, welcome my friends. Your job now is to make me look like a fool. Simply ask me a question and edit it once I have answered you.

 
 
 

I just arrived here and was wondering if there is a space to talk about competitive pokemon similar to what r/stunfisk is?

 

I just arrived here and was wondering if there is a space to talk about competitive pokemon similar to what r/stunfisk is?

view more: next ›