this post was submitted on 04 May 2024
321 points (92.8% liked)

Programmer Humor

19471 readers
1548 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 6 months ago (2 children)

Why do u prefer single quotes?

[–] [email protected] 4 points 6 months ago (1 children)

Not Shall330, but double quotes can imply variables in the string in some languages.

[–] [email protected] 2 points 6 months ago (1 children)
[–] bitchkat 5 points 6 months ago (1 children)

PHP for one. "$x" will interpret the variable $x. '$x' does not.

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

Well there's ya problem ur using php.

[–] [email protected] 4 points 6 months ago (1 children)
[–] [email protected] 2 points 6 months ago
[–] Schal330 3 points 6 months ago

I have no preference! It was to do with Spring/yaml config and some really strange conflict which required the use of single quotes. I'm still a total noob in the world of software dev, so I wouldn't be able to explain why it worked 🤣