you know what

95 points · 15 comments · view on lemmy.world

15 Comments

Zagorath@aussie.zone · 20 pts · 2y (13 replies)

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

TechLich@lemmy.world · 27 pts · 2y

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)

Gutek8134@lemmy.world · 11 pts · 2y (9 replies)

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

ransomwarelettuce@lemmy.world · 12 pts · 2y (6 replies)

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.

el_abuelo@lemmy.ml · 10 pts · 2y (1 reply)

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.

ransomwarelettuce@lemmy.world · 2 pts · 2y

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@programming.dev · 5 pts · 2y (2 replies)

Jetbrains mono ligatures my beloved

Aatube@kbin.melroy.org · 2 pts · 2y

monaspace for life

joyjoy@lemm.ee · 2 pts · 2y

Caskaydia Cove NF

stepan@lemmy.cafe · 2 pts · 2y

My teacher is mad about it too, lol

KooShnoo@programming.dev · 8 pts · 2y (1 reply)

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

Aatube@kbin.melroy.org · 5 pts · 2y

it's actually !==

Aatube@kbin.melroy.org · 7 pts · 2y

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

Aatube@kbin.melroy.org · 1 pts · 2y
[ removed ]
Kolanaki@yiffit.net · 7 pts · 2y

Lets go of butt

zero_spelled_with_an_ecks@programming.dev · 7 pts · 2y

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