mattp91 / helloWorld

My first repository on here
Creative Commons Attribution 4.0 International
4 stars 1 forks source link

The psychology of the quote in modern programming or: How I learnt to stop worrying and love the syntax #8

Open mattp91 opened 1 year ago

mattp91 commented 1 year ago

This issue is to serve as a foundational lexicon for the use of abstract conceptualization within the realm of coding and it's particularities. To adhere is to understand, so embarking on this issue we will surmise through comments.

The outcome of these discussions will be to come to an agreement on the age-old question of single quotes versus double quotes.

The pre-read will include a thorough understanding of the following PR comments: https://github.com/mattp91/helloWorld/pull/7

I will now announce @agudulin to take the stage and say their opening thoughts.

agudulin commented 1 year ago

Regarding the use of single quotes versus double quotes in coding, it is important to note that the choice between the two is generally a matter of personal preference and coding style: both single quotes and double quotes can be used to denote string literals in most programming languages: however, some languages may have specific rules or conventions for the use of one or the other — it is important to follow the conventions of the language you are using, as well as any guidelines or standards set by your team or organization.

Marcel-G commented 1 year ago

I would like to add some context that I believe is important to the discussion.

Welcome to the fascinating world of the quotation mark! These small but mighty punctuation marks have a rich history dating back to ancient Greece.

In the early days of written language, the Greeks used the acute accent (´) to indicate a raised pitch or emphasis in speech. This practice was later adopted by the Romans, who used the mark to indicate a quotation or to differentiate between words that were being used for their meaning versus those that were being used for their sound.

Over time, the quotation mark evolved into the form we recognize today. In the Middle Ages, the mark took on a variety of different shapes, including the "virgule," a diagonal stroke used to separate clauses. It was during the Renaissance that the quotation mark began to take on its modern form, with the double quotation mark being used to enclose a quotation and the single quotation mark being used to indicate a quote within a quote.

Today, the quotation mark is an essential tool in the English language, used to indicate a direct quotation or to set off words that are being used in a special sense. So next time you see a quotation mark, take a moment to appreciate its rich history and the important role it plays in our daily lives. Thank you for joining me on this journey through the history of the quotation mark.