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

How much javascript is too much javascript? I've noticed

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 22
Thread images: 3

File: googlel.png (2MB, 3288x1948px) Image search: [Google]
googlel.png
2MB, 3288x1948px
How much javascript is too much javascript?

I've noticed a trend where sites are just a head element with all the various JS files and the body element contains a single script with JSON and bullshit.init();

Thoughts?
>>
>>59021725
Retard webdevs realize that HTML is not programming so they drop all the performance and use JS to render/place HTML elements to get a feel of being a "coder".
>>
>>59021725
Any JS is too much
>>
>>59022097
Go to bed grandpa
>>
>>59021725

Once you start using javascript to modify the layout of your page, you're using too much javascript.
>>
>Not understanding the modern day web application.
I'm sure everyone here has used Google Docs/Netflix/GMail at some point.

>>59022061
Like the full-stack web engineers* making $$ at Facebook/Netflix/insert whatever

A good Node server+ some C++ addons if I want them can do much more than your lame-ass Python 2.7 scripts.
>>
>>59022686
>I'm sure everyone here has used Google Docs/Netflix/GMail at some point.
It was rape, I didn't consent.
>>
>>59022686
>A good Node server+ some C++ addons if I want them can do much more than your lame-ass Python 2.7 scripts.

yeah with 10x the dev time, memory risks and huge compile times. Those stupid python devs, amiright?
>>
File: 1483918157876.gif (1006KB, 222x162px) Image search: [Google]
1483918157876.gif
1006KB, 222x162px
>>59022851
Writing C code is as easy as doing basic algebra.
Using JS/C#/Python or any other abomination spawned by retards is easy because for every line of code there is 5000 lines hidden inside Dlls/Frameworks.

Also every *modern* backend framework uses lib_uv under the hood, guess what language is lib_uv written in?
Thats fucking right. C
>>
>>59023000
Which is just ASM under the hood

LMOA PWNED NOOB
>>
>>59022851

>yeah with 10x the dev time
kek, my sides
>>
>>59023000
C is 1:1 to ASM

If you cant imagine ASM output while writing C you dont deserve to use computers
>>
>>59023035
You can laugh but it is true. Imagine the following real example:

Parsing JSON where the results are not known before compile time.
Python just load the JSON - types, length are of no issue

now do c/++
Auto is determined at compile time which isn't handy, maps require a type->type mapping upon creation so you will need to use some sort of container to house the results. Perhaps a linked list if the number of results aren't known.

Dev time is slow because all these little things that need to be considered add up while they're non issues in python.
>>
>>59023165
What a dipshit example for a node/c++ server. Did you read what you replied to?
>>
>>59021725
>How much javascript is too much javascript?
more than 10 metric lines per event
>>
>>59023191
Yes wouldn't one assume that c++ modules would involve writing c++? And its not like node is light on its use with JSON
>>
>>59023053
>C is 1:1 to ASM
HAHAHAHA
>>
File: questionable3423.png (101KB, 244x295px) Image search: [Google]
questionable3423.png
101KB, 244x295px
>>59023053
>C is 1:1 to ASM
>>
>>59022621
Kill yourself, you dumb fucking shit stain.
>>
>>59021725
>How much javascript is too much javascript?
if your content is static (text, images) then any javascript is too much javascript.
>>
>>59023053
>implying
Have you ever disassembled anything and realized how much bloat C puts inside?
If anything Forth is more akin to a 1:1 assembly.
>>
>>59023165
>Node server+ some C++ addons
Your example is literally idiotic because the Nodejs parses the JSON "natively". Using C++ in the backend doesn't mean writing everything in C++.

Also, using Python for everything in the backend is literally retarded. The ideal backend is a microservice architecture using the best languages for the job. C++ for heavy computation, Go/Node for CRUD and gluing things together, Java for Websockets, etc etc
Thread posts: 22
Thread images: 3


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.