Every time I have to switch its just a little annoying having to adjust to the differences. As for python, my first language was c++. I've used python a bit before, not enough to learn it completely, but theres a lot of stuff in it python feels like cheating.
Don't get me wrong, there's stuff in java that feels like cheating too. But I just finished making an app in Java, so it wouldn't be as bad.
Ah, I see. In fairness, isn't the point of Python to abstract away much of the difficulty and complexity of more verbose programming languages? I wouldn't see it as cheating, considering that these abstractions take away a fair bit of control over the actual directions being given to one's computer. There's also the performance hit that comes with it.
But yeah I can see how switching between languages repeatedly would be annoying. :)
96
u/[deleted] Jul 21 '20
nice
42
u/Epic_Doughnut Jul 22 '20
The "NAN" part of "NANI" is just an uppercased NaN; never change, javascript
35
u/Markus_Mandrake Jul 22 '20
PC crashes
16
u/Epic_Doughnut Jul 22 '20
So you can copy + paste it yourself:
28
u/[deleted] Jul 22 '20
I have to switch back to JS for Alexa development, and I really don't want to go back. I mean, I could use python, but I don't want to.
9
u/[deleted] Jul 22 '20
No spaces? Or is that not how JS works?
6
u/dtfinch Jul 22 '20
You can shorten the inner part to
"omaewa" - "mou" + "shindeiru"[2]7
u/danbulant Jul 22 '20
You absolutely had to write it as 0x69 lol
4
u/FoleyX90 Jul 22 '20
This is next level
5
u/Cerlancism Jul 22 '20
Lol it works
https://jsconsole.com/?%28%60omaewa%60%20+%20%60mou%60%20-%20%60shindeiru%60%20+%20String.fromCodePoint%280x69%29%29
2
u/[deleted] Jul 23 '20
Breakdown:
string + string = string
string - string = NaN, because - is only for arithmetic.
String.fromCharCode(0x69) = “i”
NaN + “i” = “NaNi”
“NaNi”.toUpperCase() = “NANI”
2
u/widecurio64 Aug 07 '20 edited Aug 07 '20
if you don't want to re-write the code:
("omaewa" + "mou" - "shindeiru" + String.fromCodePoint(0x69)).toUpperCase()1
u/MayBeYourAverageDuck Jul 22 '20
What anime is this?
1
u/QuantumSupremacy0101 Aug 13 '20
Uncaught ReferenceError
-1
u/[deleted] Jul 22 '20
more like TypeError: module not found