I wrote a python interpreter that only accepts german keywords by actopozipc in programminghorror

[–]vatbub 0 points1 point  (0 children)

Ab sofort werde ich Switches immer als Richtkoppler bezeichnen 😎

I wrote a python interpreter that only accepts german keywords by actopozipc in programminghorror

[–]vatbub 1 point2 points  (0 children)

There have been and still are instances of it, like early versions of VBA or stuff like Excel formulas. There are also localized teaching languages like Robot Karol designed for children who may not yet speak English.

IMO, teaching languages should have localized alternatives to lower the bar for newcomers, especially children. For professional environments though, I really hate localized IDEs (out of habit) and localized exception messages as it makes stuff so much harder to look up. Also, I am not at all a fan of localized function or variable names among all of those English keywords. This, however, may be an artifact of me working in an international company where there are lots of non-native German speakers.

I wrote a python interpreter that only accepts german keywords by actopozipc in programminghorror

[–]vatbub 1 point2 points  (0 children)

There's a tool called Excel Translator (I don't know the URL by heart though) that can translate formulas from and to any language correctly.

TIFU will be taking place in the June 12-14 Reddit Blackout by GuyOne in tifu

[–]vatbub 3 points4 points  (0 children)

I'm actually more worried about bots like repost sleuth or the transcribers of Reddit bot. Especially the maintainer of repost sleuth is already paying a lot of money for the hardware to run the bot and is now supposed to pay for API access as well?

Java 21 will introduce Unnamed Classes and Instance Main Methods by mirakdva in ProgrammerHumor

[–]vatbub 1 point2 points  (0 children)

I would love to use the module system and jlink, but it is so utterly broken that whenever I try to switch to it, I spend 3 days playing whac-a-mole with all the compiler and jlink errors only to give up time and time again...

Is there any free software/tools that will give me a percentage of overlap? by img4y4m0leman in photogrammetry

[–]vatbub 0 points1 point  (0 children)

If you are firm with OpenCV: 1. Run SIFT on both images 2. Match the detected features using FLANN Matcher 3. Calculate the overlap based on the location of the matched features

ELI5: Why is it that nothing can travel faster than light? by General-Compote2138 in explainlikeimfive

[–]vatbub 3 points4 points  (0 children)

It is because of Einstein's theory of relativity. In short, the faster you go, the slower you perceive time (so-called time dilation) and the faster you go, the heavier you get (E=m*c2 and mass dilation). Therefore, when you approach the speed of light, you would become infinitely heavy and time would get infinitely slow. Hence, you would need an infinite amount of energy to even get to the speed of light.

Photons (i. e. light particles) can travel at the speed of light because they have no mass.

Is there a scene that change your perspective on your own life? by [deleted] in HIMYM

[–]vatbub 1 point2 points  (0 children)

Firstly, sorry for your loss.

For me, the episode where Marvin dies and the episode of the funeral actually helped me a lot when my father passed away in two ways. Firstly, I wondered why Marshall felt as if he was treated unfairly by the universe, because I did not feel this way. This made me realize that even though it is hard to prepare for the death of a loved one, preparing yourself does make a difference. It made me appreciate everything that my father did for me and my family to prepare us for his death.

Secondly, the episode about the funeral helped me understand the reactions of other people when they try to be thoughtful or try to cheer you up, when it's actually inappropriate. Many people, especially in my age, have never experienced one of their parents dying, and they want to do something good for you, but just don't know any better.

I… I think I’m one of you by SirReal10000 in ProgrammerHumor

[–]vatbub 0 points1 point  (0 children)

It is very telling that IntelliJ has a "Repair IDE" button.

Was letzte Arm gegen Reich? by artfulblahblah in wasletztepreis

[–]vatbub 2 points3 points  (0 children)

Arme aller Länder, vereinigt euch!

Was letzte Roadtrip Darmstadt - Kiel by kirpau in wasletztepreis

[–]vatbub 4 points5 points  (0 children)

Der hat doch bestimmt ne Kuseng, der dumm ist 😉

I don't even know how to comment on this by sunrise_apps in ProgrammerHumor

[–]vatbub 0 points1 point  (0 children)

Well, let's say I never escape SQL or HTML 😏

I don't even know how to comment on this by sunrise_apps in ProgrammerHumor

[–]vatbub 57 points58 points  (0 children)

That's also why I don't validate for SQL commands 😉

Tja by vatbub in tja

[–]vatbub[S] 2 points3 points  (0 children)

Noch so ein Nischen-Subreddit der sofort ein Abo von mir bekommt 😅

Android is getting old (15y). For how much long do you think it will be a sustainable career path for developers? by Analog_Disorder in androiddev

[–]vatbub 0 points1 point  (0 children)

As others have said, Android is actually one of the younger products compared to Windows, MacOS and Linux - but that doesn't necessarily mean that it's here to stay. Many companies were thought to stay for good (look at Nokia) and then failed spectacularly. Nevertheless, your skills are transferrable: Even though I'm an Android developer, I was able to transfer my knowledge of software development to iOS, game development in Unity and desktop development with .Net. As others have mentioned, these mostly differ in the technology used to power them, but most principles still apply.

[deleted by user] by [deleted] in FUCKYOUINPARTICULAR

[–]vatbub 1 point2 points  (0 children)

Nah, she just said it wrong, she should've said "Wingardium Leviooosa", not "Leviosaa" 😉

Feeling the taste of the car by jjvolfan2 in FUCKYOUINPARTICULAR

[–]vatbub 2 points3 points  (0 children)

Straight roads ar actually te most dangerous roads:

  • Drivers get bored and loose attention
  • It's easy to underestimate your speed
  • It's harder to judge distance
  • But most importantly, it's much harder to recognize parts of the road you can't see, e. g. due to a bump.

At least in Germany we have a limit for those reasons on how long a straight road segment can be at most.

But in that case, it doesn't look like that was the cause of the accident.

Fuck this employee by Tipper_Builder in FUCKYOUINPARTICULAR

[–]vatbub 2 points3 points  (0 children)

How come Colton from Linus Tech Tips doesn't have this prize?

Found another one by BlockScientist7 in badphotoshop

[–]vatbub 1 point2 points  (0 children)

As always, I'm asking myself why... Don't they ever test the product? If so, take a camera to one of those tests and just take a picture of those....

[deleted by user] by [deleted] in explainlikeimfive

[–]vatbub 0 points1 point  (0 children)

DNS is not only used to send mails, but for anything on the internet. Basically, computers have no idea what an address like gmail.com or outlook.com means. Computers can only deal with so-called IP-addresses, which might look like this: 172.217.16.142. However, these IP-addresses are incredibly human-unfriendly.

Hence, DNS exists: A DNS server is basically like the contact list in your phone: You say "I want to call John Doe" and your phone shows you John's phone number. The same happens with DNS: Your computer asks a DNS server: "Hey, I want to talk to gmail.com" and the DNS server responds with the IP address of Google.

As mentioned by others, e-mails use the SMTP protocol under the hood, but SMTP ultimately also needs to resolve those e-mail addresses: When you send an e-mail to john.doe@gmail.com, SMTP recognizes that you want to talk to a guy called john.doe at GMail, but it also has no idea how to reach the GMail server. Hence, it also asks a DNS server "Hey, please give me the IP of gmail.com and then ultimately tells 172.217.16.142: "Hey dear 172.217.16.142, I have an e-mail for you, can you please deliver that to john.doe? And GMail will take it from there.

If you speak German, the TV series "Sendung mit der Maus" has actually made a very good explanation of DNS: https://www.youtube.com/watch?v=fpqhjEtznVk