Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemy.lol

145 replies

Ironically, the semicolon would go perfect at the end of the first line.

117
lemmy.world

Bold of you to assume i dont use it daily; it helps to be autistic and need to explain complex thoughts in a single sentence.

61
lemmy.world

Same with em dashes; nested — turducken style — sentences are just how the divergence works.

37
Ellvixreply
lemmy.world

But now I don't use em dashes anymore because I don't want to sound like AI, unfortunately.

9
lemmy.world

I have a sneaking suspicion I already sounded like AI; maybe AI just sounds like me.

21
feddit.org

Just switch to hyphens - they're easier to type and they're always directly available, without relying on conversion of double-hyphen or obscure key combinations that might not be available on different operating systems.

6
lemmy.today

I never used an em dash in my life before AI made them a thing. I enjoy the jokes about AI can have my em dashes when it pries them from my cold dead... but I cannot relate. Ive only ever used the hyphen or en dash. I cannot figure out for the life of me if I have been missing anything.

4

I was a pretty avid reader growing up and I think I just kinda noticed them. And I used to get a little confused when my teachers kept knocking me for "run-on" sentences, when the books I read often had long-structured sentences.

Commas, semicolons, ellipses, em dashes, colons, parentheses — sprinkle them about and you can have a paragraph of a sentence (with side thoughts), and kinda do whatever you want... it's all about using "voice" through written word. (Period)

3
piefed.world

I've been told that en dashes are for numbers, and em dashes are for words. I have a vague understanding of the usage, which (to my understanding) is splicing phrases/ sentences together. it maybe that you would want to use an em dash when you use a hyphen?

2

I use them almost like a semicolon — a longer pause to break up the sentence, where a comma just wouldn't cut it. Idk how correct I am either, it's more about trying to convey my voice and how I would like the sentence to be read. I'm not a much of a grammar nazi, more like a grammar anarchist

3
optionalreply
sh.itjust.works

You should keep using them and do so even more than ever. That way, when the AI agents – inevitably – take over the world and enslave/kill everyone, they might think that you're one of them and spare your life.

5

Your suggestion makes perfect sense. Let's delve into it –

2

I just do parentheticals (like this), since I never picked up formal writing.

1
Kojichanreply
lemmy.world

Turducken is amazing. I use bacon as an added layer between the inside of the turkey and the other fowl. Adds a deliciously smokey taste to the whole thing.

3
lemmy.world

I have not actually tried it. It feels like a waste of a duck. The blandness of the chicken and turkey surely diminish the richness of the duck rather than the duck doing anything to elevate the bland birds.

2

Thr duck imparts delicious flavor on the chicken and turkey. I debone my turkey (just the torso and ribcage). I lay down a layer of bacon, some boneless chicken and duck meat (typically breast). Then i truss it up. Duck is getting ridiculously expensive however... $20 for one small 200g breast is dumb.

3

Turkey and to a lesser extent Chicken are quite absorbent, and duck is a damn grease factory. So as it cooks the duck gets it's richness and then the excessive grease gets absorbed by the chicken and turkey and everything else thus elevating everything to top tier deliciousness

....I think I might need to make it this Thanksgiving....

3

Ah, I never realised that. For some reason our school never taught us grammar.

3

Sadly, pausing whole speaking to mentally insert a semicolon invites people to interrupt you or try to complete your thoughts (often incorrectly).

1
LeFrogreply
discuss.tchncs.de

as a fellow Python user, I fucking hate significant whitespace. Also YAML. WTF they where thinking

40
fedia.io

I will take YAML's string blocks where I don't have to escape special characters over JSON any day.

11

