[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]

JS is cancer

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: 28
Thread images: 3

File: 9812973618726.jpg (42KB, 500x500px) Image search: [Google]
9812973618726.jpg
42KB, 500x500px
>let's take a look at javascript patterns for [current year]
>[current trend].io is a minimal ([size]kb!) module based loader bundling task manager dependency entry system automator
JS is absolutely unbearable nowadays. front-end shitheads literally spend hours setting up their projects only to make to-do lists and mix HTML in their JS
>>
>front-end shitheads literally spend hours setting up their projects only to make to-do lists and mix HTML in their JS

$ npm install -g create-react-app
$ create-react-app penis
...
$ npm run build
>>
>>59974393
>npm
>>
>>59974758
Not an argument.
>>
File: 1490591216148.jpg (110KB, 759x508px) Image search: [Google]
1490591216148.jpg
110KB, 759x508px
>>59974177
>Tfw forced to use a million JS packages at work
True suffering
>>
>>59974177
>mfw my hipster coworker convinced my boss we need to do react after we just switched to angular 2 years ago.

We lost 4 months getting it all set up
>>
>>59974393
$ create-react-app jsfagots
$ du -ch
110M Total


JS is awesome!
>>
>>59975508
I hope you're not being serious.
>>
> /g/ is full of virgins who cant code tht never respond to actual programming questions that are not fizzbuzz and make fun of js in order to fit

Prove me wrong
>>
>>59977157

To be fair React is the future™
>>
>>59977473
You're correct but JavaScript is also a terrible language.

It was literally designed in 2 weeks. There's almost no rhyme or reason to the syntax, you constantly have the ability to create undefined behavior, it decides willy nilly what constitutes an "error" but regardless will make every following line of code not work and it's so abhorrently verbose that most everyone just uses a total re-do of the language that boils down 10 letter words into a single symbol.

It's basically a monument to creating things before you know what to do with them. People have been as versatile as they can by creating tools that make up for its inadequacies because they need to and it's the equivalent of finding new and innovative ways to build automobiles out of Lego.
>>
File: 1458848624284.png (9KB, 383x276px) Image search: [Google]
1458848624284.png
9KB, 383x276px
>>59979533
And yet the language beat Java and Flash and many others at the web browser game.

It's definitely got a lot of shitty aspects, but as long as you take the time to learn the language, ignore hype from the ADHD.js community, and practice discipline when you code, it's pretty awesome.

The "written in 10 days" thing isn't a bad thing in my book. It means that the language is, at it's core, stupidly simple. The type system is garbage, but the higher order functions, builtin event loop, simple/flexible object structure, and prototypical inheritance make for a really fun time in my book. I like building crazy shit out of legos. It's not for everyone, but a lot of people like it.
>>
>>59979720
>immutable strings

defend this
>>
>>59978317
no
>>
>building frameworks and entire applications in a language designed so script kiddies could do simple shit with an HTML page

Basically this >>59979533
>>
>>59979720
The thing is though that Java and Flash forced you to install layers on top of your browser where the content within them wasn't well integrated with the website itself thus leading to the text and images not being indexed by searh engines.

I think the ideal was that HTML had improved so much with version 5 that one day you would no longer need plugins, except not really because there's still crap that HTML itself can't do so you need crap like JavaScript on top of it.
>>
WebAssembly is coming soon™

Hopefully it catches on, i'd love to do some web dev in my prefered language because there's literally no chance of me ever wasting my time with JS.
>>
>>59979720

>beat Java and Flash

yeah good job
>>
>>59974177
Is that Rich from ReviewTechUSA?
>>
Reminder that React Fiber is GOAT and Facebook is a benevolent company.
>>
>>59982820
Really all GUI frameworks should work by principles similar to React. Well, maybe they soon will with React Native, as crazy as that is.
>>
>>59982845
React is a good but nothing new.
>>
>>59982277
fuck that shit though, sounds awful

every web site will eventually be a whole OS and the browser will have to support this, it will never fucking end

it will be a hell 10x worse than what we have now and ad-blocking will be a thing of the past

the technology is all in place right now with kaby lake
>>
>>59979533
js is verbose? java and c++ are what then?
>>
>>59979720
the thing with web browser games is that js is native while java and flash aren`t, like >>59982235
said. also agree with you >>59982235 about the html thing, there was a lot of improved in HTML5 but i think it'll always require some plugin to extend its capabilities.
>>
>>59982820
>Facebook is a benevolent company.
It is a terror organization that aims to kill humans by destroying freedom of thought.
Facebook never can and never will do something for the benefit of others.
The internet is garbage now and it is mostly because of companies like facebook.
>>
>>59974177
JS is horrible because of the language.

Small, testable modules should be what everyone aims for in all forms.

You would put cd and ls into the same executable wouldn't you?
>>
>>59976681
is this real

i knew JS was bad, but...
Thread posts: 28
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.