NodeJS

Christopher Carter
Christopher Carter

Why, oh why would anyone use this abomination? How did we even get to this point where it is acceptable to have something like NodeJS exist?
God truly abandonded us.

Attached: 1553090025757.gif (353.98 KB, 709x351)

Other urls found in this thread:

vibed.org/
flaviocopes.com/javascript-automatic-semicolon-insertion/
stackoverflow.com/questions/444080/do-you-recommend-using-semicolons-after-every-statement-in-javascript
seventeencups.net/posts/how-lua-banished-the-semicolons/
dlang.org/spec/declaration.html#declaration_syntax

Parker Cruz
Parker Cruz

God truly abandonded us.
vibed.org/
captcha: phefbi
D is cianigger language confirmed

Nolan Morris
Nolan Morris

PHP didn't pay enough, node pays better.

Parker Hernandez
Parker Hernandez

Thats niggerlicious as terry would say

Ethan Morgan
Ethan Morgan

I find Crystal with Amber is better for this sort of stuff.

Charles Morales
Charles Morales

how much does node pay?

Cameron Edwards
Cameron Edwards

I used both nodejs and php, and here is the trick - instead of hiring two pajeets - one for PHP(back end), one for JS(front end), you hire one pajeet for both, or even 1.5 pajeet, still you have more money. Makes sense?
The WWW is badly designed - you have to know 4 languages to make a website - html, css, js and php. Some people like how it is and create frameworks like electron, pushing badly designed webshit to your computer, some people don't and they try to fix it. Unfortunately they want to "fix" it with JS. html is bad? - Use JSX. css is bad? - use JS. PHP is bad? - use nodejs. JS is bad? - use even more JS, or typescript!
Instead of using one language since the beginning of the WWW, for example LISP, because it is great for creating domain-specific languages, they made 4 languages and now try to "fix" it.
I have a bad experience with nodejs - as gif rel shows, a lot of folders - to make a simple thing work, you need thousands of modules. For a "simple" app you have to install 500MB of JavaShit or even a browser (with electron).

Gavin Russell
Gavin Russell

uses shitty libraries
blames the runtime environment

ok dude. Bet you blame c++ for how shitty boost is too.

Attached: f794bc1780c044e7e43d0930c64aaf8f-imagejpeg.jpg (386.12 KB, 820x801)

Thomas Young
Thomas Young

typescript almost fixes javascript

stl is a shit standard library, how about that gay fag

Adam Scott
Adam Scott

typescript almost fixes javascript
Ok but why did they chose a shitty language just to fix it later, instead of chosing a good language for the first time?
Don't people like and hate javascript, thanks to dynamic typing and not having to add a semicolon at the end of an expression?

Joshua Cruz
Joshua Cruz

Strong typing is a meme. People fall for it because they are inept. If you don't have to worry about memory safety, you don't need type safety, the runtime environment is handling that for you.

And stl is a library. A standard library, but a library nonetheless.

Matthew Moore
Matthew Moore

and not having to add a semicolon at the end of an expression
That's Lua. In Javascript you have to to add a semicolon at the end of an expression.

Dylan Stewart
Dylan Stewart

You don't, actually. That's a convention to make code clearer to read.

Samuel Green
Samuel Green

actually i kind of agree with you there, whats the point of bothering with memory sizes if you're not managing it yourself almost fully (talking to the kernel to almost automatically map your memory to ram / whatever), fug ecmascript has shown me the light
er no, its optional

Bentley Murphy
Bentley Murphy

t. poo writing code full of bugs
THE JAVASCRIPT PARSER REQUIRES THE SEMICOLON IN ORDER TO CORRECTLY PARSE THE LANGUAGE BECAUSE OF THE STRUCTURE
You're fucking retarded. The parser only tries to guess it and in a lot of situations will guess it wrong, you fucking pajeet.
NIGGERS SHOULDN'T BE ALLOWED ACCESS TO COMPUTERS!

Tyler Robinson
Tyler Robinson

flaviocopes.com/javascript-automatic-semicolon-insertion/
Shut up, retard.

Liam Jackson
Liam Jackson

In Javascript you have to to add a semicolon at the end of an expression.
Well both nodejs and firefox js interpreters don't care about semicolons - it won't even report an error. Don't know what ECMA standard says about that though.

