Spyke

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

View original on feddit.it

27 replies

ttrpg.network

It's because if you turn it 90° to the right, it looks like Elvis' hair with two eyes underneath!

28
lemmy.world

I saw it the other way, with the question mark as the curl of his lip.

22
Sleepzyreply
feddit.it

php doesn't exist, php can't hurt you

2
tetris11reply
lemmy.ml
You have absolutely nothing
<?php
   well hello there again
?>
to worry about. If PHP existed
we would have sophisticated
<?php
  I trust that life has
  been treating you well? 
?>
methods of detecting it, and
it would pose literally no
<?php
  Don't open the door. It's me.
?>
threat to anyone.
3

aah my favorite template engine, I have seen it so long ago

2

Oh unfortunately these imaginary pains are those which hurt every day

1
sopuli.xyz

I've been working in Jenkins pipeline for a while now.

Why the fuck is Groovy?

2

Well Grails didn't stick around for long, but Gradle was only available with Groovy for many years before they added Kotlin support.

1
lemmy.ml

I don't understand this. Small brained users rise up

12
lemy.lol

On the left you have Elvis Presley, while on the right there's the so-called Elvis operator

12
dev_nullreply
lemmy.ml

Because it's not one. Ternary operator is A ? B : C, Elvis operator is A ?: B. The same two characters are involved, but both the syntax and effect is different.

3
pawb.social

The second one isn't valid syntax in any programming language I'm familiar with. What does it do?

2
dev_nullreply
lemmy.ml

It's a shorthand for writing this:

variable = if (input != null) input else default

This is equivalent:

variable = input ?: default
4

It's in Kotlin and some other languages. C# has it but there it's actually A ?? B.

2

Read further down on my other comment to understand, it's just how the operator looks

2

You reached the end

Elvis | Spyke