|
Christian Graus wrote: The documentation never said The very reason I never used the stupid thing.
Software Zen: delete this;
|
|
|
|
|
|
I'm sure your first one should be:
"1" == 1 is true
=== specifically takes type into account. Javascript's type co-ercion can be a win or a lose, depending on what you want. If type matters, use === and !==
|
|
|
|
|
That kind of things already existed when our ancestors began to cast logic into silicon[^].
Of course, there also were well designed CPUs[^] that had exactly 256 opcodes, with only 0x68 being reserved as prefix for future expansions of the instruction set. And of course there are the opcodes 0xE0 - 0xEF, the 'Set X Register' instruction for registers 0x0 - 0xF, short SEX. Absolutely no confusion here.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Chris Maunder wrote: SQL:
Len("hello") = Len("hello ")
That is a fun one that I came across a while ago. for some reason SQL Server ignores the trailing spaces hence they match.
LEN (Transact-SQL) - SQL Server | Microsoft Docs[^]
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
erm, typo?
"1" === 1 is false
"1" == 1 is true (truthy rather)
|
|
|
|
|
I don’t even know anymore. I’m so confused.
cheers
Chris Maunder
|
|
|
|
|
Wait 5 years. It will be:
"1" ============== 1
As in, "I really really really really really really really really really want to know if it's really really really really really really really really somewhat mildly truthy."
Cheers,
Mike Fidler
"I intend to live forever - so far, so good." Steven Wright
"I almost had a psychic girlfriend but she left me before we met." Also Steven Wright
"I'm addicted to placebos. I could quit, but it wouldn't matter." Steven Wright yet again.
|
|
|
|
|
In Fortran (at least in the old days, Fortran IV and thereabouts) has no reserved words. Spaces have no significance. So you could declare a variable named INTEGER
REAL INTEGER
INTEGER = 3.14
or a subroutine named FUNCTION to be invoked by
CALL FUNCTION(...)
The standard loop construct is the DO loop, but
DO U BLEP RECISION IF
is not the start of a loop. Rather, you could make a comparison with the above variable
IF (IF.GT.INTEGER) ...
In my student days, there was a single course teaching Fortran. We made it a habit to solve the execizes using predefined identifiers only. Sort of like OCCC, but it took far less effort to obfuscate Fortran.
|
|
|
|
|
"1" === 1 is true
What? is is not a keyword in js, and "1" === 1 evaluates as false .
What's going on here?
|
|
|
|
|
In the old fortran stuff:
3 = 9
And change the value of 3 to 9 (Because some nimrod decided to declare numeric constants as variables?) LMAO.
But they fix everything by adding an =, so we get =, ==, ===...
I am waiting to read some code:
if (x ======= y)
and
if (x ======== y)
|
|
|
|
|
"1" === 1 is true
Umm, this statement is false. Put "1" === 1 into the dev tools console and it will output false.
|
|
|
|
|
I just loved seeing C/C++ code from colleagues too lazy to comment out a block of code (and letting it sit there for years) via:
#if 0
...
#endif
I should just go back to clean it out, but now it's nostalgic for me.
|
|
|
|
|
On Error Resume Next
/thread
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Is a capital offence an all-caps Twitter rant?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
HALP! SEND CODEZ PLZ! URGENTZ!
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
NO
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
OH YES IT IS
(I prefer to argue quietly)
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
WHAT A COVFEFE IDEA!
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Posting on Twitter is capital.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
You mean a capital offence!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
The ambiguity is deliberate. :evil grin:
(See G&S's The Mikado)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Mainly, Malicious Media Merely Made More Maddeningly Monstrous.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Monetary Mammoths Magnate Many Meanderers Munching Mortified Musings
The best way to improve Windows is run it on a Mac.
The best way to bring a Mac to its knees is to run Windows on it.
~ my brother Jeff
|
|
|
|
|
A capital offence is anything a twat tweets from a capital city.
I only have a signature in order to let @DalekDave follow my posts.
|
|
|
|