Attached: js.jpg (41.04 KB, 1737x253)

Camden Hill
Camden Hill

You don't, actually. That's a convention to make code clearer to read.
Right, especially, when you're looking for bugs. I spent a lot of hours looking for bugs caused by this "convention".

Samuel James
Samuel James

You had difficulties because there was or because there wasn't semicolons? The convention is to add the semicolons.

Noah Ramirez
Noah Ramirez

Niggers, this doesn't run:

// define a function
var fn = function () {
//...
} // semicolon missing at this line

// then execute some code inside a closure
(function () {
//...
})();

This does:

// define a function
var fn = function () {
//...
}; // semicolon NOT missing at this line

// then execute some code inside a closure
(function () {
//...
})();

stackoverflow.com/questions/444080/do-you-recommend-using-semicolons-after-every-statement-in-javascript
Even stackoverflow.com-faggots have figured that out. You should always place it instead of just when it causes trouble because it's implementation dependent when in which situations it will cause trouble.
understands from experience.

Nathaniel Cruz
Nathaniel Cruz

Right, because the runtime tries to guess without the semicolons and might not guess it right. It doesn' change the fact the standard allows you to not place them in your code. Even if you SHOULD place them, the standard doesn't force you. The error in that code is not a missing semicolon.

Jose Collins
Jose Collins

There is no convention to add or remove semicolons.
There's a language and every fucking language spec since it's inception says to put a semicolon after every expression.

Gavin Sanchez
Gavin Sanchez

what is lua
seventeencups.net/posts/how-lua-banished-the-semicolons/

Mason Price
Mason Price

the standard allows you to
look it up
11.9Automatic Semicolon Insertion
Most ECMAScript statements and declarations must be terminated with a semicolon. Such semicolons may always appear explicitly in the source text. For convenience, however, such semicolons may be omitted from the source text in certain situations. These situations are described by saying that semicolons are automatically inserted into the source code token stream in those situations.
may be omitted from the source text in certain situations
Fucking niggers. If you care about code quality and compatibility, you always place them.

Jayden Baker
Jayden Baker

I replied to posts talking about Javascript.

Hunter Scott
Hunter Scott

Listen up you fucking schizo:
1: I have been saying the the convention to make code easier to read and write IS TO ADD them.

2: You just said yourself:
may be omitted from the source text in certain situations

My point remains: you CAN write js without semicolons.

So yeah, nah, fuck off.

Isaiah Myers
Isaiah Myers

pajeets can't even write javascript properly

Attached: 3c9e36927c316c98e22a559b635e578bbe95113d1f5f299731ea71c03ce5058e.jpg (44.94 KB, 592x790)

Elijah Watson
Elijah Watson

The error in that code is not a missing semicolon.
No it is. It's one of those situations where you can't omit it. It just won't work without a semicolon.
That's just the surface. It becomes even worse once they use JQuery to deform the entire language.

Elijah Roberts
Elijah Roberts

Imagine a world where js cucks aren't even using 'use strict'; smdh fams

Hunter Russell
Hunter Russell

Niggers
Could you stop bitching around please?
Even stackoverflow.com-faggots have figured that out. You should always place it instead of just when it causes trouble because it's implementation dependent when in which situations it will cause trouble.
I just said it is possible. I'm not coding like that myself, but people do, because nothing stops them.
understands from experience.
Huh? What's wrong with that? At least I'm not a LARPer.

Nathan James
Nathan James

What's wrong with that?
Nothing. I wrote that what he wrote is true and that he knows from experience. Lern reading.

Xavier Cruz
Xavier Cruz

I just said it is possible.
Writing and reading to an unallocated position in a C array or a C++ vector is also possible and likely doesn't even crash your program.

Ian Taylor
Ian Taylor

use strict
Nice thing, next time someone will force me to code in JS, I'll definitely use it. But why an interpreter let's someone write shitty code? Are there any advantages of doing that?

John Morgan
John Morgan

Writing and reading to an unallocated position in a C array or a C++ vector is also possible and likely doesn't even crash your program.
You've probably just summoned Unix hater. And in my opinion this is a shitty design too.

Gabriel Kelly
Gabriel Kelly

