r/shittyprogramming • • Jul 14 '15

Didn't Even Pass The Year

Post image
241 Upvotes

19 comments sorted by

33

u/Deaboy Jul 14 '15

No semicolon either. Even more ironic that it's an ad for a world-famous IDE.

78

u/sirchumley Jul 14 '15 edited Jul 14 '15

To be fair, Visual Studio supports Visual Basic and F#, which don't require semicolons for line endings. Also, DateTime.Parse(_) uses the current year if the string contains an incomplete date. I don't think this is all that shitty.

3

u/0hmyscience Jul 14 '15

So what does this tell us about OP?

3

u/FAPSLOCK Jul 15 '15

nothing i didn't already know

9

u/jordonbiondo Jul 14 '15

Also supports JS

-13

u/angellus Jul 14 '15

Newer JS requires semicolons. Browsers do not complain, but JSLinters will and if you try to minify it, it will likely blow up in your face. As support for older JS is phased out, browsers should start complaining and throwing errors.

16

u/the_omega99 Jul 14 '15

That's not required. JS linters aren't the language. It's simply good practice to use semicolons and it's good practices that linters are enforcing.

And every JS minifier I've seen can support lack of semicolons fine. The minifier usually will insert its own semicolons as per the rules of automatic semicolon insertion (so it'll work the same way).

No way browsers will unnecessarily break backwards compatibility simply for good programming practice. A site can work perfectly fine without semicolons. Breaking those would be unacceptable. At best, there might be a warning, but I doubt that. It's too minor to spam the console with.

5

u/adipisicing Jul 14 '15 edited Jul 15 '15

EDIT: I completely forgot this was shittyprogramming. Excellent work.

Which newer standard? ES 2015 still does automatic semicolon insertion, and I haven't been able to find anything (yet) about semicolons in the proposals for ES 2016.

I find it incredibly hard to believe they'd break backward compatibility with old websites.

1

u/denvit Jul 15 '15

No newer standard, just the strict mode...

2

u/vicarofyanks Jul 14 '15

Even node will accept JS w/o semicolons, so that's not really true. Strict mode exists for a reason

6

u/AgletsHowDoTheyWork Jul 14 '15

Gnulib's parse_datetime() has the same behavior, so it's definitely not a strange thing to do.

1

u/flukus Jul 15 '15

And javascript (which probably inherited gnulib behavior). As far a sensible defaults go, this is one.

4

u/jCuber Jul 14 '15

Perhaps it's an expression instead of a statement?

-9

u/UlyssesSKrunk Jul 14 '15

To be fair, it's world famous for being shit.

8

u/80386 Jul 14 '15

It's one of the best IDEs on the market today.

-6

u/UlyssesSKrunk Jul 14 '15

That is very highly debateable.

3

u/80386 Jul 15 '15

Have you ever worked with it? Please don't tell me Eclipse is better.