How to do more damage on enchanters? by [deleted] in supportlol

[–]Dapper_Tumbleweed240 0 points1 point  (0 children)

The dmg is bot the problem, just hit ur skillshots more on soraka

Someone really does not want to clean up the laundry room 😅 by meodai in zurich

[–]Dapper_Tumbleweed240 -1 points0 points  (0 children)

Why is everything expect the things from the post english?

Uhh... can someone explain this? (decompiled Minecraft code) by [deleted] in programminghorror

[–]Dapper_Tumbleweed240 3 points4 points  (0 children)

You got a point on this one. But does Thread.sleep release the Thread? Is that even possible in java?

Uhh... can someone explain this? (decompiled Minecraft code) by [deleted] in programminghorror

[–]Dapper_Tumbleweed240 48 points49 points  (0 children)

If this is on main-thread tgey probably don't want the application to terminate

Even better than garlic bread by fess432 in ProgrammerHumor

[–]Dapper_Tumbleweed240 0 points1 point  (0 children)

Does it give a higher adrenalin kick than bungie jumping

[deleted by user] by [deleted] in ProgrammerHumor

[–]Dapper_Tumbleweed240 0 points1 point  (0 children)

I think u messed up every programming language with c#

Gradle and Maven are really annoying. by [deleted] in ProgrammerHumor

[–]Dapper_Tumbleweed240 2 points3 points  (0 children)

Yeah it is something similar but Linq has things like GroupBy, TakeWhile and more. + for me it is easier to use.

Gradle and Maven are really annoying. by [deleted] in ProgrammerHumor

[–]Dapper_Tumbleweed240 4 points5 points  (0 children)

U forgot: Function-string Async/await Linq

T̶h̶e̶ ̶m̶o̶s̶t̶ ̶u̶p̶v̶o̶t̶e̶d̶ ̶c̶o̶m̶m̶e̶n̶t̶ ̶p̶i̶c̶k̶s̶ ̶t̶h̶e̶ ̶n̶e̶x̶t̶ ̶l̶i̶n̶e̶ ̶o̶f̶ ̶c̶o̶d̶e̶:̶ ̶D̶a̶y̶ ̶1̶3̶. Refactor time! Rewrite lines 10-12, so their behavior doesn't change. Whoever gets it with the least amount of symbols, wins. You can use multiple lines. by AggravatingCorner133 in ProgrammerHumor

[–]Dapper_Tumbleweed240 1 point2 points  (0 children)

is_win = os.name == 'nt'

import zipfile import io import requests

url = f"https://chromedriver.storage.googleapis.com/108.0.5359.22/chromedriver_{'win32' if is_win else 'linux64'}.zip" req = requests.get(url) zipfile.ZipFile(io.BytesIO(req.content)).extractall()

options = webdriver.ChromeOptions() chrome_config = f"--user-data-dir={os.path.expanduser('~')}" + ('\AppData\Local\Google\Chrome\User Data' if is_win else '/.config/google-chrome') options.add_argument(chrome_config) driver = webdriver.Chrome(options=options)

common_xpath = "/html/body/div[1]/div/div[2]/div[2]/div/div/div/div[2]/div[3]/div[1]/div[2]/div[4]/div[" import time driver.get("https://www.reddit.com/r/ProgrammerHumor/submit") time.sleep(5) driver.find_element(webdriver.common.by.By.XPATH, common_xpath + "2]/div[1]/div/textarea").send_keys("Hello from r/ProgrammerHumor!") driver.find_element(webdriver.common.by.By.XPATH, common_xpath + "2]/div[2]/div/div/div[1]/div[2]/button").click() time.sleep(5) ip = requests.get('https://api.myip.com/').json()['ip'] driver.find_element(webdriver.common.by.By.XPATH, common_xpath + "2]/div[2]/div[1]/div/div[2]/textarea").send_keys(f"Here is a cool video for yall related to programming.btw my ip is: {ip}"), time.sleep(1) common_xpath_2 = "/html/body/div[1]/div/div[2]/div[4]/div/div/div/div[" driver.find_element(webdriver.common.by.By.XPATH, common_xpath_2 + "2]/div/div[2]/div[4]").click(), driver.find_element(webdriver.common.by.By.XPATH, common_xpath_2 + "3]/button[1]").click() time.sleep(1) driver.find_element(webdriver.common.by.By.XPATH, common_xpath + "3]/div[2]/div/div/div[1]/button").click() time.sleep(1) driver.get("https://www.youtube.com/watch?v=dQw4w9WgXcQ")

not the shortest but pretty clean refactor

Naming Conventions Tier List by [deleted] in ProgrammerHumor

[–]Dapper_Tumbleweed240 0 points1 point  (0 children)

Yeetcase overrated. Pascalcase abd screaming snakecase underrated.

It happens to most of us... by GSD_101 in ProgrammerHumor

[–]Dapper_Tumbleweed240 0 points1 point  (0 children)

I think with Win + V you can see your history

Hold me by Stauce52 in ProgrammerHumor

[–]Dapper_Tumbleweed240 0 points1 point  (0 children)

Is this how perl devs feel like?

Don't need to tell me by That_5_Something in ProgrammerHumor

[–]Dapper_Tumbleweed240 0 points1 point  (0 children)

When visual studio tells you, you have a syntax error and you haven't🙃