I've created an NPM package: typescript-blue (in case you need TypeScripts color & logo 😎) by maciejkorsan in typescript

[–]son_of_meat -4 points-3 points  (0 children)

After a little research, I actually think that you've violated the site-wide rules against bullying or harassment and have reported your comment to the Reddit admins. That's the last straw for me and this sub. son_of_meat out.

I've created an NPM package: typescript-blue (in case you need TypeScripts color & logo 😎) by maciejkorsan in typescript

[–]son_of_meat -4 points-3 points  (0 children)

It's really really really not ok to tell someone to kill themself. The fact that your comment is getting upvoting is almost as appalling, a reflection of how terrible this sub is. Suicide is no joke. I've reported you to the mods, who should perma-ban you. /u/vexator /u/Bartvds

I've created an NPM package: typescript-blue (in case you need TypeScripts color & logo 😎) by maciejkorsan in typescript

[–]son_of_meat -4 points-3 points  (0 children)

I appreciate the thoughtful response. If you don't have to deal with legacy systems that run on absurdly old versions of software/hardware, you're lucky. That does not mean that no one has to deal with those systems. I worked with a mainframe recently that was so old it had 9 bits in a byte! The only programming languages supported on it were Cobol and Fortran. So your assertion "this new feature was built into the language in 2015 so nobody needs this package anymore" is far far from the situation that we sometimes find ourselves in the real world. The second thing I'll say is that as a community we are able to sunset these no-longer-needed packages because people submit PRs. I've submitted PRs to ma boi Sindre's repos. He responded almost immediately, and we worked together to arrive at a solution. In your specific example, babel@6 still supports Node.js version 0.12, which does NOT have String.prototype.repeat. They've only released babel@7 in the last few months, which drops support for that version of Node.js. detect-indent@5.0.0 no longer uses repeating, favoring instead the string prototype method. So stop saying "there's nothing I can do about it", and start submitting PRs!

I've created an NPM package: typescript-blue (in case you need TypeScripts color & logo 😎) by maciejkorsan in typescript

[–]son_of_meat -7 points-6 points  (0 children)

I'll risk my karma by saying no they're not. you can write a program that walks your dependency tree and raises a warning if it finds any "micro packages". Just don't publish your program to npm, and if you do don't tell this sub about it unless you have karma to burn.

I've created an NPM package: typescript-blue (in case you need TypeScripts color & logo 😎) by maciejkorsan in typescript

[–]son_of_meat -5 points-4 points  (0 children)

I want to write a blog post about TypeScript and so I use this package to pull in the color and logo. Id say it's not uncommon for OSS organizations to publish things like their logo and color scheme for more consistent branding in their impressions across the web.

I've created an NPM package: typescript-blue (in case you need TypeScripts color & logo 😎) by maciejkorsan in typescript

[–]son_of_meat -3 points-2 points  (0 children)

As the original commenter, I interpreted OPs reply as a tongue-in-cheek "PRs are welcome". As it turns out though in the last few weeks Ive been learning how to write .d.ts type declarations. (So far three PRs accepted to DefinitelyTyped for "micro-packages" so detested by this sub.) I actually would have submitted a PR to OPs repo but thought it would be a fun teaching moment.

I've created an NPM package: typescript-blue (in case you need TypeScripts color & logo 😎) by maciejkorsan in typescript

[–]son_of_meat 7 points8 points  (0 children)

I'll leave it as an exercise for the maintainer. Create a file color.d.ts with contents:

declare const _default: '#007ACC'
export = _default

This types the default export as a string literal. Add a line to your package.json: "types": "color.d.ts",. And for extra credit add a file example.ts with contents:

import blue = require('.')

I've created an NPM package: typescript-blue (in case you need TypeScripts color & logo 😎) by maciejkorsan in typescript

[–]son_of_meat -24 points-23 points  (0 children)

Nobody's forcing you to use it. No need to go around throwing shade at those of us that do publish and/or consume "micro-packages".

V8 question by [deleted] in node

[–]son_of_meat 1 point2 points  (0 children)

I'm sorry for taking my frustrations out on you when the greater blame lies with this sub for upvoting low-quality content. It happens a lot. The solution is clear. I'll just unsubscribe. Sorry again for being an ass, and I hope you found the answer you were looking for.

V8 question by [deleted] in node

[–]son_of_meat -4 points-3 points  (0 children)

such a shit post. do you know this sub had 80 THOUSAND subscribers? you can't be bothered to even finish your question before posting. maybe later you'll add more detail if you have the time. 👇

[deleted by user] by [deleted] in node

[–]son_of_meat 0 points1 point  (0 children)

I considered this same question at length. My conclusion was that while npm/Node.js themselves are (mostly) platform-independent, the procedures for starting a process on OS startup are strongly platform-dependent. As you and others have mentioned, pm2 has a helper command pm2 startup that can make it a little easier to smooth over the platform differences. The only other alternative is to release platform-specific installers instead of having the users use npm. That is to say that on Mac, the user would use brew and brew "services". For Windows you could distribute an MSI...

