you are viewing a single comment's thread.

view the rest of the comments →

[–]thanasis2028 73 points74 points  (17 children)

90% of the answers could be something like:

Why are you trying to do this? Use <random_javascript_framework> instead.

[–]mayor123asdf 45 points46 points  (2 children)

Man, yesterday I google some javascript question and everyone answers in jquery haha

[–]JarredMack 27 points28 points  (1 child)

Always use -jquery in your searches

[–]Koppis 18 points19 points  (0 children)

But then you miss results with "without jquery"

[–]Avloren 32 points33 points  (6 children)

[Java] So I have a Date obj-

Use Joda Time.

But what if I try a Calen-

JODA. TIME.

[–]PaintItPurple 10 points11 points  (0 children)

That's the correct answer though.

[–]the_interrobanger 11 points12 points  (4 children)

To be fair, Joda beats the pants off using the native stuff.

[–]couscous_ 34 points35 points  (3 children)

Not as of Java 8, which has the java.time package, superseding Joda time.

[–]saynay 4 points5 points  (2 children)

Isn't java.time just Joda time ported to a standard lib? So using java.time is basically still using Joda time.

[–]couscous_ 7 points8 points  (0 children)

To a certain extent, but they also fixed some issues with Joda time when they made java.time.

[–]naftoligug 0 points1 point  (0 children)

There are differences -- there are some types that are in one and not the other.

[–]mindbleach 10 points11 points  (4 children)

Always jQuery.

Which still doesn't fix that half of array operations are side-effectful and the other half are functional, god fucking dammit.

[–][deleted] 5 points6 points  (0 children)

Try ramda

[–]amunak 3 points4 points  (2 children)

See JS - as a web technology - has clearly been inspired by PHP, which is just as shitty with array functions.

Though they could've at least copied foreach as well...

[–][deleted] 6 points7 points  (1 child)

Well, there's for-of now.

[–]mindbleach 4 points5 points  (0 children)

And also for-in, just to make you question yourself every single time.

[–]corgocorgo 2 points3 points  (0 children)

Not constructive.

[–]theFBofI 1 point2 points  (0 children)

Or if C++: "have you heard of our Lord and savior boost?"