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

Why JS is bad?

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: 45
Thread images: 5

File: 1454502219007.png (2MB, 1100x3100px) Image search: [Google]
1454502219007.png
2MB, 1100x3100px
It seems some /g/entlemen here hate JS. May I ask why?
>>
>>57503216
Use it, you will find out very shortly.

sage.
>>
>>57503396
I use it, that's why I ask. It's fast and can do more than others languages (except C/C++ maybe).
>>
It's not bad.
>>
>>57503216
It's not bad. /g/ is just full of retards who don't know how to use ===.
>>
File: 1468621435941.jpg (74KB, 500x500px) Image search: [Google]
1468621435941.jpg
74KB, 500x500px
>>57503513
Kek.
>>
>>57503466
so, how much languages do you know and for how much time?
>>
>>57503216
It's ugly as a sin down to the bone.

Example:
true == 1             → true
true == "1" → true
false == 0 → true
false == "0" → true

false == undefined → false
false == null → false

null == undefined → true
>>
>>57503683
Thanks for proving >>57503513
>>
>>57503647
Perl for 3 years, Python 2 years, Cobol 5 years.
>>
File: rawerawe.jpg (228KB, 1127x914px) Image search: [Google]
rawerawe.jpg
228KB, 1127x914px
>>57503513

>mfw ===
>>
So, not a single language with any feature that comes from functional programming - which doesn't surprise me.
You should look at racket.
Also
>cobol
>>
>>57503730
Javascript is a functional programming language.
>>
>>57503745
exactly - that's why you find it so cool, and think that it can do more than other languages you know.
And that's why I thought that you could like racket.
>>
>>57503774
Thanks, I'll take a look at it then
>>
>>57503774
I'm not getting paid six figures by my employer to write racket.
>>
It's not free

https://www.gnu.org/philosophy/javascript-trap.en.html
>>
>>57503814
If you're unwilling to learn, then you should GTFO /g/.
>>
>>57503867
I am willing to learn whatever gets good employment. I don't consider working in the basement of Paul Graham for pennies to be good employment, while there are numerous high paying Javascript positions out there.
>>
>>57503880
but you claim to already being paid six figures. Why are you even here, then?
>>
>>57503880
>I am willing to learn
as you shitpost on an anime image board
>>
>>57503906
Are you saying that employed people aren't allowed to participate in an anonymous mongolian tapestry forum?
>>
>>57503843
It's free, some libraries aren't.
>>
>>57503920
I'm saying that instead of bragging about your willingness to learn you should actually learn something instead of the fucking javascript that everybody and their dog is able to write.
>>
>>57503843
FREE AS FREEDOM
>>
>>57503491
No, JS is unhealthy and shouldn't exist.
>>
>>57504223
I agree, neither should the internet
>>
>>57503216
There are many reasons. One of them is callback hell.

>inb4 use promises
Most existing code isn't compatible woth promises right out of the bat, and it's a bit counter-intuitive in a first sight.
>>
>>57504847
also because its standards are redefined year by year - and I mean A LOT. Babel is the worst abomination I've ever seen personally - wastes an ungodly amount of programmer's time. Might as well using the plain old standard, or any other thing that transpiles to it, like elm/clojurescript/typescript/whatever
>>
>people don't know to use ==== for proper comparisons

-_-
>>
>>57504890
You learn to set up babel once and should be good to go forever. Callback hell sounds avoidable with the project structure
>>
>>57504954
nope for babel. It kinda works for some general use-case stuff - but don't you dare needing something a tiny bit more specific, cause you're gonna need a metric ton of modules for that. And you have to set them CORRECTLY otherwise it'll spit something less readable and understandable than the friggin java stacktraces, and you stay there figuring out why the hell aren't you writing shit in a sane fucking language.
Now for a callback hell - no, you can't avoid that shit. You can use angular or some similar shit - which is even worse than the former.
The only sane thing to do is to resort to FRP, which is godly when applied to GUI. But such stuff actually requires you to use lots of functional features in JS, which do not really work, or even exist - such as immutability. And that's when you start complicating your life with react+redux+babel/JSX/typescript+node for server-side rendering (WTF). I mean, job security is OK, but isn't it going a tiny bit too far for a language created for small hacks in the 90s webpages? That's why Elm/Clojurescript/other languages who compile to JS are created - that shit language isn't cutting it anymore.
>>
>>57505066
I will gladly wait for the bus to fill itself and leave before I go looking for a ticket to Elm/Clojurescript/etc...
>Intended for small hacks
Fair point. The number of frameworks and libraries is mindboggling that are out there to accomplish pretty much what jQuery's been doing for a decade.

That said, I am a solo/freelance developer with few to no concerns about team members having to understand most of my code, so I picked my stack and I'm comfortable. MEAN with Webpack/Babel for build and Karma/Jasmine for testing works just fine for me. I only wish it didn't take me ~2 damn months to learn angular and a shit ton of headdache getting Webpack/Babel working. But going forward I would feel fine getting up and running with a new project in an hour or less, using the same stack
>>
>>57504910
I Use GilletteJS to solve this problem.

>=====
>>
>>57505119
I'm biased since I'm a clojure developer, but clojurescript is REALLY nice imho. I made a small game in a day with it, so it wasn't really that hard. Never tried anything seriously frontend-ish though.
>>
>>57505146
Def will check it out then
>>
>>57503843
The LANGUAGE isn't free. Software written in it isn't always free (which is true of most languages, but it's especially concerning with JS since it's so much more likely than other languages to run on your computer without your consent).
>>
>>57505233
The LANGUAGE is* free.
>>
>>57505139
I use HeliumJS to solve the problem even better
>=========
>>
>>57505066
You can avoid callbacks. That's why promises were made. How sane those promises are really depends on the programmer. The ES standards are at least moving everything forward in a better direction. Funny enough, where I work one of our main project uses exactly that.

But you're right, doing babel for a tiny, specific project is a pain in the ass. But I wouldn't say it wastes a huge amount of my time. I've set babel up a handful of times and then it became quite easy.

Unfortunately, Javascript is what we have and its never going to stop being ridiculously popular because of how easy to pick up and prolific it is.
>>
>>57505337
*One of our main projects uses exactly what you said, react+redux+babel/JSX/typescript+node.
>>
>>57503730
>cobol

eyy it gets you money
>>
>>57505262
Too late you already wrote it. Oracle... freedom...

That's funny
>>
File: ancientWeeb.jpg (12KB, 257x196px) Image search: [Google]
ancientWeeb.jpg
12KB, 257x196px
>>57503920
whoah slow down there, the basket weaving joke was ok but I think calling it a mongolian tapestry forum is too close to what it actually is.
>>
>>57503216
Type coercion and overloaded operators, two insurmountable problems if you're a complete retard.

Javascript is beginner friendly, so it lets you write bad code, that doesn't mean you can only write bad code with Javascript. I recommend using a linter.
Thread posts: 45
Thread images: 5


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