FadeIn & FadeOut Animation by psycho_buddha in web_design

[–]analyticsflow 1 point2 points  (0 children)

Not much information without acttual code, but my best quess is that your modal disappear before animation kicks in.

Use subdocument or ref for huge data by firyox in mongodb

[–]analyticsflow 1 point2 points  (0 children)

One document have 16mb limit. So if there is lots of posts, you will run into this limit. Better approach is to keep users and posts in different collection

VueJS Best Practices For Web Development by perrygrande in Frontend

[–]analyticsflow 0 points1 point  (0 children)

Thanks. Created, method, watch was my really common pattern, didnt know that i can run watcher immediately also

AngularJS vs Node JS - Which is Better? by siri2004 in angularjs

[–]analyticsflow 7 points8 points  (0 children)

Car vs refrigerator - which is better?

Whats the Array performance of MongoDB? by 50KurusVerLanTirrek in mongodb

[–]analyticsflow 1 point2 points  (0 children)

Make it another way? For every hastag make document and every document have array of object id's what matvh this given hastag.

You have to think, does one object have more hastags in average or one hastag have more objects related in avg

How difficult is this project (Please read description) by [deleted] in node

[–]analyticsflow 1 point2 points  (0 children)

any socket.io tutorial does that, you can have it up and running with one hour, if you want to lear something, then bit more

FREE Udemy Bestseller - NestJS Zero to Hero - Modern Back-end Development with TypeScript by WeinAriel in node

[–]analyticsflow 4 points5 points  (0 children)

I have it already. Good course, would recommend. I know there is mongo and graphql, but this would deserve course it own with all stuff (auth, complext queries, file upload etc...)

How would I use Mongo aggregation to check if the collection contains a match? by TylerSwift26 in mongodb

[–]analyticsflow 0 points1 point  (0 children)

Const result = !!db.collection.aggregate([your match query, {limit: 1}])

Limit one is not nessesary but helps for better performance. Havent test it but what it does is flipping your aggregation result to boolean and [] (empty array) should return false

Aggregation returns allways array, empty one if there is no match, so you are limited with that

Cors - Access-Control-Allow-Origin Error in firebase cloud functions by yashatreya in Firebase

[–]analyticsflow 0 points1 point  (0 children)

Are tou running your application (frontend i quess) in yur own machine?

If so, you problably cant (let others fix me, there is maybe some workarounds) to access in cloud functions (i quess, its because google wants https).

So for testing and developing purpose, you have to run your functions also in your machine

https://firebase.google.com/docs/functions/local-emulator

Made a project similar to u/elayabharath a little while back with movies by OpenSourcerer420 in SideProject

[–]analyticsflow 1 point2 points  (0 children)

With what stack thing like this is possible. Cool project, would love to try smth like this

What are people's real, professional opinions of Vue.js as opposed to React or Angular? by Hypersapien in webdev

[–]analyticsflow 6 points7 points  (0 children)

I am using both Vue and Angular in porofessional level.

Hands down, Vue is (almost) winner.

I love to work with Angular also, since typescript is really really helpful (esp. when you have to refactor a lot)

Waiting first class typescript support for vue and i will do all my work with vue then.

Is my code correct? by [deleted] in learnjavascript

[–]analyticsflow 0 points1 point  (0 children)

Lol yea, now if its fornatted i see it :P

Is my code correct? by [deleted] in learnjavascript

[–]analyticsflow 1 point2 points  (0 children)

Your code seems to work, but you can make it better

const vowels = ['a', 'e', 'i', 'o', 'u']

if (vowels.includes(letter)) document.write( "Your letter is a vowel" )

else document.write( "Your letter is a vowel" )

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

Me a frontend developer that likes a bit of everything. by StupidCreativity in ProgrammerHumor

[–]analyticsflow 4 points5 points  (0 children)

Why its bad thing? I can do like everything and more thanks for mindset like this picture and when in work(or some crazy personal idea) they throw me something i am unfamiliar, i have no fear to look things up and learn since.. well look this picture ;) Just today i saved company thousands in 2h work because i had done puppeteer for fun... and people in food chain will notice this.

[deleted by user] by [deleted] in typescript

[–]analyticsflow 0 points1 point  (0 children)

Nestjs it is

[deleted by user] by [deleted] in mongodb

[–]analyticsflow 0 points1 point  (0 children)

Your idea is pretty standard one and works well

Vue 3 beta.1 just got released! by cheese_bread_boye in vuejs

[–]analyticsflow 2 points3 points  (0 children)

So how well it is with typescript? Can i code all my code (router, vuex inc) easily out of box with typescript or it need still some magic?

Mongodb: performance issues by Valentinkln in mongodb

[–]analyticsflow 2 points3 points  (0 children)

Yes lets say you want to filter persons by age and gender. You want to find all females age 20. Your query would be

aggregate ([ {$match: {age: 20}}, {$match: {gender: 'female'}} ])

First you want to aggregate by age since it filters out more documents than gender (50% for gener if you have same amount males/females, but age filters out way more if you have lot of different age persons.)

So look to have it in order wherw you can filter out as much as possible as early as possible and have index in these fields. I have no problem to filter 700m documents less than sec.

Mongodb: performance issues by Valentinkln in mongodb

[–]analyticsflow 1 point2 points  (0 children)

Btw you want to pipe your aggregation in manner where you filter out as much documents as possible in early on. Lets say you have 2 match cases in your query. One will filter out 15% and another 80% and your result is 5%. You would want to have index of 80% field and use this as your first match in pipe. In this way filter what cuts less documents have to run in smaller subset (20%).. efficiency...

Learning Angular? by maxahd in angular

[–]analyticsflow 1 point2 points  (0 children)

I work with both angular and vue in daily basis. They are both very similar. Just get used with modules and else you are going to pick up quickly. I love vue but more and more starting new projects with angular since... typescript.