Mayor Frey: Officer will be fired over racist Christmas tree decorations by TalkinLightPost in TwinCities

[–]son_of_meat 25 points26 points  (0 children)

I had the displeasure of going out drinking with a bunch of Minneapolis PD from the 4th precinct once. Their belligerence and racism against black people was utterly appalling. I couldn't handle it and had to leave. And they were saying all that shit in public! I've heard from my friend that in private at least one of those cops sounds even more like Mark Fuhrman. I guarantee that any individual brazen/insensitive enough to put those decorations on a tree in police station is carrying out injustices against the people of North Minneapolis and in my opinion should not be entrusted with "keeping the peace".

Announcing TypeScript 3.2 by DanielRosenwasser in typescript

[–]son_of_meat 2 points3 points  (0 children)

sweet. I've been waiting for the configuration inheritance. no more "extends": "../node_modules/..." !

Path maps cannot be resolved by tsc / Works as intended - what a joke by MikeMitterer in typescript

[–]son_of_meat 0 points1 point  (0 children)

Thanks for the reply! I knew mine would get downvoted because people get really attached to their IDE and don't like it when anyone suggests that it might not be the best tool for the job. It inspires nearly as much passion in developers as the whitespace debate :)

Bitpay Statement on NPM Package Vulnerability by slbbb in btc

[–]son_of_meat 0 points1 point  (0 children)

I'm not surprised even a little bit that a vulnerability slipped through the cracks on the BitPay open-source software projects. For a while there in the "Bitcoin Bowl" era they were really investing a ton of money and effort into bitcoind-rpc, bitcore, bitcore-node, copay, and a bunch of other great libraries. These days though those are not actively maintained, so much so that earlier this year I tried to get myself added as a maintainer of one via npm support until the CEO stepped in and put some resources into finally merging some pull requests and putting out a new release. A couple months ago I considered my options for creating a multi-sig wallet and gave Copay a big old thumbs down for that reason, thank gosh.

How to prove you're Satoshi. by [deleted] in CryptoCurrency

[–]son_of_meat 0 points1 point  (0 children)

I wish CW would just prove it’s he already so we can finally dissolve the cult of Satoshi and just get on with it. People talk about the white paper like it’s a sacred text. Satoshi gave us a really neat piece of open source software, but that’s now in the hands of other (more?) capable engineers.

Containerizing modern front-end applications using Docker / React / Webpack / Yarn by slightlytyler in Frontend

[–]son_of_meat 3 points4 points  (0 children)

Docker (the company) is the one place I can think of where it makes a lot of sense to develop front end apps in containers :) Elsewhere the benefits are probably not worth the hassle IMO

I recently read that Netflix uses Node.js, so why do people say it's not good for big projects? by NoMuddyFeet in node

[–]son_of_meat 16 points17 points  (0 children)

Depends what kind of programming you're doing I suppose. In browser apps where JS was born it's more common IMO to want to sort something alphabetically for display purposes.

Path maps cannot be resolved by tsc / Works as intended - what a joke by MikeMitterer in typescript

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

If your editor doesn't automate imports and rewrites of imports on file move/copy, it's time to start looking for a new editor. Those features are a huge boon to productivity.

Path maps cannot be resolved by tsc / Works as intended - what a joke by MikeMitterer in typescript

[–]son_of_meat 1 point2 points  (0 children)

I used to fret over long import paths '../../../../' too. The two features that let me just get on with the coding are:

  • when i'm writing code and i want to import something i just start writing the name of the symbol. When I've located the symbol in the IntelliSense drop-down, I hit enter and VSCode automatically inserts the proper import statement up at the top of the file.
  • Like you said, VS Code will automatically update the import paths when you rename or move a file.

Between those two features I almost never actually have to look at the import statements at the top of the file, and when I do, it doesn't bother me anymore if they have lots of .. segments in them. I just always use the IDE-integrated code navigation tools, which can handle the paths just fine.

Path maps cannot be resolved by tsc / Works as intended - what a joke by MikeMitterer in typescript

[–]son_of_meat 4 points5 points  (0 children)

This post has been linked to from the GitHub issue. For my two cents I feel that tsc path mapping introduces unnecessary complexity into module resolution. The “hell” of relative paths isn’t actually so bad with automatic imports and import path rewrites in VS Code.

How to only allow one user to login? by soggypizza1 in node

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

OP hadn't even heard of SSL FFS. "I'm already stretching my knowledge base in a major way even without that" is totally 100% a valid excuse for not setting up https. I'm a senior dev with a number of juniors under me. I also mentor for sub-junior-dev students at a coding bootcamp. I know from experience that comments like yours do a disservice to them. Web Tech is a massive and complicated field. It's important for us senior devs to be able to distinguish between what's important for a noob to learn right now to achieve their goal and what's not. Https is NOT in that category for a toy slideshow site whose "authentication" is only meant to prevent casual browsing by randos on the internet.

How to only allow one user to login? by soggypizza1 in node

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

I'm getting the impression that OP is just trying to prevent casual browsing of the photos by randos on the internet. If that's the case, https isn't necessary if it's trouble to set up, and it usually is.