[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
>> ["10", "10", "10", "10",
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 11
Thread images: 2
File: XC3vfdV.jpg (215 KB, 1257x1394) Image search: [Google]
XC3vfdV.jpg
215 KB, 1257x1394
>> ["10", "10", "10", "10", "10"].map(parseFloat)
<- Array [ 10, 10, 10, 10, 10 ]
>> ["10", "10", "10", "10", "10"].map(parseInt)
<- Array [ 10, NaN, 2, 3, 4 ]


JS apologists and cucks will defend this.
>>
File: cry.png (597 KB, 1280x720) Image search: [Google]
cry.png
597 KB, 1280x720
>javascript
>>
JS cucks CANNOT recover from this.
>>
why does this happen btw?
>>
>>54396148
ParseInt takes a second argument, a base, which silently gets passed the index of the array when it's called by map. Total violation of the principle of least surprise.
>>
>>54396042
Javascript programmer here.

You win.
I accept my defeat unconditionally.
I will delete all my code and re-write everything in C.
>>
So? Just don't use it then. There's are plenty of ways to do that.
>>
At least it's not perl
>>
php, not even once.
class Cassandra\Rows implements \Countable ...
$rows = $session->execute(new Cassandra\SimpleStatement('SELECT * FROM empty_table'));
count($rows); // returns 1
$rows->count(); // returns 0
>>
>>54396042

Will WebAssembly be an improvement or it is just a meme in the making?
>>
>>54396515
No savings over minified JS.
Thread replies: 11
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.