[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k] [s4s] [vip] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Home]
Board
Settings Home
/g/ - Technology



Thread archived.
You cannot reply anymore.



File: nodejs-new-pantone-black.png (46 KB, 1843x1129)
46 KB
46 KB PNG
but I have no idea what the language is about since I lack the background.
I only have some MATLAB experience.
Can anyone suggest a book or resource that covers the basics?
If I search "what is Node.js", everything result is gibberish.
>>
Biting the bait
Node js is some framework for writing server side code using JavaScript language.
Learn js first you faggot
>>
It's the main platform for nu-male programming.
>>
File: 1504954594051.jpg (13 KB, 399x400)
13 KB
13 KB JPG
>>62407218
>Node js is some framework
>>
>>62407151
it's a javascript engine + a bunch of apis that let you interact with the os
>>
/g/ led me to believe JavaScript and whatever wev developer shit is easy af. I looked up node few days ago for a RTC stuff and good lord. I don't understand any of these. They seem too complex for me. I think I will never learn anything beyond C
>>
node.js is not a language, it's just a way to run javascript on the "backend"

>>62407279
it is tho...
>>
>>62407294
Node is a JavaScript framework which means you need to be familiar with JavaScript to understand it.
>>
>>62407296
it's a runtime environment, just like CPython is used to run python code
>>
>>62407151
Node an event-based, non-blocking, asynchronous I/O framework that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on rear end side and therefore benefit from the re-usability of code and the lack of context switching
>>
>>62407218
>Biting the bait
No really I'm serious.
>Node js is some framework for writing server side code using JavaScript language.
Which one of these are you referring to when you write framework
https://en.wikipedia.org/wiki/Framework
?
>Learn js first you faggot
Do I have to learn Java first?
>>
I've yet to find a solid roadmap for getting into Node.js and other JS frameworks. The JS webdev world is utter fucking insanity. If you want to do X, there's 100 different ways to do it and when you finally pinpoint a decent guide it goes off using a framework and tools that you're not using. Get that done and you want to do Y? It's the same fucking thing.

The scene is a total convoluted, bloated, ego-driven circlejerk.
>>
File: inception_meme__1_.png (116 KB, 366x378)
116 KB
116 KB PNG
>>62407354
>>
>>62407504

but muh clever bloated stack
>>
>>62407504
>>62407531

muh JS powered 700MB RAM calculator
>>
>>62407504
just pick a node js framework book or a tutorial and stick with it
>>
>>62407151

>"what is Node.js"

Summary:
>guy writes beautiful C server
>web community is not impressed
>guy re-writes some parts of it in JavaScript
>web community gets boner
>frontend brainlets invade backend without learning proper programming
>JS is suddenly everywhere
>JS for embedded (lel)
>things like Scala.JS
>WE NEED MORE JS !!1!

That said: it's simply a way to run JS outside your browser, nothing more, nothing less.
>>
File: 1504170175454.jpg (57 KB, 850x476)
57 KB
57 KB JPG
>>62407151
>>62407437
>>62407508
OP here listing my posts to avoid confusion.

