this post was submitted on 19 Jun 2024
313 points (85.6% liked)

Programmer Humor

19522 readers
127 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

Today in our newest take on "older technology is better": why NAT rules!

you are viewing a single comment's thread
view the rest of the comments
[–] NeatNit@discuss.tchncs.de 19 points 4 months ago (6 children)

What languages use this? I don't like it!

On the other hand it goes well with >= and <=. If >= means "either > or =" then <> means "either < or >", it checks out.

But I still don't like it.

[–] RecluseRamble@lemmy.dbzer0.com 9 points 4 months ago (2 children)
[–] NeatNit@discuss.tchncs.de 7 points 4 months ago

I think Excel formulas also use this, but it's been a long time so I might be misremembering.

[–] humorlessrepost@lemmy.world 3 points 4 months ago

Can confirm also BASICA, GWBASIC, QBASIC, and QuickBASIC

[–] lambalicious@lemmy.sdf.org 7 points 4 months ago (3 children)

SQL uses it but yeah, not programming language :p.

I was on mobile so I didn't have a .XCompose available to type .

[–] lemming@sh.itjust.works 5 points 4 months ago

If you want to be able to write practically anything on mobile, including ≠, ≈, ‰, ℝ etc., have a look at Unexpected keyboard. No spellcheck or autocomplete, though.

[–] lud@lemm.ee 3 points 4 months ago (1 children)

I was on mobile so I didn't have a .XCompose available to type.

I feel the opposite. On mobile I have much easier access to special characters. I just need to hold down characters to get more variants.

[–] KairuByte@lemmy.dbzer0.com 2 points 4 months ago

Yup, ≠ is right “under” =. As is ≈.

[–] dan@upvote.au 2 points 4 months ago

SQL is definitely a programming language. Most dialects are Turing-complete in some way. Some allow custom functions and stored procedures.

[–] brianorca@lemmy.world 7 points 4 months ago (1 children)
[–] dan@upvote.au 1 points 4 months ago* (last edited 4 months ago)

Depends on the dialect. I mostly use Presto and MySQL at work, and both allow !=.

Presto also lets you use NOT for booleans - instead of WHERE foo = false, you can do WHERE NOT foo.

[–] azalty@jlai.lu 3 points 4 months ago* (last edited 4 months ago)

Damn I never understood it but now it makes sense thanks to you

Yea it’s ugly 😭

[–] skulbuny@sh.itjust.works 2 points 4 months ago* (last edited 4 months ago) (1 children)

F# definitely and maybe Haskell and OCaml as well? Elixir and Erlang use it as a binary concatenation operator.

[–] Phoenix3875@lemmy.world 3 points 4 months ago

Yes for OCaml. Haskell's inequality is defined as /= (for ≠). <> is usually the Monoid mappend operator (i.e. generalized binary concatenation).

[–] jh29a@lemmy.blahaj.zone 2 points 4 months ago