this is a shitty design too.
Programming isn't the job of a graphic designer.
But why an interpreter let's someone write shitty code?
For the same reason, this works:
(new DOMParser).parseFromString("<body sasdfas /body>", 'text/html');
and outputs:
<html><head></head><body sasdfas="" body=""></body></html>
as DOM Elements. If something doesn't work for webtards it's the browsers fault. Or for the languages fault.

Ryan Cruz
Ryan Cruz

Backwards compatibility. Browsers couldn't make a change that would break existing shit. So instead they created a mode that has to be actived in the code to disable a set of features.

Jackson Watson
Jackson Watson

Programming isn't the job of a graphic designer.
I'm sorry, I don't like garbage, C weenies call a feature. Look how clearly pointers are implemented in D, whereas in C it is hard as fuck, and still there exist idiots masturbating to that and calling it a great design. Not agreeing with you doesn't make me a graphic designer.

Leo Ross
Leo Ross

pointers in C are hard as fuck
git gud

Attached: raff.jpeg (8.21 KB, 220x229)

Easton Wilson
Easton Wilson

Only the subset SafeD actually guarantees memory safety and you can't use pointers at all if you want that memory safety.

Aiden Martinez
Aiden Martinez

Have you ever written a pointer to an array of pointers to function taking parameters two parameters, which types are int and double, returning an array of pointers? In D it is easy to write and easy to read - reading and writing is linear, whereas in C reading and writing is non-linear?

Jace Diaz
Jace Diaz

Have you ever written a pointer to an array of pointers to function taking parameters two parameters, which types are int and double, returning an array of pointers? In D it is easy to write and easy to read - reading and writing is linear, whereas in C reading and writing is non-linear?
Have you ever written a pointer to an array of pointers to a function taking two parameters, which types are int and double, returning an array of pointers? In D it is easy to write and easy to read - reading and writing is linear, whereas in C reading and writing is non-linear?
Ok now it is correct.
Only the subset SafeD actually guarantees memory safety and you can't use pointers at all if you want that memory safety.
That wasn't the point of my argument. It was just an example, that not agreeing with everything what C does, doesn't make me a nogrammer.

Aaron Hernandez
Aaron Hernandez

to function
returning an array of pointers
Not even possible.
You can only return a pointer to an array of pointers and I have no idea in which scenario that would even be useful.
You're full of shit.

Jace Brown
Jace Brown

Ok now it is correct.
It's not see . You're just a retarded noncoder.

Josiah Green
Josiah Green

Ok but why did they chose a shitty language just to fix it later, instead of chosing a good language for the first time?
Javascript was thrown together in ten days to animated dancing monkeys. No one thought it would be used by idiots to write actually important shit.

Strong typing is a meme.
I would rather have to compiler catch an error before the program even runs, rather than have it crash at some unforeseen point in the future. Or worse, be like Javascript and silently "correct" the problem and continue running with the wrong value.

Henry Sanders
Henry Sanders

Not even possible.
Are you sure? I've seen very complicated definitions using pointers, arrays and functions. I'll try to define this shit, if it is possible, but it'll take some time because I haven't touched C++ for a long time. Would be glad if you could show me, why this is impossible.

Michael Hill
Michael Hill

to animated dancing monkeys
and by (((Brendan Eich))) who co-founded Mozilla and made Brave which replaces ads on the internet with his own.

Colton Martin
Colton Martin

have it crash at some unforeseen point in the future.
This doesn't happen if you know how to use the cumpootah tbh. Software are not magical things with a will of its own, you know. But I suppose inept developers need to be spoonfed at all times with type safety.

Liam Martinez
Liam Martinez

Are you sure?
Yes it doesn't work. Neither in C nor in C++ and probably neither in D. You can only return a pointer to an array.
I'm just repeating myself for a long time
More like never. As I said before D probably can't do that either. You're just not a programmer.
The reason for types in compiled high level languages which are still somewhat close to metal isn't some fucking abstraction for incompetents but so that the compiler know the SIZE of the value and the SIGNEDNESS. Otherwise you don't have signs and have to pretend the half of the maximum value is zero if you need negative numbers and the size is needed or else you would waste 56 bit on each fucking bool.
This doesn't happen if you know how to use the cumpootah tbh. Software are not magical things with a will of its own, you know. But I suppose inept developers need to be spoonfed at all times with type safety.
It's the typeless faggots like you who are so incompetent that they have to use some interpreted language because they can't into how computers work.

