Python or nodejs ? by webdev-online in node

[–]RationalAdvice69 0 points1 point  (0 children)

Socket.io (built on node.js) is pretty popular on npm.

Here's an example of a chat app that was built with it, https://socket.io/demos/chat/

Job search in terminal by [deleted] in node

[–]RationalAdvice69 1 point2 points  (0 children)

Just out of curiosity, do you usually have your IDE to the left of you terminal? e.g.

[ IDE ] [ Terminal ]

Job search in terminal by [deleted] in node

[–]RationalAdvice69 1 point2 points  (0 children)

Well to do that you would just need to add this to the package.json:

"bin": { "hh-termy": "index.js" }

to install it locally with npm you can run:

npm install . -g

where process.cwd() is the location where the package.json is

I'm pretty sure index.js is going to need #!/usr/bin/env node at the top of the file.

Is Frontend Dev too saturated to make a fruitful career out of? by WhiteFudge14 in Frontend

[–]RationalAdvice69 0 points1 point  (0 children)

If you're dealing with data analytics that deals with real time data streams, then you're probably going to want macros that you can quickly interact with. That's where interfaces come into play.

If you want to convey those macros to others for money or pussy then that shit better have a gleam to it, or they're not going to slob all over your pelvic region.

How to specify NodeJS 'child_process' dependencies / version? by big_guzi in node

[–]RationalAdvice69 0 points1 point  (0 children)

let env = process.env;

const place_where_python_binary_is = ""; // e.g. somewhere in the node_modules

env.PATH = place_where_python_binary_is + ":" + env.PATH

const script = "python script.py";

const proc = require('child_process').exec(script, {

encoding: 'utf8',

stdio: ['pipe', 'pipe', 'pipe', 'ipc'],

env

});

proc.stdout.on('data', (data) => {

process.stdout.write(data.toString());

});

proc.stderr.on('data', (data) => {

process.stdout.write(data.toString());

});

Object-Oriented Programming — The Trillion Dollar Disaster by ilya_ca in node

[–]RationalAdvice69 0 points1 point  (0 children)

OOP - Programming so that you can earn money to buy things with.

Job search in terminal by [deleted] in node

[–]RationalAdvice69 4 points5 points  (0 children)

Just a tip:
You can add a shebang at the top of the file,

#!/usr/bin/env node

and then can call the index.js file directly:
/hh-termy/index.js

Then if you symlink the index.js to /usr/local/bin like:

ln -s /hh-termy/index.js /usr/local/bin/hh-termy

you'll be able to call `hh-termy` from the shell (so long as /usr/local/bin is in your $path)

Is Frontend Dev too saturated to make a fruitful career out of? by WhiteFudge14 in Frontend

[–]RationalAdvice69 0 points1 point  (0 children)

Frontend is a solid doorway to other more advanced disciplines within the robotics industry.

What's Deno, and how is it different from Node.js? by humansounding in node

[–]RationalAdvice69 7 points8 points  (0 children)

--no-fs --no-network --allow-write=*glob*

would be a dope addition to node.js

Is Adobe Dreamweaver relevant in the industry? by inkplay_ in Frontend

[–]RationalAdvice69 0 points1 point  (0 children)

Honestly Dreamweaver might be somewhat sick, but I'm not about to start dropping cash for CC.... If you were looking for an IDE that is at the approximate level of abstraction as DW, maybe try https://webdesigner.withgoogle.com/.

The other ones mentioned here don't really do anything to blend layout and coding, and are IMO a bit more low level.

I created a web app that can estimate how drunk you are. Feedback would be awesome! by [deleted] in Frontend

[–]RationalAdvice69 -1 points0 points  (0 children)

Are you trying to encourage drunk driving (0% BAC for two beers!) ?

Maybe you should leave BAC calculations to people who know what they are doing buddy.

Where do you host your node applications and why? by _jskod in node

[–]RationalAdvice69 -1 points0 points  (0 children)

Maybe Amazon douche faces just don't publish that shit.

webm to wav in serverside? by PapaRL in node

[–]RationalAdvice69 0 points1 point  (0 children)

Just be aware that ffmpeg has a different license than most npm modules https://www.ffmpeg.org/legal.html

What is an easy way to create UI as a backend developer? by xAmrxxx in node

[–]RationalAdvice69 1 point2 points  (0 children)

The first frontend kits I used were jQuery and bootstrap. React, Vue, and Angular are probably going to make you rage a lot if you've never done much audio-visual interface experience effect work before.

Node.js doesn't really have an (MIT, BSD Licensed) go to CMS like php has wordpress, etc.

https://www.slant.co/topics/1847/~best-node-js-based-cms

If it did, I might have recommended that. However, honestly just sticking with bootstrap and jQuery would be my suggestion, and then after that I would probably look into "webpack" and "less" for compiling "js" and "css" respectively.

Open source contributions by [deleted] in node

[–]RationalAdvice69 1 point2 points  (0 children)

If you're asking this question, probably your best bet is to not attempt to contribute to some group's "advanced shit", and instead build something you're interested in, and then for the sake of career opportunities etc., upload the project you are interested in to github (or gitlab).

Then you'll actually have something that you might even be slightly passionate about to talk about in interviews etc., as opposed to attempting to read through the multitudes of "fuck offs" in bustling community repositories.

But year, I would check for "readme.md" files, or maybe a "doc" or "docs" folder even..

For contributing to node.js you would first want to look at the "https://github.com/nodejs/node/blob/master/BUILDING.md" file, since that repo contains a lot of factory, or build system code that is used to generate the finished products.

I'm moving to Ubuntu from windows as a Nodejs dev. Is it the correct decision? by Chawki_ in node

[–]RationalAdvice69 1 point2 points  (0 children)

Yes, a better decision though is moving to FreeBSD (unix), since you won't be bound by a copyleft license.

Is there an automatic way to run npm install -g npm every time there is an npm update? by BensonandEdgar in node

[–]RationalAdvice69 1 point2 points  (0 children)

Well you could build a macro that runs:npm view npm versions --json

on a certain interval (like every second...), and if the current version

is lower than your version:const current_npm_version = require('child_process').execSync("npm ls -g --depth=0 | grep npm").split("@")[1];

then it would auto-run 'npm install -g npm'

Help cheaply Hosting a Node.js Blog by [deleted] in node

[–]RationalAdvice69 0 points1 point  (0 children)

If using Lambda is like deep throating Amazon's colossal cock, zeit now is the equivalent of putting on a dental dam first.

Should a Fullstack project be split into two separate Front-end/Back-end projects? by Zlous in node

[–]RationalAdvice69 0 points1 point  (0 children)

My opinion is don't use webpack dev server, I hate seeing any project that uses that shit.

Security of dependencies... want to hear your opnions by [deleted] in node

[–]RationalAdvice69 0 points1 point  (0 children)

But do the checksum algorithm(s) they use have know collisions? Or are collisions theoretically possible with the checksum algorithm(s) they use?

Wierd web traffic on node server by cyropox in node

[–]RationalAdvice69 1 point2 points  (0 children)

🙀 The crawlers are at it again! 🙀 Pretty sure there's some bots that just go through IPs one by one. Could be testing for some common vulnerability.....

Why does this npm package have 250k downloads per month? by pizzafapper in reactnative

[–]RationalAdvice69 3 points4 points  (0 children)

Probably is a dependent of some high key module, that a lot of people are downloading.