this post was submitted on 08 Feb 2024
354 points (98.1% liked)

Software Gore

5372 readers
2 users here now

Welcome to /c/SoftwareGore!


This is a community where you can poke fun at nasty software. This community is your go-to destination to look at the most cringe-worthy and facepalm-inducing moments of software gone wrong. Whether it's a user interface that defies all logic, a crash that leaves you in disbelief, silly bugs or glitches that make you go crazy, or an error message that feels like it was written by an unpaid intern, this is the place to see them all!

Remember to read the rules before you make a post or comment!


Community Rules - Click to expand


These rules are subject to change at any time with or without prior notice. (last updated: 7th December 2023 - Introduction of Rule 11 with one sub-rule prohibiting posting of AI content)


  1. This community is a part of the Lemmy.world instance. You must follow its Code of Conduct (https://mastodon.world/about).
  2. Please keep all discussions in English. This makes communication and moderation much easier.
  3. Only post content that's appropriate to this community. Inappropriate posts will be removed.
  4. NSFW content of any kind is not allowed in this community.
  5. Do not create duplicate posts or comments. Such duplicated content will be removed. This also includes spamming.
  6. Do not repost media that has already been posted in the last 30 days. Such reposts will be deleted. Non-original content and reposts from external websites are allowed.
  7. Absolutely no discussion regarding politics are allowed. There are plenty of other places to voice your opinions, but fights regarding your political opinion is the last thing needed in this community.
  8. Keep all discussions civil and lighthearted.
    • Do not promote harmful activities.
    • Don't be a bigot.
    • Hate speech, harassment or discrimination based on one's race, ethnicity, gender, sexuality, religion, beliefs or any other identity is strictly disallowed. Everyone is welcome and encouraged to discuss in this community.
  9. The moderators retain the right to remove any post or comment and ban users/bots that do not necessarily violate these rules if deemed necessary.
  10. At last, use common sense. If you think you shouldn't say something to a person in real life, then don't say it here.
  11. Community specific rules:
    • Posts that contain any AI-related content as the main focus (for example: AI “hallucinations”, repeated words or phrases, different than expected responses, etc.) will be removed. (polled)


You should also check out these awesome communities!


founded 2 years ago
MODERATORS
 
all 19 comments
sorted by: hot top controversial new old
[–] [email protected] 57 points 10 months ago (1 children)

What the hell is that question anyway? At which concentration? I hope this is not a serious chemistry test.

[–] Ross_audio 6 points 10 months ago* (last edited 10 months ago) (1 children)

It is not asking about a solution. It only specifies carbonic acid so you can assume pure carbonic acid.

H___2CO___3

Carbonic acid reacts with water as a base to release CO2 and H2O.

So the pH of a solution of carbonic acid with water is an equilibrium of remaining dissolved CO2 and remaining acid. Which then relies on temperature and pressure.

Formula

Given that water isn't mentioned the only correct answer is 0

[–] [email protected] 8 points 10 months ago

??? pH is only defined in a solution of water.

But more importantly, the correct answer is 5

[–] [email protected] 31 points 10 months ago (2 children)
[–] [email protected] 11 points 10 months ago* (last edited 10 months ago) (2 children)

Depends on the language though, sometimes 5 == "5" and 5 !== "5" (PHP & JS)

My guess is that a .trim() is missing somewhere

Edit: removed typo in example code

[–] [email protected] 3 points 10 months ago (1 children)

5! == "5" (PHP & JS)

is not valid in either PHP or JS

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

Thank you for pointing it out! That's my bad, that was a typo, I meant 5 !== "5" (it's the counterpart to the === comparator in both PHP & JS)

[–] dipshit 28 points 10 months ago* (last edited 10 months ago) (1 children)

you were supposed to provide an integer, not a string! users these days. pfft.

[–] Batman 6 points 10 months ago (1 children)
[–] [email protected] 6 points 10 months ago
[–] [email protected] 22 points 10 months ago

Answer is actually a floating point value between 5.0 and 5.9 but the thing only displays a whole number.

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

I thought it was five.

[–] [email protected] 4 points 10 months ago
[–] edherjrrr 3 points 10 months ago

It's paradoxical. It is, but it also isn't

[–] [email protected] 2 points 10 months ago

Oh, well then. I will take that into account the next time and do better then.