Leo Barnes
Leo Barnes

To be fair I can do pretty well with C and C++ too. I don't use js and lua because I can't use anything else.

Chase Brown
Chase Brown

Then you'd know that you can only return a type and not an array because an array is not a type.
You can't into C or C++ and I don't judge you for that. I judge you for pretending and giving retards weird delusions.

Luke Torres
Luke Torres

Then you'd know that you can only return a type and not an array because an array is not a type.
What the fuck are you talking about? There's more than one other dude in this thread, you know?

Kayden Cook
Kayden Cook

Ups. Mixed it up in my head.

Adrian Perez
Adrian Perez

Ok, thanks for explanation. I just invented "a pointer to an array of pointers to a function taking two parameters, which types are int and double, returning an array of pointers" as an example and didn't know it is impossible to return an array, but my point was that declarations in C and C++ can be complicated, for example:

float ( * ( *b()) [] )();
void * ( *c) ( char, int (*)());
void ** (*d) (int &,
char **(*)(char *, char **));

And D does it better, because declarations are linear.
dlang.org/spec/declaration.html#declaration_syntax
So despite the fact I didn't know that, because I barely learned C++, my opinion on complicated pointer declarations or being able to read or write unallocated positions in an array not being features, but a bad design, isn't based on the lack of knowledge. I'm just learning, but I can see the flaws of the language.

Mason Collins
Mason Collins

didn't know it is impossible to return an array
the fact I didn't know that, because I barely learned C++
You can't do this in D either.
but my point was that declarations in C and C++ can be complicated, for example:
some bullshit which probably can't even be compiled
Back to your previous example where I can at least understand what you're trying to achieve:
pointer to an array of pointers to function taking parameters two parameters, which types are int and double, returning [a pointer to] an array of pointers [to ints]
int* (function1*)(int sample1, double sample2)*;
Does this look complicated to you?
Have you ever written a pointer to an array of pointers to function taking parameters two parameters, which types are int and double, returning [a pointer to] an array of pointers [to ints]? In C it is easy to write and easy to read - reading and writing is right to left, whereas in D reading and writing is not right to left?

Mason Reyes
Mason Reyes

some bullshit which probably can't even be compiled
It compiled. I'm not reading further.

Ethan Scott
Ethan Scott

Your shit didn't. Fuck off.

./main.cpp: In function ‘int main()’:
./main.cpp:15:18: error: expected ‘)’ before ‘*’ token
int* (function1*)(int sample1, double sample2)*;
^
./main.cpp:15:18: error: expected initializer before ‘*’ token

Zachary Price
Zachary Price

&,
It compiled
what a bullshit

I'll correct myself:
int* (**function1)(int sample1, double sample2);
I tested it and it works.

Luke Lopez
Luke Lopez

I don't know what I'm talking about, but I am angry and I'll be DAMNED IF I'M NOT RIGHT!

Like fucking clockword.

Attached: 729.gif (137.13 KB, 340x340)

Isaiah Hughes
Isaiah Hughes

Your shit didn't. Fuck off.
Yeah embarrassing. It was just too many pointy things for me to handle, cherry boy. At least I brought it fourth in the end:

Attached: f1c96e2e5eb9a8dbb57d0f059d2f4e8f90975778ec583c2b03294c06a7150e2e.png (527.58 KB, 623x768)

Jose Perez
Jose Perez

*forth

Thomas Cruz
Thomas Cruz

I barely learned C++
But I have this criticism that I'm absolutely sure is a shortcoming of C(++)? and not just my ineptness

Come on user

Attached: codingdrunk.jpg (185.62 KB, 504x606)

Dylan Martinez
Dylan Martinez


I don't think you meant me.
I'm the one that contradicts him all the time while saging:

Luis Gomez
Luis Gomez

It's better than the alternatives and is actually quite comfy once you get over your autism about not using C for everything. Just stay away from the bloated frameworks at all costs. Express is a damn good tiny server.

Jacob Parker
Jacob Parker

