C? lmao just use javascript

>c? lmao just use javascript.

Attached: 65d.png (434x327, 32K)

Other urls found in this thread:

lmgtfy.com/?q=falsy truthy javascript
twitter.com/SFWRedditVideos

Welcome to Node.js v12.4.0.
Type ".help" for more information.
> 0 == "0"
true
> 0 == []
true
> "0" == []
false
> 0 == ""
true
> "" == []
true

>===

fixed :)

imagine being too retarded to read the docs
lmgtfy.com/?q=falsy truthy javascript

imagine having to bolt on an extra = to fix your shitty language

it's almost like semantics were left up to the language designers

imagine being so obese the effort of typing another = makes you out of breath you fucking fat piece of shit

Other languages have worse stupid shit.

Take java
String a = "a";
String a2 = "a";
System.out.println(a == a2); //true

String ab = "ab";
String a_ = ab.substring(0,1); // "a"
System.out.println(a_ == a); //false
System.out.println(a_ == a2); //false


wew kid. Go dilate

The zoomer who outright rejects C in favor of JavaScript is a scapegoat Cniles created to keep pushing C, same with Rust.
No one but them ever gives a shit.

This

Also does anyone have that Java example where small integers are equal but larger aren't because of cache?

As typical of C-derived languages, every stupid decision is justified by taking the absolute worst from another C-derived language and comparing it to it, resulting in an endless cycle of mediocrity.

>imagine being too retarded to

actually touching this kind of abomination

You're a retard. While they should read the docs it's because of the behavior of type coercion not which values are truthy-falsy in javascript.
You don't need an extra =, you just need to understand type coercion.

lol no

you must understand that weak typing is absolute retardation

And when will you ever use type coercion? Because it seems you're just complaining about a feature that you don't have to use

lmao. Just chase Pokemon

my friend, I have studied PL theory and I do know what is weak typing and what are the consequences.

the authors of fucking abomination did not.

there is only 2 languages made by ignorant retarded snowflakes without a CS background, namely PHP and Javascript.

these must be just fucking avoided for all costs

/thread

Just have sex and use equals

This

i have a job, why would i use c?

nice spacing fren

It's been a long time since I used Java, but I'm pretty sure
System.out.println(a == a2);
should return false as well.

strings literals are cached just like numerics, so the runtime system returns the same object for both "a"

>C? That's not half bad, but I prefer C#

Attached: 1560287627291.jpg (1357x960, 103K)

*ding ding ding*
God bless Pascal. That is all.

Attached: pepetoast.png (1000x1000, 216K)

>C? lmao just use assembly

Attached: 1552341428713.png (380x349, 52K)

So modifying a will modify a2 as well? That's not retarded at all

Attached: 1536196418393.png (540x400, 221K)

strings are immutable in java. If you change one you get a new object

I don't support things like Electron and left-pad, but JavaScript is a rare example of a language that has managed to un-JUST itself and becomes better with every update.

Attached: 1558743172174.jpg (250x250, 19K)

great example of cognitive dissonance of the js haters.

My only issue is not based on gender or race,i want to bash JavaScript nigger heads in with a hammer

>Not using plankalkül

Attached: dab.jpg (750x703, 91K)

Not really sure but i thought java had some problems with String comparisons like Switch statements too.

excellent thread

I've used it like a handful of times in a decade.

ITT retards don't know what string pools are.
Try using
String a = new String("a");

you use .equals() pajeet. I thought you fuckers had certs

>not only people using java are pajeets but everyone talking about it (except me)

wtf is going on in js world?

Attached: 1560081934962.png (700x597, 333K)

Who makes these memes?

>Who cares that the defaults are retarded just jump through hoops

>post example of weird == behavior
>uSe EquALs pAJeEt

the absolute state of brainlets

It's not weird behaviour, string is a reference in java and comparing references compares whether they're pointing to the same object.
Javascript is just plain retarded compared to that

>defaults

learn the fucking language, don't assume because you're used to it in your fave bestest language ever

that's why I use assignment operators and not comparison in if statements
it's always true so I know the outcome.

Why would you use C? xD stop using old person languages

string pooling

> true+true === 2
true
> true === 1
false

lol

That's literally like C++

Also C++ has boolean ++ operator but no -- operator. That's hilarious.

>Not a tranny.
>Not Pajeet.
>Not SJW.
>Not into social media.
>Not into Jew network news.
>Not political.
>Not mentally ill.
>Not living with my parents.
>Not hating my self.
>Not a retard.
"C" programmers workout mentally and physically. Goto bars and get laid because they're in work and have money (lots of it).
Also my job won't be replaced by some street shitting monkey illiterate pajeet, land whale SJW or some mentally diseased tranny faggot that'll neck himself because.

Attached: shitcoder.jpg (474x727, 52K)

Rust requires more mental workout than C though.

>c++
>beautiful and cleanly designed
even bjarne wouldn't agree with that

Nice joke

No, because in C you have to keep in mind who owns what, when it should be freed, what not to use anymore...
While in Rust the type system itself makes that clear.

/v/ perhaps

>t. never used Rust
Even C++ requires more thinking. C is pretty clean and simple language. It's not braindead simple, but in general it's not really complex.
In Rust you have strict rules you have to follow, complex type and lifetimes system to understand and higher abstraction to comprehend.

Dealing with pedantic Rust compiler is harder. Sure, it's easier to shot yourself in the foot in C, but in Rust you are much more restricted in how you can solve these problems and you have to think ahead of time quite a lot.

That's not how you compare String types in java you retard mouthbreather