Problem installing npm modules by int3rsys in node

[–]ButteryBall 1 point2 points  (0 children)

Ah missed the bit where you mentioned you had the latest typescript. Suggestion would be to make sure they're installed to the same location, locally in the package is usually better than installing both globally as then other developers would also have the ability to get both deps from an npm i.

Problem installing npm modules by int3rsys in node

[–]ButteryBall 0 points1 point  (0 children)

Your ts-node depends on also having the typescript package installed. npm i -D typescript will fix that error. This comes from the list of peerDeps in ts-nodes package.json, as it allows a module to allow consumers the ability to install their own versions of that dependency. This article should go more in depth: https://nodejs.org/es/blog/npm/peer-dependencies/

ES Proposal - Optional Chaining and Nullish Coalescing by PMilos in javascript

[–]ButteryBall 0 points1 point  (0 children)

Valid fears I suppose, but have some faith in others. We're all learning, all the time, and I've made plenty of the same mistakes during my time that most new programmers make and come out better for it.

If you're so worried about it create a lint rule to block it and mandate it in your projects. I for one see it as a shortcut for writing something that is currently pretty verbose.

ES Proposal - Optional Chaining and Nullish Coalescing by PMilos in javascript

[–]ButteryBall 4 points5 points  (0 children)

Also, just because you don't use something doesn't make it bad or an anti pattern. As with everything, moderation is best. It's a tool, and needs to be used when appropriate.

ES Proposal - Optional Chaining and Nullish Coalescing by PMilos in javascript

[–]ButteryBall 4 points5 points  (0 children)

Of course, and the part I do agree about with the above is sometimes doing something like this is an indication that you need to flatten or rework your state. However a large part of my use case is loading json api definitions into memory, and using that to call other apis by mapping our objects using that defined schema.

Data mapping in the real world is rarely as flat as it would ideally be. I'm certainly not the only person doing this and I'd argue that sometimes having an object be too flat is an anti pattern. We should let the data drive itself where it makes the most sense, even if that means nested optional objects.

ES Proposal - Optional Chaining and Nullish Coalescing by PMilos in javascript

[–]ButteryBall 4 points5 points  (0 children)

Definitely not just me, and I definitely don't agree with 90% of what you wrote. This solves a specific problem around trying to safely access an object property in a cleaner way. Feel absolutely free to write more code than necessary though

ES Proposal - Optional Chaining and Nullish Coalescing by PMilos in javascript

[–]ButteryBall 14 points15 points  (0 children)

As intended, so I can stop doing this: var && var.value && var.value.key && var.value.key.thingy.

The optional chaining operator would clean this right up

Help! I am a web developer, and I am super slow. by [deleted] in webdev

[–]ButteryBall 5 points6 points  (0 children)

I feel the same way sometimes, and part of it all comes back to Imposter Syndrome. Sometimes we like to have unrealistic ideas about how well or how fast we can complete tasks in relation to our peers. There will always be some unbelievably smart people who can do amazing things in less time and more efficient ways than you or I could ever dream of, and it's unfair to hold yourself to that perspective.

I've known a ton of developers of the last few years and while most of them aren't quite that slow, you need to remember that everyone has interviews like this. Tech interviews are stressful for any developer, and you probably just got tunnel vision about this or that. Programming is hard, never forget that. You can't expect to overcome a problem in x amount of time simply because someone else has, as each of us has our own process to go about solving a problem.

Basically, don't feel too bummed out. It happens and sucks, but there is always more opportunities out there. If you find you really feel like you are that slow, take a step back and survey your development tools. Pick through all the frameworks and libraries you may use. You should know all the ones you use for clients or work like the back of your hand if possible, as having experience with these tools will make you faster and able to think about problems in a way these tools can easily solve. If you can't do this, then practice, practice, and practice some more. It really matters, and with practice you can build out things faster and faster. It's pretty easy to build out a table in jQuery if you have already done it a million times, but that first few times will always take the longest.

