[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
What actually makes JS/node/any framework on JS so bad? It gets

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

Thread replies: 11
Thread images: 3
File: jsterror.png (80 KB, 300x393) Image search: [Google]
jsterror.png
80 KB, 300x393
What actually makes JS/node/any framework on JS so bad?
It gets alot of hate here, and I don't like it myself for the horrible syntax and the single-threading of node.
But there has to be more, right?
>>
no type system
>>
File: eggplant.png (212 KB, 512x512) Image search: [Google]
eggplant.png
212 KB, 512x512
Eggplants
>>
>>52342774
JS is probably one of the most durable languages created. Trolls and scriptkiddies gave it the stereotype that its bad. Flash was way ahead of its time and can still be the prime source for media that's encoded.
>>
>>52342774
flood of frameworks that do the same thing and are over complicated for no reason
>>
>>52342822
>what is FORTRAN
>what is COBOL
>>
>>52342790
That doesn't specifically make JS bad (although it helps), but it is a feature multiple languages support.
>>
>>52342774
I can't talk about all js frameworks in general.
But js has some fundamental flaws. The two biggest are probably its inconcistency throughout the whole language (stuff like []+{} and {}+[]) which make it a pain to learn and use, and a type system that is so weak it will gladly parse a string to a number if it finds the opportunity and sell it as an implicit cast and can't even guarantee how many parameters will be passed to a function.
Node tries to give you asycronycy without the trouble that is locking and synchronisation. The way it does that is with callbacks. Unfortunately it does not provide the necessary abstraction facilities to compose these callbacks. So bad programmers will inevitably end up in the infamous callback hell. Obviously good programmers are able to write their own abstraction layer to work with but tons of code is still an unreadable mess.
>>
File: 1442200772223.gif (496 KB, 500x455) Image search: [Google]
1442200772223.gif
496 KB, 500x455
>>52342774
>he actually thinks g's opinion matters
>>
>>52342774
That code snippet in the OP picture isn't really evil though. Nothing can really be injected in there.

Stupid and lazy? Yes. Evil? No.
>>
>>52344936
>for(p=...)
>not for(var p=...)

spooky skeletal stuff goin on in here
Thread replies: 11
Thread images: 3

[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK