Javascript on suicide watch

Angel Lee
Angel Lee

https://archive.fo/2018.01.11-205122/https://github.com/npm/registry/issues/255

Many packages suddenly disappeared
massive issue for us because of this. Please resolve asap

@antoniobrandao It is possible. I have re-published some of the packages that were missing with the code that was available on git-hub. The original author has deleted his NPM account and dropped all his packages. But it seems like NPM keeps dropping packages. No idea why.

All urls found in this thread:
https://archive.fo/2018.01.11-205122/https://github.com/npm/registry/issues/255
http://blog.npmjs.org/post/169582189317/incident-report-npm-inc-operations-incident-of
https://twitter.com/maybekatz
https://twitter.com/ReBeccaOrg
https://github.com/jonschlinkert/is-number>
https://www.lua.org/pil/2.3.html
https://github.com/jonschlinkert/is-odd>
Gabriel Jackson
Gabriel Jackson

Is this the power of Specdown?

Anthony Johnson
Anthony Johnson

<linking old news
Sad!
http://blog.npmjs.org/post/169582189317/incident-report-npm-inc-operations-incident-of

Justin Bennett
Justin Bennett

Not the first time this happened, there was a widescale issue due to the same reason (dev of a very popular package killed their repo because of drama or some shit, every site using the library, which was a lot of them, became outright unusable for a week or so).
Or is it the same one?

Hunter Turner
Hunter Turner

check npm repo on github
1,290 open issues

Brayden Baker
Brayden Baker

That almost makes me want to become a nodejs developer just to make and subsequently memory-hole a highly depended package.

David Price
David Price

this

Adrian Sullivan
Adrian Sullivan

try to do something with node
everything has millions of dependencies
dependencies have dependencies
it never ends
I have no fucking idea how node ever got popular considering it's easily the worst thing ever.

Camden Jones
Camden Jones

There is nothing wrong with node itself, you just have to stop being a fucking nigger and downloading libraries instead of writing code yourself.

Christian Hill
Christian Hill

There is nothing wrong with node itself
Except for the fact that it uses javascript

Michael Stewart
Michael Stewart

Low barrier to entry, and thus you have low quality programmers.

Isaac Foster
Isaac Foster

There's nothing wrong with javascript either. It's certainly better than trying to script in php.

Robert Hall
Robert Hall

`script´
What the hell do you mean by that you faggot?
If you want to `script´ then use perl or if you're gay, python.

Xavier Green
Xavier Green

eating vomit is better than eating shit

Isaac Young
Isaac Young

Is webdev still fairly lucrative? It seems that every other day I hear loads of shit about it, and most of it doesn't sound good.
The OP for starters
Someone shills a new framework or new library
<"React has saved me so much time and frustration, will change JS as we know it 10/10"
Some retard complains about a library not doing something the way they want it, usually follows that up with shilling something else that "totally fixed everything" instead of actually writing their own code
Articles upon articles in literally-who blogs that contain copypasted code that magically fix a problem without any explanation of how or why
To me the the webdev/JS landscape sounds like it's too convoluted and fucked to put any effort into.

Daniel Ward
Daniel Ward

Did you know Facebook put a license clause on React that says they can remove your right to use the library if you criticise them?

Xavier Martin
Xavier Martin

I didn't, but that doesn't really surprise me. I wish there was some kind of exploit that could be used to fuck over the modern web as we know it. Something really devious, something that would make people think twice about trusting every script that runs on their browser. If anything like that was found or is ever properly exploited, the framework of the nu-web would fucking implode. Wishful thinking, I guess.

Gavin Powell
Gavin Powell

I bet normalfags would notice if bitcoin miners really took off.

Bentley Hughes
Bentley Hughes

Slip in some code to a major library which randomly causes some words to turn into racial slurs.

Daniel Hill
Daniel Hill

Good.
Actually, it's time for an os to be built from the ground up in a single, simple and powerful language.
No systemd also.

Christopher Morales
Christopher Morales

Most probably wouldn't at first. I'd imagine they'd just throw their phone or laptop in the garbage and buy a new one like they always do when their device starts to slow down. In the long run they'd notice, although I'd imagine that would lead to devs getting sneakier with their miners.
Would be funny as hell, but not that practical or impactful in the long run.

Wyatt Allen
Wyatt Allen

It's a new one, which makes the problem that much worse.
npm have been scolded for this before, you can delete your package and your package name becomes instantly available to be used, perfect for malware.
npm worked so that package must be the package right? Nope.

Chase Roberts
Chase Roberts

Lua already exists.

Justin Perez
Justin Perez

I use PHP at work and while it's a very quirky language, I still prefer working in it to Javascript.

Jackson Gray
Jackson Gray

npm developers
https://twitter.com/maybekatz
https://twitter.com/ReBeccaOrg

Trans fat and cat obsessed.

Cameron Perez
Cameron Perez

for fucks sake dude use the nsfw checkbox

Aiden Williams
Aiden Williams

That bicep is bigger than mine and I have been /fit/ for years.

Easton Stewart
Easton Stewart

it is mostly fat I think.
but, I know some other women, which do have nice biceps.

Robert Reed
Robert Reed

Get into martial arts, you might just start producing more testosterone.

Jaxson Williams
Jaxson Williams

I'm sure the biceps is barely there, most of that is just fat tissue.

I know you're just shitposting, but the first thing I noticed about Lua is how close it is to JavaScript, but less shit. If only they dropped variables being global by default and had 0-indexed lists it would great.

Ethan Bennett
Ethan Bennett

Lua had no integer types until version 5.3, is that true?
(and js still doesn't have them?)

Carson Sanchez
Carson Sanchez

i believe they removed that

Austin Thomas
Austin Thomas

If you're ever in the unfortunate position of having a node_modules directory, you should look in it for a good laugh. Just fucking look at this shit.


/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/

'use strict';

var typeOf = require('kind-of');

module.exports = function isNumber(num) {
var type = typeOf(num);

if (type === 'string') {
if (!num.trim()) return false;
} else if (type !== 'number') {
return false;
}

return (num - num + 1) >= 0;
};

Somebody looked at this an thought this is a good idea to have as an dependency with a readme and a full copy of the mit licence.
Also in its dependency kind-of:

[...]
var type = typeof val;
if (type === 'boolean') return 'boolean';
if (type === 'string') return 'string';
if (type === 'number') return 'number';
if (type === 'symbol') return 'symbol';
if (type === 'function') {
return isGeneratorFn(val) ? 'generatorfunction' : 'function';
}
[...]

Yes, kind-of just returns typeof for the types used! You can't make this shit up!

Camden Moore
Camden Moore

It was the next trendy thing for a while.

Kayden Johnson
Kayden Johnson

Lua still doesn't have integers, the deal with 5.3 is that the number type is represented as an integer sometimes behind the scenes for speed improvements.

Give lua a chance user, you might find you like only having 9 or so types.

Grayson Lewis
Grayson Lewis

Lua still doesn't have integers
Give lua a chance
No????????????

Robert Gonzalez
Robert Gonzalez

https://www.lua.org/pil/2.3.html
The number type represents real (double-precision floating-point) numbers. Lua has no integer type, as it does not need it. There is a widespread misconception about floating-point arithmetic errors and some people fear that even a simple increment can go weird with floating-point numbers. The fact is that, when you use a double to represent an integer, there is no rounding error at all (unless the number is greater than 100,000,000,000,000). Specifically, a Lua number can represent any long integer without rounding problems. Moreover, most modern CPUs do floating-point arithmetic as fast as (or even faster than) integer arithmetic.
Wow this is top pajeet. Either go full high level and provide big integers like python or provide fixed width integers. Everything else is just retarded.

Robert James
Robert James

also this: number-is-nan
'use strict';
module.exports = Number.isNaN || function (x) {
return x !== x;
};

With full copy of the MIT licence, package.json and reame, of course.

Matthew Flores
Matthew Flores

Other full modules include:/*!
* is-odd <https://github.com/jonschlinkert/is-odd>
*
* Copyright (c) 2015-2017, Jon Schlinkert.
* Released under the MIT License.
*/

'use strict';

var isNumber = require('is-number');

module.exports = function isOdd(i) {
if (!isNumber(i)) {
throw new TypeError('is-odd expects a number.');
}
if (Number(i) !== Math.floor(i)) {
throw new RangeError('is-odd expects an integer.');
}
return !!(~~i & 1);
};
var toString = {}.toString;

module.exports = Array.isArray || function (arr) {
return toString.call(arr) == '[object Array]';
};
'use strict';
module.exports = function (x) {
var type = typeof x;
return x !== null && (type === 'object' || type === 'function');
};
I dont Know What's worse, putting a licence on 3 lines of code or importing 3 lines of code with a full copy of a licence.

Jason Martin
Jason Martin

you might find you like only having 9 or so types
nope, that sucks
language without integer type cannot be taken seriously

Connor Wilson
Connor Wilson

851692
then explain how function (x) {return x !== x;} replaces isNan. How does comparing a variable to itself do that?

Zachary Rogers
Zachary Rogers

this one too

Hudson Sanders
Hudson Sanders

NaN != NaN

Thomas Evans
Thomas Evans

that only works if the variable is literally NaN, if its a string and jou want to check if its numeric it wil
behave differently as Number.isNaN.

Robert Parker
Robert Parker

this is the current state of web programming
it makes me kind of sad, tbh

Brandon Gonzalez
Brandon Gonzalez

nevermind I'm an idiot who thought isNaN would check if it is numeric or not

Anthony Miller
Anthony Miller

Wait that is what isNaN does wtf

Luis Hughes
Luis Hughes

30 year old hack to allow in-band signalling of FPU errors
Combined with insanity of implicit casting
What did you expect there? Sane and reasonable behaviour?

Logan Martin
Logan Martin

NaN is a type
method checks if something is NaN or not
get buttflustered when it tells you that a string is not NaN

There are a lot of things wrong with javascript, but isNaN is not one of those things.


[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]+[+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]])()