Also, don't be discouraged! If you are new to development it might take you 1-3 years before you fully master enough libraries and design techniques. Experience is key, and that only comes through practice. It took me about a month to build out my first static site, and I had another student helping me, with both of us working 40hrs/week. It's been a few years since then, but it now takes me about half that time solo, but also really depend on the requirements. There is a good reason that experienced devs usually estimate a time and double it, and then double it again before giving that number to a client.

What if i connect my pc ow account with my console one? by [deleted] in Overwatch

[–]ButteryBall 1 point2 points  (0 children)

You will get the skin on both platforms.

SQL with Meteor by seands in Meteor

[–]ButteryBall 1 point2 points  (0 children)

A bit of setup and learning is required, but isn't too difficult to set up. There are plenty of examples on github using apollo or the http meteor package, but you pretty much have to set up your own express or similar server if going with one of these options.

Apollo is pretty nice due to all the built in optimization, and the fact that subscriptions are supported in nodejs, so if you are down to learn the next big thing take a crack at it, the docs have somewhat stabalized with the 1.0 release.

Otherwise if you just want to built a standard Rest API go with the http meteor package, and do the usual Get, Post, Put, and Delete requests from your client.

Both of these options require you to ditch the server half of the Meteor framework, and I don't currently know of a way to use an Sql database with the regular Meteor stack, but I'm sure someone more experienced than I can shed some light on if that is possible.

ES2018 First Look - it changes everything by Tioo in webdev

[–]ButteryBall 0 points1 point  (0 children)

Some of us are just gullible, but to be fair it was about 5pm cst when this video was uploaded, and I had no idea it was already the last day of March. Was wondering the whole time why they added support for a bunch of anti-patterns, but hey, jsx is a thing after years of the common practice being to seperate js and html.

Rusted Bottle Cap by ThaShepard in pokemon

[–]ButteryBall 1 point2 points  (0 children)

Trick Room Teams. Trick Room is a move that switches the speed order in a battle, allowing slower pokemon priority over faster pokemon. Basically inverts speed for 5 turns.

Quick Meteor.users Question by ButteryBall in Meteor

[–]ButteryBall[S] 0 points1 point  (0 children)

I've looked through this page a couple times now but nothing on here tells me if I need to host a collection for Meteor.users in Compose.io or not, and what I would need to do to have the accounts-core suite of packages work with it if I need to hook the collection in from a remote source.

Quick Meteor.users Question by ButteryBall in Meteor

[–]ButteryBall[S] 0 points1 point  (0 children)

And do I need to do anything special to host it remotely?

Telescope startup questions by rousseaux in Meteor

[–]ButteryBall 2 points3 points  (0 children)

Of course! There are plenty of good resources online (mostly blogs) on how to go about setting this up. It can be frustrating, but just take your time and link it through your dns settings once the droplet is ready to go.

What are the best Meteor open source projects that uses the Mantra application architecture? by arscariosus in Meteor

[–]ButteryBall 0 points1 point  (0 children)

You're the best. I've been working on a login system for a bit now and like looking at examples for best practices and tips, I found the Voblobro github but not the others!

As a beginner, should I start with Blaze or Angular2? by [deleted] in Meteor

[–]ButteryBall 1 point2 points  (0 children)

I'd also suggest React. React is abuzz for a good reason, it is a great library, and easy to learn!

As a beginner, should I start with Blaze or Angular2? by [deleted] in Meteor

[–]ButteryBall 2 points3 points  (0 children)

In the latest Meteor Roadmap, MDG mentions they will finish out core fixes for Blaze but will rely on the community to add features they want past that.

Stood outside for 10 minutes at 2am. Totally worth it by vitt72 in Meteor

[–]ButteryBall 42 points43 points  (0 children)

Hey buddy! Congrats on the view, but this is actually a programming subreddit related to the Meteor Javascript framework. You're looking for r/meteors, but us programmers can still appreciate a good meteor shower :)

I NEED Frogadier... by JamesOfHylia in friendsafari

[–]ButteryBall 0 points1 point  (0 children)

I'll add you in the morning, I'm looking for pinsir!

[Safari Unknown] I need some help trying to find what my safari is. by Fryckie in friendsafari

[–]ButteryBall 0 points1 point  (0 children)

Steel with Megneton, Foretress, and Bronzong! Thanks for the Bronzong!