DEV Community

Discussion on: We Should Get Rid of HelloWorld Foreverđź’©

Collapse
 
hb profile image
Henry Boisdequin

Maybe we can do this:

function testFalse() {
     Assert("Hello" == "World")
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ricobrase profile image
Rico Brase

From a conceptual point of view, it's irrelevant if we are comparing numbers/ints or strings. It's the same thing.

Collapse
 
mcsee profile image
Maxi Contieri • Edited

Yes. I try to write my articles in pseudo code. So everyone understand it
Of course i could have chosen any real language. But i write for humans, not for compilers.
If you see my code smell series their code is written in 12 different languages. I deliberately choose not to use a real one on this article.

But i agree maybe checking strings will be better than checking numbers