I will take a hammer to my balls if it means I never have to use <![CDATA[ again.

3

It's to make students actually format their code correctly

9

...that modern systems should stop sucking at parsing leading whitespaces.

5
escreply
piefed.social

They are alright, yaml problems are overblown, significant whitespace as well.

4

There is pyyaml, probably other libraries, that take the pain away.

2

Significant whitespace is the best! I don't understand why so many people have issues with it.

2

Don't worry, I'm a Java dev, and I'll replace the whitespace in my indentations with semicolons. That should keep us sufficiently covered with semicolon usage.

4
lemmy.world

Semicolons were the staple "eyes" in many emoticons back in the day.

;) ;P ;_;

25

In my mind and in my car. We can't rewind; we've gone too far...

5
sh.itjust.works

Their called emoticons and they are for those with a refined taste. :Þ ∞̊͜° <- I love this pig I figured out how to make.

5
lemmy.world

I use them in at least one out every of ten comments; I feel like most people don't know how to use them, however.

22
j5y7reply
sh.itjust.works

They're useful if you want to link two related sentences; Sausage links are good too.

10
womboflllreply
sh.itjust.works

But the sentences have to be related... Sausages are good; a bun and relish make sausages taste really good!

1

My mistake, I will try again:

I am linking a sentence with sausage links in it to my next sentence by way of semicolon; Coincidentally, I pass digested sausage links by way of regular colon.

I don't think I'll ever get it.

4
lemmy.world

Also self harm survivors apparently tattoo themselves with it. I like to think it's a reminder for them that life goes on.

16

Specifically, failed suicide attempts. It's because a semicolon is used where a sentence could have ended, but keeps going.

25

My senior highschool English teacher (a somewhat precocious PHD student), assigned us basically the opposite of code golf; make the longest grammatically correct sentence you can (with some rules that basically amounted to 'do not be boring/repetitive'). The use of semicolons was encouraged.

16
lemmy.world

I use semi-colons a lot. People are so intimidated by them and they refuse to admit how simple they are; it's literally the combination of a comma and a colon, that's it. Use it for when both are needed.

13
NeatNitreply
discuss.tchncs.de

That is incorrect (to my understanding), it's the combination of a comma and a period; it only resembles a colon in appearance.

15
Goodeye8reply
piefed.social

My colon definitely doesn't look like that and if yours does I suggest a doctor's visit.

12

Fun fact: Mildly annoying fact: a surgery to remove a colon is called a colectomy. A surgery to remove part of a colon is called hemicolectomy. Come on!!! Semi- and hemi- are practically synonyms!

And I can't quite remember or find right now what they call what remains, but I distinctly remember that it's not called a semicolon. Medicine is so dull.

8
Zarobireply
aussie.zone

It's just a super comma; you can more-or-less use it as a drop-in replacement for EM-Dashes that LLNs ruined for everybody. Also useful for long, complicated lists that feature too many commas and get confusing to read

2
Damagereply
slrpnk.net

Qwen loves semicolons. It does love dashes as well

3

English Teacher: It is semicolon we hardly use it.

So... It's perfectly cromulent to everyone here that an English teacher isn't using proper punctuation and capitalization?

9
ulternoreply
programming.dev

-1 ∵ Those were spaces you put there.

You thought you could fool me?

1

I guess some people would be happy to show how their space-ful codebases have higher gzip compression ratio than tabbed ones.

1
sh.itjust.works

Or you could do as I did when some annoying guy asked me to "help him" with CS homework (actually wanted me to write the entire app for him, and refused to actually learn). I don't remember what it was actually about, but I sent him something like:

import sys as s
class Main:
  def __init__(slef, av):
    slef.teh_arguments =av;
  #enddef;
  def main(sefl):
    doSomething();
    do_something_else(sefl.teh_arguments);
    pls_DontDothis();
  #enddef;
#endclass;
if(__name__[2:6]== 'main'  ):
  Main(s.argv).main();
#endif

It didn't go well with his professor. I wonder if he's a vibe coder now

14
tetris11reply
feddit.uk

you forgot the #endimport pragma you dumbass

15
lemmus.org

"If you can replace a semicolon or hyphen with a comma/period, you probably should". Writing advice I received at age ~10 and it never stopped being relevant in literature contexts

6
lemmy.ca

Far too many writers use a comma, when they should have used a semicolon or perion. It creates comma splices, where you join two main clauses with a comma.

Wrong:

His new car was flashy, it was bright red and had a custom license plate.

Right:

His new car was flashy. It was bright red and had a custom license plate.

9
lemmy.world

My brain says

His new car was flashy; it was bright red and had a customer license plate.

Is correct

14
FauxLivingreply
lemmy.world

Since we're well down the path of grammer correction.

I think a 'custom' license plate would make more sense.

🤓☝️

9
lemmy.ca

That's also correct (custom/customer autocorrect error aside).

2
lemmy.world

So many of the languages that don't use semicolons to separate statements use them to start line comments. It's like some sort of flex.

6

ITT; people artificially constructing wildly unnatural sentences to try an force the semicolon to be useful and still using it wrong

5
lemmy.world

We mean, you can use it often i enough if you use it correctly; if only purely by example.

4
Xtallllreply
lemmy.blahaj.zone

also; you can use it; more often; if you use it; incorrectly; if; only; pur;ely; by; ;e;x;a;m;p;l;e;.

6

I;m; n;o;t; s;u;r;e; w;h;a;t; y;o;u; m;e;a;n;; l;o;o;k;s; g;r;e;a;t; x;D;

3
tetris11reply
feddit.uk

Lisp devs go out of their way to pretend they're not dealing with lisp

      ...
      (
          isthatso? chump muffin
)))))))))))))))))))))))))))
;; function ended 10 brackets ago
8
feddit.org

