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

Programmer Humor

19480 readers
1809 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
[–] [email protected] 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.

[–] [email protected] 9 points 4 months ago (2 children)
[–] [email protected] 7 points 4 months ago

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

[–] [email protected] 3 points 4 months ago

Can confirm also BASICA, GWBASIC, QBASIC, and QuickBASIC

[–] [email protected] 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 .

[–] [email protected] 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.

[–] [email protected] 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.

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

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

[–] [email protected] 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.

[–] [email protected] 7 points 4 months ago (1 children)
[–] [email protected] 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.

[–] [email protected] 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 😭

[–] [email protected] 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.

[–] [email protected] 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).

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