[ / / / / / / / / / / / / / ] [ dir / animu / arepa / asmr / ausneets / pawsru / sonyeon / vg / wx ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 032cfa77face18c⋯.jpg (37.83 KB, 1052x1052, 1:1, serveimage.jpg) (h) (u)

[–]

 No.972678>>972693 >>972719 >>972797 >>975592 [Watch Thread][Show All Posts]

>Javascript is for brainlets

This is both right and wrong. While you do have to be a brainlet or a masochist to want to use Javascript, it is by far the most confusing clusterfuck of a language that is still in popular use today. On top of that, you are expected to learn at least five different frameworks that have no common sense of rhyme or reason, all adopting their own standards for modularization, scoping, object handling, callbacks, etc. It's impossible to debug, so you better hope you know what you're doing, and all of the documentation is impenetrable thanks to JS having no type signatures or declarations and handling everything through vague and difficult to inspect "objects" that go back and forth between JSON.

Fuck this language. The people who invented Node need to be shot. Brendan Eichmann and his old managers too.

>Isn't it great that we can use one single language for our database queries, backend, frontend, and sidewaysend??

NO, USE THE RIGHT TOOL FOR THE JOB YOU FUCKING SHILLS. I'm going to start bleeding from my ears if I hear this one again.

Webassembly please save us.

 No.972693>>973010

>>972678 (OP)

>Webassembly please save us.

Out of the frying pan and into the fire.


 No.972694>>972782

Why do webniggers prefer languages with weak or no static checks for the backend?


 No.972719>>972782

File (hide): 92c9e1a706c0a79⋯.png (238.85 KB, 326x382, 163:191, 125266733.png) (h) (u)

>>972678 (OP)

>OP is too retarded to use fucking Javascript


 No.972782

>>972694

This is a really good question actually

>>972719

Just because you can use something doesn't mean you should


 No.972797>>972845

>>972678 (OP)

I don't really want to put blame on Eich.

IIRC when Netscape guys were putting JS into their browser, they just wanted a small feature to compete against IE by making simple drop-down menus or something.

No one really thought this through much, and no one expected the amount of abuse JS will be subjected to 15 or so years later.

> Eich originally joined intending to put Scheme "in the browser", but his Netscape superiors insisted that the language resemble Java in terms of its syntax.

>Scheme "in the browser"

Huh, this is the first time I am hearing this. What could have been...


 No.972845

>>972797

This. Javascript is OK for what it was meant to be. The same goes for HTML, CSS and the entire web. It was meant to mark up and present documents, not half an operating system with the worst GUI framework known to man.


 No.972880

Where you're WRONG:

>WASM

>make a call to Javascript for every little shit because there are no bindings for it

Just no.

>On top of that, you are expected to learn at least five different frameworks

If you don't need to support IE and write native scripts: 0 And it's much less code.

>It's impossible to debug

>What is F12

>not just typing in the object name to check if all object values are of the correct type

>what is parseInt()

>JSON is bad

JSON is the JS code turning data into JS code. While that might have been a problem back in the day because retards used eval(), that is no longer the case. You can just attach all your stuff to one object, throw it into JSON.stingify() and read out the values from JSON.parse(). I don't see the problem with it.

Where you're RIGHT:

>The people who invented Node need to be shot. Brendan Eichmann and his old managers too.

*(((Brendan Eich)))

Don't pretend his name is actually German. He's just a fucking kike with a fantasy name. He also made the Brave browser which (((replaces ads with his own))).

>far the most confusing clusterfuck

While that is true. Modern browsers standardized it more than ever.

You should just stick too old things which are supported everywhere instead of using the newest shiniest thing.

>serverside JS

No use for it. It makes zero sense to use it on the server which is not limited by the client.

JavaScript Type Conversion Table from (((them))): (That's a must read. Especially the red values.)

https://www.w3schools.com/js/js_type_conversion.asp

Also use === and !== where you can, to avoid null being undefined and so on. It's faster than == and != too.

Sage for bait OP.


 No.973010>>973022 >>974679

>>972693

>>Webassembly please save us.

>Out of the frying pan and into the fire.

wasm will let us use real languages, it'll be faster and have smaller downloads. JS is already full of spyware, malware, coin miners, etc, wasm can't make it any worse. If it can even just partially eat into the JS browser monopoly, it'll greatly reduce incentive for psychotic managers to introduce JS on the backend or desktop.


 No.973022>>974130

>>973010

>wasm can't make it any worse.

>coinminers are more efficient

>wasm can't make it any worse.

>introduce JS on the backend or desktop

I bet cancer stays cancer.


 No.974130

>>973022

>>coinminers are more efficient

whether it makes miners a few cents or a dollar, it's chewing up my threads either way


 No.974131>>974381 >>974411

EMCAscript is the ultimate hacker language, everything you write in it is a hack.


 No.974381

>>974131

which is a problem. Fuck hackers.


 No.974411

>>974131

YMCAScript?


 No.974679>>975094 >>975541

>>973010

>wasm will let us use real languages, it'll be faster and have smaller downloads

Do you think wasm will allow compile from source or have package management? One thing I like about JavaScript is that in many cases, you can still audit it and modify it with userscripts. Just concerned about how wasm will avoid blindly trusting blobs of unreadable machine code.


 No.975094>>975541

>>974679

>Just concerned about how wasm will avoid blindly trusting blobs of unreadable machine code

you should be concerned, because that's it's primary use case. javascript simply loads a precompiled web assembly blob and then executes it.


 No.975541>>975593

>>975094

>>974679

JS downloads are all obfuscated these days anyway.


 No.975592

>>972678 (OP)

Use Typescript

Don't do everything in JS/TS, just use REST

Don't underestimate how cool the asynchronus stuff can be either


 No.975593

>>975541

Minified, yeah, to save space. Most of the time you can auto-format it back into form.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
18 replies | 1 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / arepa / asmr / ausneets / pawsru / sonyeon / vg / wx ][ watchlist ]