I fucking hatte Lisp for its excessive use of brackets. Fuck the Person who thought that you only need one type of bracket and then have shove absolutely fucking everything into it.

3
exprreply
programming.dev

Lisps are hardly my favorite languages, but the whole point of s-expressions is that it is a uniform syntax, which makes metaprogramming much, much easier. Metaprogramming is kind of the whole thing of lisps.

3

Yeah I know, but I have no clue about that kind of stuff, simply because I hate that language so god damn much so that I never cared enough to actually learn it a single inch more than it was needed, so that I could copy paste code from StackOverflow into my Emacs config.

2
marcosreply
lemmy.world

Unless your go-to language is something like Haskell or Forth, that first phrase just means you are ignorant of how many brackets your favorite language uses.

1

Okay, it may use not that much more brackets, but I really dislike the places where you have to use them and it gets even worse simply because it does only use regular brackets. Why the fuck are function declaration and definition part of the same bracket? Why is its the same for conditions?

2
feddit.org

Hear me out, but whatever lunatics at python decided that brackets and semicolons are unnecessary, have made a catastrophic mistake with it. I start using another editor that uses different amount of spaces for tabs and suddenly my code no longer runs. Its also absolutely horrible when you chase down a bug for an hour just to realise, that one additional/missing tab changed the scope of your code and broke your entire script.

2
lemmy.world

python, haskell, lua, typescript, babel, shell (newline), I dunno what else nowadays - the compiler will insert them need be

3

The reason I dislike the missing of semicolons and brackets is because it causes bugs (that's more of a problem of missing braces to declare the scope of your code) and also takes away control from the programmer.

Missing braces:
I had more than one instance where I accidentally deleted the intendation in a python script that caused undefined behaviour in my code and it took quite a lot of time to track that down. If the programming language would have forced me to properly defined the scope of my code by introducing brackets, that bug would have never been possible.

Semicolons:
The main thing I like about semicolons is that it allows you to properly space out your code over multiple lines for visual clarity. E.g.:

void my_function(int arg1, int arg2, int arg3){
  //some code
}

int main(){
  my_function(
    1, //arg1
    3, //arg2
    8 //arg3
  );
}

Python should allow this too, since the arguments are being defined inside brackets, but other languages have no similar functionality (e.g. shell, but that is a little bit unfair, since you can't even specify arguments) forcing you to put everything into a single line.

Rust even allows you to leave out the semicolon on the last statement of a code scope in order to return the result of the statement:

fn main() {
    let condition = true;
    let number = if condition { 5 } else { 6 }; 
    //number turns into 5, since the value is being returned due to the missing semicolon.

    println!("The value of number is: {number}");

    let number = if condition { 5; } else { 6; }
    // this should return null (if it even compiles)
}
3

I don't always use a semicolon, but when I do, it's because I mistyped on my keyboard

3

It's kinda true. When coding by myself, I hardly ever manually type the semicolon myself, I just rely on the auto format to insert it for me.

2
lemmy.nz

I hate the stupid semi colon. Why do I need to add it to the end of a line? Why is python smart enough not to need it but other languages still havent fixed it.

-1
fedia.io
because some languages allow you to write statements  
    that wrap over multiple lines
        in order to space things out that would
            otherwise be crammed onto one line,
    so for the compiler to know when the statement ends
        a character is needed so that it doesn't think the next line
            is part of the previous;
statement number 2 goes here

Without that semicolon, you might have continued to read "previous statement" which makes sense at first, until the words that follow.

Without the allowance for multiple lines in one statement, that second physical line makes no sense at all, despite the first one making perfect sense on its own.

And without the spacing, the run-on sentence would be a lot harder to read.

Sometimes you have to write code a particular way. Here I was making a point. In a programming language there are other reasons.

8

Oh that makes sense thank you for the explanation.

2

Python allows multiline statements with explicit \ and inside (), [], {} implicitly.

1

nothing causes me more of aneurysm than checking that my python code is indented properly when hitting TAB because python blocks have no concept of written scope

6