Avatar of Tomáš Pustelník
Recommends
npmnpm

I use npm since new version is pretty fast as well (Yarn may be still faster a bit but the difference isn't huge). No need for other dependency and mainly Yarn sometimes do not work. Sometimes when I want to install project dependencies I got error using Yarn but with npm everything is installed correctly.

READ MORE
8 upvotes·154.6K views

I use JavaScript these days and for few years I didn't have to use jQuery at all. I used to use it back in the days when IE8 and similar was a thing. But due to better browser support of native functions for DOM manipulation I could move to vanilla JavaScript. Most of the time, that's all I need to work with modals/accordions and similar. But I'm not saying that jQuery is bad. It was, and still is a great tool. Some of it's features are available in all browsers nowadays so it is not so important as it used to be. But jQuery has still advantage for example in it's selector engine, some DOM selections which are easy in jQuery are a bit more difficult in vanilla JS (you have to create some helper functions or use some 3rd party library to help you with that), but to be honest I needed this on very few occasions. So it really depends on your project (supported browses, plain JS or some bundling - gulp, Webpack, whether you plan to use modules etc.). Hope this helps.

READ MORE
6 upvotes·275.4K views
Shared insights
on
FirebaseFirebase
at

We use Firebase at work (and I use it for my personal projects) for several reasons:

1) it is not just real-time DB with subscriptions but a lot more (storage for files, push notifications for mobile, cloud functions etc.) so it allows to build quite a robust solutions, but still possible to use just a minimal set of what you need

2) In most cases it's pretty cheap (unless you messed up you DB structure, reads/writes etc. - could be problem for a lot of traffic - so in such a case ready pricing and related guides properly), for side projects basically free.

3) offers free hosting with SSL certificates for static files

4) you can bootstrap functional prototype really quick and for the production, you do not need to worry about scaling.

READ MORE
6 upvotes·2 comments·1.5K views
Dan Dascalescu
Dan Dascalescu
·
June 13th 2019 at 6:04PM

Firebase is nice and the free plan is generous, but it has some serious problems:

- the realtime DB is awkward. It was superseded by Firestore, but Firestore has its weird limitations - https://pinboard.in/search/u:dandv?query=against+firestore

- Firebase Auth has a far more generous plan than Auth0, but it's slow as hell (see https://github.com/firebase/firebaseui-web/issues/436)

·
Reply
Tomáš Pustelník
Tomáš Pustelník
·
June 13th 2019 at 6:38PM

Yeah it's certainly not a perfect. Aside from issue you mentioned there is no easy way how to do normal pagination over data (only infinite scroll), writing security rules is not very ergonomic.

But for side project with not a huge traffic it can be pretty much good fit without need to invest much more into these issues.

·
Reply
Recommends
TypeScriptTypeScript

We currently use TypeScript at work. Previously we used Flow (JS) but it was sometimes really difficult to make the types work the way you want. Especially non-trivial types were problematic. And the IDE support wasn't good, Flow took too much resources and sometimes remain stuck and do not show errors (I use Visual Studio Code). With TypeScript we almost do not have these problems. IDE support is superb, working with types is much easier and typing system seems more mature and powerful. There are some downsides (like partion inheritance etc.), but TS team is still pushing it forward. So for me TypeScript is clear winner.

READ MORE
4 upvotes·70.9K views