Justin Davis
Justin Davis

those asymmetrical child rape eyes
Every time.

Luke Johnson
Luke Johnson

javascript on suicide watch
not about jailbreaking an apple watch and using nodejs to read its heartrate monitor
fucking dropped

Hudson Bailey
Hudson Bailey

Absolutely disgusting.

Grayson Ortiz
Grayson Ortiz

who the fuck is it?

Samuel Wood
Samuel Wood

if (variable.hasOwnProperty('property') && variable.property.hasOwnProperty('property2) && etc, etc)

Me too, mainly for this reason.

if (isset(variable['property']['property1']) ...

Brayden Wilson
Brayden Wilson

I like lodash for shit like this.

if (_.get(variable, ['property1', 'property2']))

Isaiah Garcia
Isaiah Garcia

Yeah, i use lodash for this usually too. But, for work, we have a bulk import system where we need to write data transformation scripts and lodash isn't included with it.
So at first I was, painstakingly, doing that shit manually.
Now I just paste the following snippet in:
fromDotNotation: function(obj, path) {
var i = 0,
path = path.split('.');

for (; i < path.length; i++) {
if (typeof obj[path[i]] === 'undefined' || !obj[path[i]]) {
return '';
}

obj = obj[path[i]];
}

return obj;
},

Daniel Rodriguez
Daniel Rodriguez

IPFS devs warned people before padding debacle
nobody listened
it happened
now it's happening again
most jej

Jayden Jenkins
Jayden Jenkins

still using var
ES6 const and let nigga. Also this is slightly faster for loop expression checking

for (let i = 0, il = path.length; i < il; i += 1) { }

Robert Rogers
Robert Rogers

This is quite possibly the most useful thing we can do to improve the health of the internet.

And I like it, because this tactic has a proven track record. Infiltrating and attacking from within is quite effective, historically celebrated, and very difficult to defend against, especially when it comes from many different vectors.

We could fix javascript. By fix I of course mean destroy and purge all record of it's existence as punishment, while erecting a 50ft granite statue at the center of the world's largest landfill shaming the creators.

Leo Gonzalez
Leo Gonzalez

Without Javascript they'll just use some other cancer to fuck with your internet experience. The language isn't the cause of your suffering.

Gabriel Adams
Gabriel Adams

Yeah, but it is still confusing to look at. Old Man Crockford is right when he says that, when writing code, you should avoid confusion above everything else (sans the code working properly, of course).

Disable AdBlock to view this page

Disable AdBlock to view this page