void main() {
//code
}
Is better than
void main()
{
//code
}
Why would you want to put it on a separate line? Are you paid by the height of the source file or something?
A loosely moderated place to ask open-ended questions
Search asklemmy π
If your post meets the following criteria, it's welcome here!
Looking for support?
Looking for a community?
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
void main() {
//code
}
Is better than
void main()
{
//code
}
Why would you want to put it on a separate line? Are you paid by the height of the source file or something?
English verbs have historically had present form, past form, and past participle form, eg. go / went / gone. I'm sad to see the past participle form being phased out of American English. People I went to school with and who I'm sure were taught differently (not to mention innumerable podcasters and public radio personalities), now say things like: "By the time I got home I found he'd already went," eliminating the past participle and instead using the past form. Had saw is not uncommon either. I am old enough I refuse to incorporate this development in the language. If I ever encounter had was/were in the wild I might blow a gasket. Now entering my fuddy-duddy years :(
Okay I believe you and all, but I genuinely donβt understand. My partner has even criticized this in my language but I donβt get it.
Sincerely someone who wants to understand and was unfortunately homeschooled by dumb fucks
Thanks for asking--I'll try to keep it brief (so as not to bore), and my apologies if I am retreading stuff you already know, but I'll have to do some lead-in to explain why I care about this at all.
Why past participles?--and why I love them:
Starting with a couple of example sentences that could help differentiate the "simple past" form versus the "present perfect" form that uses the past participle:
In the first example, the time mentioned is "last night"-- a time period that in the mind of the speaker is finished or closed.
In the second, there is no time frame mentioned, but we intuitively understand that it is making reference to a period of time that is unfinished or still open--in this case that period is "in my life."
I really appreciate the nuance that a change in verb form can impart, and so elegantly done!
Participles in telling stories
When it comes to telling stories to each other we almost exclusively keep the main actions in the sequence of events in simple past forms, eg.:
But what if I wanted to have a little twist in the story where I make reference to stuff that happened before my narrative? In English we've got this great trick up our sleeves. I could use the past perfect, formed by had + past participle, eg:
Simple, clean, elegant, and provides a satisfying twist :) Otherwise I would have to tell it like:
Or like this:
I guess all are valid, but I certainly find option 1 the nicest. Option 2 has spoilers. Option 3 is what many other languages do.
Verbs and simplification in languages
If I recall from my dabbling in linguistics, there's a tendency among most languages to become simpler in terms of their grammar over time. Most English verbs are now "regular," and you can make the simple past and past participle just by adding -ed to the end of the verb, eg.:
But among our oldest and most common verbs we've got bunches of "strong/irregular" verbs, eg.:
These are the verbs that people are changing in spoken American English at present. People are "regularizing" the past perfect forms by dropping the past participle and using had + simple past. I know it mainly comes down to linguistics drift and personal choice, but I appreciate that these irregular participles have purpose (by being a part of the perfect tenses, and the nuance they can create), and history. Moreover, I think having greater mastery of these forms in your speech and writing helps make reading texts written in English before the end of the 20th century so much easier.
Long story short: people can and will speak English however they want. No big deal. But in the case of excising the irregular past participles from English, I'll hold on to what I was taught and grew to love about English grammar.
got a shower
That made me shudder. Are you a dog and being showered by someone else, or was it a gift granted to you for hard work that day? ;)
In my dialect it's the equivalent of took or had a shower. :/
Single-speed bicycles suck.
They combine the drawbacks of a geared bike with the drawbacks of a fixed gear bike.
Anyone who puts always-on blue LEDs in electronics deserve the oubliette. People who put such LEDs in electronics meant for the bedroom deserve an oubliette that'a slowly filling with water.
That sucks, but you can put some isolation tape on LEDs.
But I wish something horrible to those who thought it's a great idea to make every goddamn electronic device make beeping noises.
My water boiler, fan, washing machine. In my childhood I don't remember everything beeping at every interaction. It makes me furious and you often cannot fully disable it.
Once I tried to solder the beeper out but my soldering iron was probably not suitable so I failed :(