This.
Nearly every issue people have is with bullshit from the retarded community shitting out useless modules like leftpad.

Isaiah Diaz
Isaiah Diaz

what a bullshit
IT COMPILED. CHECK YOURSELF.
types of that expressions:
FPA_PFfvEvE
PFPvcPFivEE
PFPPvRiPFPPcS2_S3_EE

int* (**function1)(int sample1, double sample2);
typeid(function1).name() returns PPFPiidE
As far as I understand this is
function1 is a pointer to a pointer(to an array) to a function returning pointer to int, taking two parameters - int, double
a pointer to an array of pointers to function taking parameters two parameters, which types are int and double, returning [a pointer to] an array of pointers [to ints]
Shouldn't this be PPPFPPPiidE?
Also said, it is not even possible to write, what I wanted.

Carter Peterson
Carter Peterson

NodeJS with Express is one of the nicest web servers to program out there. You can understand everything the server does without much issue, unlike bloated shit such as Spring MVC. God how I hate Spring MVC.

Landon Lewis
Landon Lewis

This doesn't happen if you know how to use the cumpootah tbh. Software are not magical things with a will of its own, you know. But I suppose inept developers need to be spoonfed at all times with type safety.
Are you retarded? If a program tries to add a string and a number chances are the programmer made a mistake somewhere along the line. In a dynamically typed language that error will go unnoticed until that code is run. Even worse, while a language like Python will crash and tell you that type types are fucked up, Javascript will just convert the number to a string, concatenate them and go happily along with the string instead of a number, which will then be converted to the wrong number at some point in the future.
(3 + "2") / 2
16

Now I'm getting 16 instead of 2.5, good luck debugging that when you notice the effect of the wrong result ten layers of abstraction away from where it occurred.

Kayden Jenkins
Kayden Jenkins

a pointer to an array of pointers to a function taking two parameters, which types are int and double, returning an array of pointers
#include <array>
template<size_t N>
using muh_function_pointer = std::array<void*, N>(*)(int, double);
template<size_t N, size_t M>
using hurr_so_difficult = std::array<muh_function_pointer<N>, M>*;

:^)
an array is not a type
It actually is; it just has the ability to decay to a pointer type and can't be used directly in certain situations (i.e. as a return type).

Luis Anderson
Luis Anderson

In my area around 100k vs 80k for php

Asher Watson
Asher Watson

ITT: autists unable to speak on anything outside of the wheelhouse, topic be damned

Elijah Jones
Elijah Jones

HAPAS ARE SUPERIOR TO WHITES

Jordan Anderson
Jordan Anderson

HAPAS ARE SUPERIOR TO WHITES

Joseph Rogers
Joseph Rogers

HAPAS ARE SUPERIOR TO WHITES

Dominic Williams
Dominic Williams

I love Donald Trump! Heil Israel MIGA 2020!!!

Luke Jenkins
Luke Jenkins

Yikes. Where did all this misogyny come from?

Isaiah Fisher
Isaiah Fisher

Judensheim pls go

Christian Bailey
Christian Bailey

This is a slide thread. SAGE AND REPORT

Landon White
Landon White

I smell some satanic fuckery here.

Jaxson Brown
Jaxson Brown

The original plan for JavaScript was to "put Scheme in the browser"
LISP faggotry is what got us into this mess in the first place, asshole

Brody Wood
Brody Wood

The original plan for JavaScript was to "put Scheme in the browser"
LISP faggotry is what got us into this mess in the first place, asshole
More like oracle and Java faggotry. The plan was to implement scheme, but idiots from Oracle told idiots from Netscape to implement Java. They took a language with static typing and because it was shitty, they made it handle dynamic typing.
If he implemented scheme, instead of this clusterfuck, everything would be fine.
Also
blaming scheme for what's wrong with other languages

Matthew Turner
Matthew Turner

There's a reason why it isn't actual Scheme. Let's start with the fact that it's called JAVAscript, courtesy of Sun (who also bring you the courtesy of making it have NOTHING in common with Scheme, ruining the web forever)

Ian Brown
Ian Brown

IT COMPILED. CHECK YOURSELF.
what you wrote in the code block does not compile:

it is not even possible to write, what I wanted
This is what you wanted with additions to make it possible.