I've read that JavaScript has nothing to do with Java.
Is this a good JavaScript guide
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide
?
>>
>>62407653
So basically js and node.js gets all the bad rap on /g/ just because of some butthurt backendfags that write in deprecated autistic languages? Sounds like those js guys did something right.
>>
>>62407654
>I've read that JavaScript has nothing to do with Java.
They are completely unrelated. In fact, if you want to write a web backend, use fucking Java.
>>
>>62407653
Thanks for the answer.
Do you have any resource (I'd prefer books) that dwells more into this
https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works
?
>>
>>62407437
>Do I have to learn Java first?
You mean Javascript. Yes, you do. Java has nothing to do with JavaScript. Why would you "need" to learn Node if you don't know something as basic as that?

Go to Codecademy, supplement the exercises Headfirst JavaScript and then check out "JavaScript The Good Parts" and "You Don't Know JavaScript". From there, go into Node.js

The thing is though, Node.js is a little complicated. A more apt description of Node.JS would be Node+JS as Node is but a component of the fully functioning JavaScript runtime made useful by JavaScript's core syntax, parser utilities and vital language components.

The version of JavaScript which is used on servers today is often simply called "Node.js" and as such, many people are not aware that it is basically the JavaScript language. There really is a Node, and these people are using it, but it is just a part of the language that they use.

In other words, Node is the runtime, the program in the system that allocates the machine’s resources to the JavaScript code that you run. The runtime is an essential part of a webdev language, but useless by itself; it can only function in the context of a complete language (JS). Node is used in combination with the JavaScript programming language and the whole system is basically JavaScript with Node added, or "Node.js"

>>62407573
Eh. I'm actually debating whether or not to go itno Python + Django, if only because I like Python more.
>>
>>62407504
This guy gets it.
>>
>>62407746
>combining a meme pasta with a usefull explanation
That's some real art right there.
>>
File: 20170913_162240.png (106 KB, 433x411)
106 KB
106 KB PNG
>>62407354
>event-based, non-blocking, asynchronous I/O framework
Is it web scale though?
>>
>>62407746
Thanks for the answer; I will go through it again when I will have some more understanding of the subject.
At the moment I lack the very basics.
I'm searching on Amazon some books about the workings of the Internet.
>Introduction to Networking: How the Internet Works (Dr. Charles R Severance)
seems like what I need at the moment.
I have even used C++ in the past but simply as a tool for implementing algorithms related to mathematics.
>>
>>62407296
that's like saying chrome is some framework for viewing web pages
>>
>>62407758
Not really though. Just learn the gist of the node standard library after you have a good grasp of js. The book that tj co-wrote is a decent guide, although maybe a bit old now.
>>
>>62407746
Damn you're good.
>>
>>62407151
Here ya go, play with this https://screeps.com
>>
File: 1500160566341.jpg (43 KB, 500x500)
43 KB
43 KB JPG
>>62407504
This echoes my own experience. When driven to slake my curiosity over the all the buzz I've been repelled by the opaque surface presented. A stark contrast to something like shell scripting where the essentials all stand out in stark practical detail.
>>
>>62408071
Are there more programming games like this? It's an amazing game genre but it seems that nobody wants to flesh out its potential.
>>
>>62407857
I don't think that would really benefit you. Yeah, it'll be nice to know, but only at a face value, familiarity kind of thing. I'd look into a book detailing HTTP. Any good web dev book would give you a decent runthrough of what you need to know in that case though (requests and responses).

I think what would really help you is understanding the distinction between the server/backend, the database and client/frontend. Look up a couple YouTube videos. I used to dive into this wanting to know EVERYTHING and would read books I honestly didn't need to read in retrospect. It's a waste of time, knowing just the gist of things would leave you with time to focus on the stuff that really matters. It's why frameworks are a thing desu.
>>
>>62408139
I have no idea honestly. This is the first one I have seen at this scale. The rest are make a bot that kills prescripted AIs.
>>
>>62408165
Can you suggest a good book dealing with what I need to know?
I don't like listening to YouTube videos.
>>
>>62407746
>Eh. I'm actually debating whether or not to go itno Python + Django, if only because I like Python more.

for all its faults, I really prefer JS for the fact that it's considerably more mature and lightweight for async and interconnectivity shit. (promises/lambdas, sockets/rtc)
>>
>>62408239
https://developer.mozilla.org/bm/docs/Web/JavaScript
>>
>>62408257
Ok, thank you.
>>
don't be a nazi, learn ayo instead of node
>>
>>62408376

lol internet scandal
https://www.theregister.co.uk/2017/08/24/nodejs_forks_ayo_code_of_conduct/
>>
node async i/o intended interp for js on the backend which instead uses platform threads via libuv for blocking i/o and any number of C libs (c-ares) for other async ops. it is an aberration and should be killed with fire. you should be ashamed of being interested in such a weenie approach to programming. go imperative, go low, go aryan.
>>
>>62407151
Do you know JavaScript? Good! Then you know node.
There are a few differences (Vanilla JS can access the DOM, whereas there's no DOM on the back end; Vanilla JS has no access to the file system, whereas Node does...), but if you can JS, you can Node.
>>
>>62407321
>>62407218
>>62407354
>framework
It's not a fucking framework. It's a runtime environment. A framework is a way of organizing code. NodeJS specific code won't work in the browser. Browser specific code won't work in NodeJS.

>>62407437
>Do I have to learn Java first?
So... you really don't know anything, do you? Do yourself a favor and go to something like freecodecamp.com. Do their basic HTML/CSS/JS tutorials. Only THEN come back to Node: you're not ready for it.
>>
>>62409644
this pretty much

there are a lot of very powerful packages like express
>>
>>62409610
I don't understand your post but I'm reading this book.
>>
>>62409734
>Do their basic HTML/CSS/JS tutorials.
What a pain in the ass.
Wouldn't
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide
be sufficient as an introduction?
>>
>>62407504
This is true.

If you're not already "in the know" it's very hard to figure out where to start.
But don't take it out on the scene, it's mainly just because Javascript is currently undergoing a very rapid evolution.
Stuff that was "the shit" 2 years ago is already hopelessly outdated.

I think in a couple of years things will calm down again and you'd see more standardized approaches.
>>
>>62409848
Nope. That's a JavaScript tutorial. Just go through the HTML and CSS courses on Codeacademy. HTML and CSS is super fucking easy.

It sounds like you want to just read one book and be done with everything. It really isn't going to work like that.
>>
>>62409991
>Just go through the HTML and CSS courses on Codeacademy.
>It sounds like you want to just read one book and be done with everything. It really isn't going to work like that.
Ok, thank you for the insight.
>>
File: arturo.jpg (55 KB, 500x500)
55 KB
55 KB JPG
Start with a python tutorial, move on to a Javascript tutorial, then do a Node.js tutorial.
>>
>>62409991
>OP wants to learn Node.js

>hurr use static HTML and CSS because I'm a sperg and I hate Javascript.

That's like someone asking for a laptop and telling them to buy an e-reader.
>>
>>62407839
Yes, just throw more servers at it and it scales.
>>
>>62407875
Yes... But it is tho... It isn't STRICTLY speaking and TECHNICALLY a framework, but colliqualy it's a framework.
>>
>>62407504
it's because most javascript programmers are absolute brainlets who would rather use 200 different external libs for solving simple tasks that anyone that isn't a total mouth breather could write on their own in 2 minutes.

just look at the fucking leftpad debacle where millions of projects relied on a package for something as trivial as adding leading whitespace to strings.

if you want to get into node without the suck, keep it as close to the core as possible. start by writing applications only using the built-in file system and http server tools and only start using external libraries once you actually know what is happening behind their layers of abstraction
>>
>>62410127
I don't see the sense in knowing one part of a thing that's composed of interconnected parts. That's what leads people into using JavaScript to do any and everything. You're going to run into it one way or another. Not to mention that it'll take you about an hour to get the basics of HTML and CSS down.


But OP should probably tell us why he wants to learn Node and what he wants to do with it for better help.
>>
>>62410251
I think he means the stacks can get pretty complex.

I for example use the Webpack/Redux/Immutable/React stack.

But you could switch any of those out for several other alternatives.
And it's hard to find places that explain how to use all that together.
My specific stack is actually explained by Dan Abramov, but even then he gives several options and none of the examples he gives fit my needs so I ended up doing everything a little different.
>>
>>62410337
Node is SERVER SIDE.
What you suggest is for WEB CLIENTS.

Maybe he doesn't even want to serve a website?
I've used Node for all sorts of things not related to browsers.
I've even used it to re-organize my porn collection lol.
>>
>>62410553
>I've even used it to re-organize my porn collection
Must have been GAY PORN lmao
>>
>giving op any credibility whatsoever
>I want to believe
>actually, I don't

troll thread, we're posting in one
>>
>>62410675
>I expect anyone on this board to be a proficient programmer.
I'm asking questions without making any statement about the subject.
Do you find this amusing?
>>
Why you "HAVE TO" learn Node.JS?

By your description, you have no experience with web development or javascript so if your purpose is creating a server, learn java, C#.
>>
>>62407504
Join the elm masterrace and leave jewedscript behind you forever




Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.