this post was submitted on 19 Jun 2024
100 points (100.0% liked)

196

16593 readers
2494 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
all 16 comments
sorted by: hot top controversial new old
[–] [email protected] 21 points 5 months ago (4 children)

I feel like I need more context here. What templating language is this, and why is its progress a string representing a full sentence?

[–] [email protected] 27 points 5 months ago* (last edited 5 months ago)

Pretty sure it's an autocomplete (like copilot or something)

They were typing

progress != "Hold"

And the ai autocomplete suggested

progress != "Hold onto your butts!"

Hence why the completion part is in grey (it's a suggestion)

[–] [email protected] 11 points 5 months ago (2 children)

That's your biggest problem? Not that you have to use ≠instead of !=?

[–] [email protected] 12 points 5 months ago (3 children)

You can configure your editor to do that. I did it in nvim.

However my teachers always told me to stop doing it. I am yet to learn the reason why.

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

Are your teachers reading your screens a lot? Because it's a PITA to read if you're not using it yourself.

Also if you demo code you should switch to the more traditional so that others don't have a hard time reading.

Basically it's just down to the human brains amazing ability to do pattern recognition subconsciously so you don't have to actively think about what that symbol means - unless someone used a different symbol.

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

Not a lot but they warn me of weird copy and paste shenanigans. But normally the compiler gives out a warning and when copying text is just simple.

[–] Tamkish 5 points 5 months ago (2 children)

Jetbrains mono ligatures my beloved

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

Caskaydia Cove NF

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

monaspace for life

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

My teacher is mad about it too, lol

[–] KooShnoo 8 points 5 months ago (1 children)

It is !=, its just a font that renders != as a wide ≠ bc it looks nice

[–] [email protected] 5 points 5 months ago

it's actually !==

[–] [email protected] 7 points 5 months ago

It's React JSX, and progress is a custom string in our project that can at most hold "Hold on...".

[–] [email protected] 7 points 5 months ago* (last edited 5 months ago)

Lets go of butt

[–] zero_spelled_with_an_ecks 7 points 5 months ago

I only see one cheek instead of ((. They're half assing it.