Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Redpill me on javacript

Name: Anonymous 2018-06-15 17:00

Please

Name: Anonymous 2018-06-15 17:36

it's considered harmful

Name: Anonymous 2018-06-15 17:50

it's slow
it's not just for web (see: react native, electron, and so on)
it's easy to learn the basics, but very few people use vanilla javascript -- look up node, express, angular, react, jquery, and so on
anonymous functions
weakly typed, dynamically typed
prototypical inheritance
ecmascript is sorta like javascript but often has newer features that aren't universally implemented yet, like class-based inheritance
there are differences between ES5 and ES6
you can make a server backend with something like node, it's not just for frontend stuff like dom manipulation or alert boxes
html = layout, css = style, javascript = interaction
don't do inline javascript, always embed an external .js file -- separation of concerns and all that
javascript can be potentially harmful for malware or identifying you, even if you are using a VPN or tor
javascript can also be very good too
many web applications don't work without javascript enabled
JSON = JavaScript Object Notation, which is a simple method of formatting data, kind of like XML but better
js can be obfuscated with minifiers that make the code unreadable, even though it's interpreted rather than compiled
the guy who made javascript got fired for donating to an anti-gay thing
noSQL a.k.a. document-based databases like MongoDB use JSON, so if you're learning javascript, it's easier to learn MongoDB than MySQL
something about JSON schema and Mongoose too
MEAN stack is js frontend, js backend, and json database -- basically, javascript: the full stack
don't get too deep into any single javascript library or framework because they come and go quickly and there is always a new fad/flavor-of-the-month one
web development these days is not just vanilla css/html/javascript, it's complex as fuck

overall, it's worth learning
it's not perfect, but it's not as bad as many boomer /prog/lodytes say it is

Name: Anonymous 2018-06-15 17:52

I mean html is the content structure
technically css dictates the layout
but really your backend should do templates or some shit and then you retrieve data from a database
database = content
html = content structure
css = style/layout
javascript = interaction
but sometimes you get shit like bootstrap where it uses html classes to dictate style and responsive design bullshite

Name: Anonymous 2018-06-15 22:52

automatic semicolon insertion

Name: Anonymous 2018-06-16 3:20

>>1
Quick rundown:
Its the future.
JavaScript is behind all website functionality.
Favorite language of Mentifex and FrozenVoid.
Capable of Strong AI.
Used by malware to mine crypto.
All cool projects on Node.js
All modern UI based on react.js and electron
Has both prototype and class-based OOP
Really fast due years of browser optimizations
Can be obfuscated easily, entire programs can be written with operators and []"".
Easy to learn for absolute beginners
Debugging is much harder due dynamic variables and browser bugs.
Interfaces OpenGL(webGL) and OpenCL(webCL) allowing 3D games and fast parallel computing.

Name: Anonymous 2018-06-16 5:08

javascript has the highly readable, expressive syntax of C and the blazing fast speed of Ruby

Name: Anonymous 2018-06-16 5:22

>>7
kek

Name: Anonymous 2018-06-16 5:58

>>7
has the highly readable, expressive syntax of C
You're not wrong. C-style syntax is way easier to read than stuff like LISP

Name: Anonymous 2018-06-16 15:15

>>9
U MENA HASKAL

Name: Anonymous 2018-06-16 18:13

>>3
it's slow
After decades of optimization for the sake of people bloating their websites with garbage--it's become not so slow.

Also, C programs compiled to asm.js are only slower by a factor of 1.5x.

Name: Anonymous 2018-06-16 19:01

>>11
javascript by itself or in theory: not so slow
javascript in practice: slow and bloated as fuck

Name: Anonymous 2018-06-17 4:58

>>9
nah that’s BS. LISP is very easy to read if you have paredit and proper indentation (which can be done automatically in most editors). there’s no syntax. you just have to know what the functions or macros do (but that’s the same in every language so it’s moot). compare that to having to remember minutiae like what *p++ does.

Name: Anonymous 2018-06-17 15:35

>>9
C is one of the least readable languages out there.

Name: Anonymous 2018-06-17 16:43

>>13
In C *p++ is incrementing a value of a pointer(*p dereferences).
In C++ this could be a thousands of scenarios dependent on operator overloading and temporary constructors/copy elision/etc.

Name: Anonymous 2018-06-17 17:09

>>13
(((LISP)))

Name: Anonymous 2018-06-17 17:10

>>15

pointers are gay
puff puff... pass by reference!

Name: Anonymous 2018-06-17 20:05

*p++ dereferences p but increments the pointer.
++ increments after use. so * uses p, then ++ increments after its used. this is convenient when iterating over something you allocated, like a char*, and its easy to remember. its good.

a better example of painful thorny little minutae would be ++p*. if you dont think about it that feels like it should increment the pointer then dereferences it but it actually increments the pointed-to, the operators have the same preference but left to right associativity. to increment THEN dereference a pointer you have to use *++p.

Name: Anonymous 2018-06-18 7:40

https://stackoverflow.com/questions/8208021/how-to-increment-a-pointer-address-and-pointers-value
ptr++; // Pointer moves to the next int position (as if it was an array)
++ptr; // Pointer moves to the next int position (as if it was an array)
++*ptr; // The value of ptr is incremented
++(*ptr); // The value of ptr is incremented
++*(ptr); // The value of ptr is incremented
*ptr++; // Pointer moves to the next int position (as if it was an array). But returns the old content
(*ptr)++; // The value of ptr is incremented
*(ptr)++; // Pointer moves to the next int position (as if it was an array). But returns the old content
*++ptr; // Pointer moves to the next int position, and then get's accessed, with your code, segfault
*(++ptr); // Pointer moves to the next int position, and then get's accessed, with your code, segfault

Name: Anonymous 2018-06-18 9:40

>>2
But in terms of 'clients', you could do worse
Every website wants to run some random chunk of C code locally instead

Name: Anonymous 2018-06-18 10:47

>>19
scary that half of the modern world depends on code with shit like this in it

Name: Anonymous 2018-06-18 11:35

check my dubs

Name: Anonymous 2018-06-18 13:43

void takeViagra(Dick& bepis) {
bepis++;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List