r/javascript • • Apr 01 '18

Google publishes a JavaScript style guide. Here are some key lessons.

https://medium.freecodecamp.org/google-publishes-a-javascript-style-guide-here-are-some-key-lessons-1810b8ad050b
714 Upvotes

317 comments sorted by

View all comments

Show parent comments

7

u/RabSimpson Apr 01 '18

Only in the case of client-side code. Who minifies server-side code?

0

u/[deleted] Apr 01 '18

[deleted]

-6

u/RabSimpson Apr 01 '18

I'm not doing it for performance gains, but every little helps.

0

u/[deleted] Apr 02 '18

[deleted]

-5

u/RabSimpson Apr 02 '18

I said I wasn't doing it for performance gains. It's my preferred coding style, but there's no arguing about a smaller memory footprint being better when you're working with a large codebase.

1

u/the_friendly_dildo Apr 02 '18

Someone selling a server-side product that wants to maintain some semblance of 'fuck you i'm in control' over a product.

2

u/RabSimpson Apr 02 '18

Don't they usually just throw it through Zend or ionCube in those cases?

1

u/the_friendly_dildo Apr 02 '18

I haven't used either but those are both used only for PHP aren't they?

2

u/RabSimpson Apr 02 '18

I think so. I've only ever seen them used with PHP.

-14

u/Extract Apr 01 '18

Somebody who wants to squeeze every ounce of performance?

17

u/Mingli91 Apr 01 '18

If you want that level of memory management and performance JavaScript is not the right language for the job

0

u/[deleted] Apr 01 '18

[deleted]

7

u/Mingli91 Apr 01 '18

Quite a few threads on this sub are about JS

2

u/monsto Apr 02 '18

He probably does like me . . .

  1. surf front page.

  2. new-tab shit that looks interesting.

  3. complete surf.

  4. look at tabs.

Plenty of times i've looked at a python thread "who the fuck uses self in JS? ohwait..."

1

u/Mingli91 Apr 02 '18

Haha yeah I guessed so, was just a lame joke

2

u/papers_ Apr 01 '18

White space means nothing.