function1 is a pointer to a pointer(to an array) to a function returning pointer to int, taking two parameters - int, double
No function 1 is as I wrote:
a pointer to an array of pointers to function taking parameters two parameters, which types are int and double, returning [a pointer to] an array of pointers [to ints]
You don't seem to understand that a pointer to an array is just a pointer to the first element of an array.

Some epic C++11 shitcode that is. Why would you use a fucking container for a simple array, like ever?

put Scheme in the browser
I'm not even sure if Bravekike knows Scheme.

Austin Wood
Austin Wood

returning [a pointer to] an array of pointers [to ints]
array of pointers
Kek, I actually forgot something. The pointer array: (In this case it doesn't even make sense. Pointers are more expensive than just having an array of ints but whatever)
int (function1)(int sample1, double sample2);

Elijah Murphy
Elijah Murphy

Shouldn't this be PPPFPPPiidE?
You were right about one of those Ps but not about the other two Ps because a pointer to an array is the same as a pointer to the first element of an array.
int** (**function1)(int sample1, double sample2);
Should be PPFPPiidE

Bentley Mitchell
Bentley Mitchell

Niggers in this thread arguing about Javascript conventions
Caring about, let alone using the choice language of "web artisans"
So much contempt for all of you.

Eli Watson
Eli Watson

I just started learning crystal today. How does it compare to go? Is concurrency as easy with crystal?

Nathan Stewart
Nathan Stewart

calling that 'code' C++
<smh
Heh, C++ does it better as well.
std::string meaningful_name;

You don't use 'complicated pointer declarations' in user-tier C++ code pajeet user. It goes in library code where it rightfully belongs.

Ryder Campbell
Ryder Campbell

what you wrote in the code block does not compile:
What compiler are you using? I'm using gcc 6.3.0 and it compiles.
a pointer to an array is the same as a pointer to the first element of an array.
Yes I know.

Jackson King
Jackson King

You don't have to use stl faggot. STL is hot garbage and ever C++ programmer knows that.

Attached: download.png (4.15 KB, 254x92)

Zachary Reyes
Zachary Reyes

*with Go

Cooper Scott
Cooper Scott

Yes I know.
You just learned. A pointer to a pointer (in an array or not doesn't matter) to a function makes 2 pointers not 3 as you claimed.
I'm using gcc 6.3.0 and it compiles.
if you type "gcc a.c" gcc will throw the error (I'm using GCC 7.2.0):

a.c:4:19: error: expected ';', ',' or ')' before '&' token
void ** (*d) (int &,
^

If it actually compiled it's a bug in your GCC because "int &" is utter bullshit in C and C++.
Calm down. Things like vector aren't that bad, or are they?

Justin Hernandez
Justin Hernandez

semicolons are not optional in js. When you miss them the js compiler tries to correct this and it will guess where the semicolon goes. Sometimes it guesses right and sometimes it doesn't, so you should always put the semicolon.

Jackson Sanders
Jackson Sanders

If it actually compiled it's a bug in your GCC because "int &" is utter bullshit in C and C++.
Not him but I definitely remember old versions of GCC compiling type &var to be equivalent to type *var

Gabriel Scott
Gabriel Scott

Not him
Stop lying.
but &int
You wrote int &.

Nolan Brooks
Nolan Brooks

Stop lying
Cool suck my dick faggot

Asher Brooks
Asher Brooks

correct, the web is UNIX braindamage (domain names, centralization, files, shitty string encodings, shitty array of programming languages, etc) as a platform, but the idea of a general purpose PL embedded into a document is a bit of LISP braindamage sprinkled on top

Dominic Russell
Dominic Russell

Go is stupidly easy to learn strongly typed and compiled programming language that is can call into C without any major issues allowing it to perform as both a low level and high level programming language without the need to deal with C++.

I am not sure what Crystal is. Honestly the first time I have seen it. Sounds completely different, and has some weird python-esque snytax while having a lot of the same featureset that both rust and go have.

Luke Young
Luke Young

Never change Zig Forums.

Lincoln Cruz
Lincoln Cruz

Stop lying.
He's not me, you idiot. I know Zig Forums is dead, but there are anons besides you and me on this board.

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit